{"id":13435,"date":"2020-12-22T11:41:44","date_gmt":"2020-12-22T02:41:44","guid":{"rendered":"https:\/\/sendgrid.kke.co.jp\/blog\/?p=13435"},"modified":"2022-08-08T13:20:04","modified_gmt":"2022-08-08T04:20:04","slug":"event-webhook%e3%82%92heroku%e3%81%a7%e5%8f%97%e3%81%91%e3%81%a6slack%e3%81%ab%e9%80%9a%e7%9f%a5%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/sendgrid.kke.co.jp\/blog\/?p=13435","title":{"rendered":"Event Webhook\u3092Heroku\u3067\u53d7\u3051\u3066Slack\u306b\u901a\u77e5\u3059\u308b"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2020\/12\/20201222_blog.png\" alt=\"Event Webhook\u3092Heroku\u3067\u53d7\u3051\u3066Slack\u306b\u901a\u77e5\u3059\u308b\" width=\"100%\" class=\"aligncenter size-full wp-image-15468\" srcset=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2020\/12\/20201222_blog.png 650w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2020\/12\/20201222_blog-300x185.png 300w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/p>\n<p>\u3053\u3093\u306b\u3061\u306f\uff01SendGrid\u30b5\u30dd\u30fc\u30c8\u30c1\u30fc\u30e0\u306e\u5409\u7530\u3067\u3059\u3002<br \/>\nSendGrid\u3067\u9001\u3063\u305f\u30e1\u30fc\u30eb\u306e\u5230\u9054\u3084\u30d0\u30a6\u30f3\u30b9\u7b49\u306e\u5404\u30a4\u30d9\u30f3\u30c8\u3092\u901a\u77e5\u3059\u308b\u6a5f\u80fd\u3068\u3057\u3066\u3001Event Webhook\u304c\u3042\u308a\u307e\u3059\u3002\u57fa\u672c\u7684\u306a\u7d39\u4ecb\u3068Python\u306b\u3088\u308b\u52d5\u4f5c\u78ba\u8a8d\u4f8b\u306f\u4ee5\u524d<a href=\"https:\/\/sendgrid.kke.co.jp\/blog\/?p=11955\" rel=\"noopener\" target=\"_blank\">\u30d6\u30ed\u30b0\u8a18\u4e8b<\/a>\u306b\u3057\u307e\u3057\u305f\u304c\u3001\u305d\u308c\u3092Slack\u306b\u901a\u77e5\u3059\u308b\u5f62\u3067\u5b9f\u88c5\u3057\u3066\u307f\u307e\u3057\u305f\u3002\u30c8\u30c3\u30d7\u753b\u50cf\u306e\u3088\u3046\u306a\u30d5\u30ed\u30fc\u3067\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u3001\u30af\u30e9\u30a6\u30c9\u4e0a\u3067\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u767a\u30fb\u904b\u7528\u3067\u304d\u308bPaaS\u300cHeroku\u300d\u3092\u4f7f\u3044\u307e\u3057\u305f\u3002Event Webhook\u3067\u306f\u30a4\u30d9\u30f3\u30c8\u60c5\u5831\u3092\u4efb\u610f\u306eURL\u306bPOST\u3067\u304d\u307e\u3059\u304c\u3001\u3053\u308c\u3092Heroku\u306b\u304a\u3044\u305fPython\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u53d7\u3051\u3001\u9069\u5207\u306b\u6574\u5f62\u3057\u305f\u4e0a\u3067Slack\u306b\u53d7\u3051\u6e21\u3057\u307e\u3059\u3002<\/p>\n<p>\u5fc5\u8981\u306a\u3082\u306e\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/slack.com\/intl\/ja-jp\/get-started#\/createnew\" rel=\"noopener\" target=\"_blank\">Slack\u30a2\u30ab\u30a6\u30f3\u30c8<\/a><\/li>\n<li><a href=\"https:\/\/id.heroku.com\/login\" rel=\"noopener\" target=\"_blank\">Heroku\u30a2\u30ab\u30a6\u30f3\u30c8<\/a>\u3068<a href=\"https:\/\/devcenter.heroku.com\/articles\/heroku-cli\" rel=\"noopener\" target=\"_blank\">Heroku CLI<\/a><\/li>\n<li><a href=\"https:\/\/app.sendgrid.com\/\" rel=\"noopener\" target=\"_blank\">SendGrid\u30a2\u30ab\u30a6\u30f3\u30c8<\/a><\/li>\n<li>Python<\/li>\n<li><a href=\"https:\/\/git-scm.com\/book\/en\/v2\/Getting-Started-Installing-Git\" rel=\"noopener\" target=\"_blank\">Git<\/a><\/li>\n<\/ul>\n<h3>Slack\u306e\u6e96\u5099<\/h3>\n<p>\u6700\u521d\u306b\u3001\u30a4\u30d9\u30f3\u30c8\u306e\u6295\u7a3f\u5148\u3067\u3042\u308bSlack\u3092\u6e96\u5099\u3057\u307e\u3059\u3002Slack\u306b\u306f\u3001\u6c7a\u307e\u3063\u305f\u5f62\u306eJSON\u3092POST\u3059\u308b\u3068\u6307\u5b9a\u306e\u30c1\u30e3\u30f3\u30cd\u30eb\u306b\u6295\u7a3f\u3067\u304d\u308bIncoming Webhook\u3068\u3044\u3046\u6a5f\u80fd\u304c\u3042\u308a\u307e\u3059\u3002\u624b\u9806\u306f\u3053\u3061\u3089\u306e<a href=\"https:\/\/api.slack.com\/messaging\/webhooks#getting_started\" rel=\"noopener\" target=\"_blank\">\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u901a\u308a\u3067\u3001\u8907\u96d1\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u6700\u521d\u306b\u300cApp\u300d\u3092\u4f5c\u6210\u3057\u307e\u3059\u304c\u3001\u540d\u524d\u3092\u300cEvent Webhook\u300d\u3068\u3057\u3066\u304a\u304d\u307e\u3059\uff08\u3053\u306e\u540d\u524d\u3067Slack\u306b\u6295\u7a3f\u3055\u308c\u307e\u3059\uff09\u3002\u6295\u7a3f\u5148\u306eWorkspace\u3092\u9078\u629e\u3057\u3066App\u3092\u4f5c\u6210\u3057\u305f\u3089\u3001App\u306e\u30db\u30fc\u30e0\u753b\u9762\u304b\u3089Incoming Webhook\u306e\u30da\u30fc\u30b8\u3092\u958b\u3044\u3066\u6709\u52b9\u5316\u3057\u3001\u6295\u7a3f\u3059\u308b\u30c1\u30e3\u30f3\u30cd\u30eb\u3092\u9078\u3073\u307e\u3059\u3002\u3059\u308b\u3068\u3001\u6295\u7a3f\u3057\u305f\u3044\u5185\u5bb9\u3092POST\u3059\u308bURL\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2020\/12\/fig1.png\" alt=\"Cleate a Slack App\" width=\"100%\" class=\"aligncenter size-full wp-image-13438\" srcset=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2020\/12\/fig1.png 582w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2020\/12\/fig1-300x241.png 300w\" sizes=\"(max-width: 582px) 100vw, 582px\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2020\/12\/fig2.png\" alt=\"POST\u3059\u308bURL\u3092\u53d6\u5f97\" width=\"100%\" class=\"aligncenter size-full wp-image-13439\" srcset=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2020\/12\/fig2.png 664w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2020\/12\/fig2-300x58.png 300w\" sizes=\"(max-width: 664px) 100vw, 664px\" \/><\/p>\n<h3>Heroku\u3078\u306e\u30c7\u30d7\u30ed\u30a4<\/h3>\n<p>\u6b21\u306b\u30ed\u30fc\u30ab\u30eb\u4e0a\u3067\u3001Heroku\u306eApp\u306e\u6e96\u5099\u3092\u3057\u3066\u3044\u304d\u307e\u3059\u3002<br \/>\n\u307e\u305a\u65b0\u3057\u3044\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u3001\u305d\u3053\u3067Git\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3068Heroku\u306eApp\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002App\u306e\u540d\u524d\u306fApp\u306eURL\u306b\u7528\u3044\u3089\u308c\u308b\u305f\u3081\u3001Heroku\u5185\u3067\u30e6\u30cb\u30fc\u30af\u3067\u3042\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u3053\u3067\u306fevent-webhook-slack\u3068\u3057\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"brush: bash; gutter: false; title: ; notranslate\" title=\"\">\r\n$ git init\r\n$ heroku create event-webhook-slack\r\nCreating \u2b22 event-webhook-slack... done\r\nhttps:\/\/event-webhook-slack.herokuapp.com\/ | https:\/\/git.heroku.com\/event-webhook-slack.git\r\n<\/pre>\n<p>\u74b0\u5883\u304c\u6574\u3063\u305f\u3089\u3001App\u306b\u5fc5\u8981\u306a3\u3064\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u7528\u610f\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h4>1. index.py<\/h4>\n<p>\u6700\u521d\u306f\u52d5\u4f5c\u306e\u809d\u3068\u306a\u308bPython\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3059\u3002\u540d\u524d\u306findex.py\u3068\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nimport os, requests\r\nfrom flask import Flask, request\r\nfrom json import dumps\r\n\r\nslack_incoming_webhook = os.environ&#x5B;'SLACK_INCOMING_WEBHOOK']\r\n\r\napp = Flask(__name__)\r\n\r\n@app.route('\/', methods=&#x5B;'POST'])\r\ndef main():\r\n    data_list = request.get_json()\r\n\r\n    block_list = &#x5B;]\r\n    for data in data_list:\r\n        dumped = dumps(data, indent=2)\r\n        event_name = data&#x5B;&quot;event&quot;]\r\n\r\n        block_list.append({'type': 'section', 'text': {'type': 'mrkdwn', 'text': f'*{event_name}*```{dumped}```'}})\r\n\r\n    headers = {'Content-Type': 'application\/json'}\r\n    slack_json = dumps({'blocks': block_list})\r\n    requests.post(slack_incoming_webhook, headers=headers, data=slack_json)\r\n\r\n    return &quot;&quot;\r\n\r\n\r\nif __name__ == '__main__':\r\n    app.run(debug=True, host='0.0.0.0', port=int(os.environ.get('PORT', 3000)))\r\n<\/pre>\n<p>Event Webhook\u306ePOST\u5185\u5bb9\u3092\u53d7\u3051\u53d6\u308a\u3001Slack\u6295\u7a3f\u7528\u306b\u30c7\u30fc\u30bf\u3092\u6574\u5f62\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002POST\u3092\u53d7\u3051\u53d6\u308b\u307e\u3067\u306f<a href=\"https:\/\/sendgrid.kke.co.jp\/blog\/?p=11955\" rel=\"noopener\" target=\"_blank\">\u4ee5\u524d\u66f8\u3044\u305f\u30d6\u30ed\u30b0<\/a>\u3068\u540c\u3058\u6d41\u308c\u306a\u306e\u3067\u3001\u305d\u3061\u3089\u306e\u8aac\u660e\u3082\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u53d7\u3051\u53d6\u3063\u305f\u30c7\u30fc\u30bf\u306f\u3001<a href=\"https:\/\/api.slack.com\/reference\/messaging\/payload\" rel=\"noopener\" target=\"_blank\">Slack\u304c\u5b9a\u7fa9\u3057\u3066\u3044\u308b\u30da\u30a4\u30ed\u30fc\u30c9\u306e\u5f62<\/a>\u306b\u5909\u63db\u3057\u3066\u3044\u307e\u3059\u3002\u4e00\u3064\u306ePOST\u306b\u8907\u6570\u306e\u30a4\u30d9\u30f3\u30c8\u304c\u542b\u307e\u308c\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u306e\u3067\u3001Slack\u306e\u6295\u7a3f\u30e1\u30c3\u30bb\u30fc\u30b8\u306e<a href=\"https:\/\/api.slack.com\/reference\/block-kit\/blocks\" rel=\"noopener\" target=\"_blank\">Block<\/a>\u3068\u3044\u3046\u5f62\u5f0f\u3092\u7528\u3044\u3066\u3001\u4e00\u3064\u306e\u30a4\u30d9\u30f3\u30c8\u3054\u3068\u306b\u4e00\u3064\u306e\u30d6\u30ed\u30c3\u30af\u3092\u5272\u308a\u5f53\u3066\u3066\u3044\u307e\u3059\u3002\u5404\u30d6\u30ed\u30c3\u30af\u306e\u4e2d\u3067\u306f\u3001\u30a4\u30d9\u30f3\u30c8\u306e\u7a2e\u985e\u3092\u592a\u5b57\u3067\u3001POST\u3055\u308c\u305fEvent Webhook\u306eJSON\u5168\u4f53\u3092\u30b3\u30fc\u30c9\u30d6\u30ed\u30c3\u30af\u3067\u8868\u793a\u3059\u308b\u3088\u3046\u30de\u30fc\u30af\u30c0\u30a6\u30f3\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\uff0818\u884c\u76ee\uff09\u3002\u3069\u3046\u3044\u3046JSON\u3092\u6307\u5b9a\u3059\u308b\u3068Slack\u306b\u3069\u3093\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u6295\u7a3f\u3055\u308c\u308b\u304b\u306f\u3001<a href=\"https:\/\/api.slack.com\/tools\/block-kit-builder\" rel=\"noopener\" target=\"_blank\">\u30d6\u30e9\u30a6\u30b6\u4e0a\u3067\u3082\u8a66\u3059<\/a>\u3053\u3068\u304c\u3067\u304d\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<h4>2. requirements.txt<\/h4>\n<p>index.py\u4e2d\u3067\u5fc5\u8981\u306aPython\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u6307\u5b9a\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002\u4ee5\u4e0b\u306e\u3088\u3046\u306bpip\u30b3\u30de\u30f3\u30c9\u3067\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; gutter: false; title: ; notranslate\" title=\"\">\r\n$ pip freeze &gt; requirements.txt\r\n<\/pre>\n<h4>3. Procfile<\/h4>\n<p>Heroku\u4e0a\u3067\u5b9f\u884c\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3092\u5b9a\u7fa9\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002\u62e1\u5f35\u5b50\u306f\u5fc5\u8981\u3042\u308a\u307e\u305b\u3093\u3002\u4e2d\u8eab\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nweb: python index.py\r\n<\/pre>\n<p>\u3053\u3053\u307e\u3067\u3067\u304d\u305f\u3089\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u914d\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30df\u30c3\u30c8\u3001\u30c7\u30d7\u30ed\u30a4\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; gutter: false; title: ; notranslate\" title=\"\">\r\n$ git add *\r\n$ git commit -m &quot;Commit to heroku&quot;\r\n$ git push heroku master\r\n<\/pre>\n<p>\u30c7\u30d7\u30ed\u30a4\u304c\u5b8c\u4e86\u3059\u308b\u3068\u3001App\u306eURL\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u4eca\u56de\u306e\u5834\u5408\u306f\u3001https:\/\/sg-event-webhook.herokuapp.com\/\u3068\u306a\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u5f8c\u3067\u7528\u3044\u307e\u3059\u3002<\/p>\n<p>index.py\u306e\u4e2d\u3067\u306fSlack\u306eIncoming Webhook\u306eURL\u3092\u74b0\u5883\u5909\u6570\u3068\u3057\u3066\u53d6\u5f97\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u308b\u306e\u3067\uff085\u884c\u76ee\uff09\u3001\u6700\u5f8c\u306b\u3001\u5148\u307b\u3069Slack\u3067\u53d6\u5f97\u3057\u305fURL\u3092Heroku\u306eApp\u306e\u74b0\u5883\u5909\u6570\u3068\u3057\u3066\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; gutter: false; title: ; notranslate\" title=\"\">\r\n$ heroku config:set SLACK_INCOMING_WEBHOOK=https:\/\/hooks.slack.com\/services\/hoge\/huga\r\n<\/pre>\n<p>Heroku\u306b\u304a\u3051\u308bPython\u30a2\u30d7\u30ea\u306e\u4f5c\u6210\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306f\u3001<a href=\"https:\/\/devcenter.heroku.com\/ja\/articles\/getting-started-with-python#next-steps\" rel=\"noopener\" target=\"_blank\">\u516c\u5f0f\u306eGet Started\u30da\u30fc\u30b8<\/a>\u3082\u53c2\u8003\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>SendGrid\u306e\u8a2d\u5b9a\u3068\u6319\u52d5\u78ba\u8a8d<\/h3>\n<p>\u6700\u5f8c\u306bSendGrid\u306eEvent Webhook\u306e\u8a2d\u5b9a\u3092\u3057\u3066\u52d5\u4f5c\u3092\u78ba\u8a8d\u3059\u308b\u3060\u3051\u3067\u3059\u3002\u8a2d\u5b9a\u306fSendGrid\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u4e0a\u304b\u3089\u53ef\u80fd\u3067\u3059\u3002\u8a73\u7d30\u306f\u4ee5\u524d\u306e\u30d6\u30ed\u30b0\u3092\u53c2\u8003\u306b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002\u4ee5\u524d\u306e\u8a18\u4e8b\u3068\u306fWebhook\u306e\u901a\u77e5\u5148URL\u3060\u3051\u304c\u7570\u306a\u308a\u3001\u4eca\u56de\u306f\u3001\u53d6\u5f97\u3057\u305fHeroku App\u306eURL https:\/\/sg-event-webhook.herokuapp.com\/ \u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u300cTest Your Integration\u300d\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u3066\u3001Slack\u306b\u30a4\u30d9\u30f3\u30c8\u304c\u901a\u77e5\u3055\u308c\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\uff01<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2020\/12\/fig3.png\" alt=\"Event Webhook\" width=\"100%\" class=\"noshadow aligncenter size-full wp-image-13442\" srcset=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2020\/12\/fig3.png 716w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2020\/12\/fig3-300x204.png 300w\" sizes=\"(max-width: 716px) 100vw, 716px\" \/><\/p>\n<p>\u4eca\u56de\u306f\u624b\u8efd\u306bEvent Webhook\u306e\u901a\u77e5\u3092\u53d7\u3051\u53d6\u308b\u4f8b\u3068\u3057\u3066\u3001Slack\u3078\u306e\u6295\u7a3f\u3092\u7d39\u4ecb\u3057\u3066\u307f\u307e\u3057\u305f\u3002Integromat\u306a\u3069\u306e\u30a6\u30a7\u30d6\u30b5\u30fc\u30d3\u30b9\u9023\u643a\u30c4\u30fc\u30eb\u3067\u3082\u3063\u3068\u7c21\u5358\u306b\u901a\u77e5\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u306a\u306e\u3067\u3001\u6a5f\u4f1a\u304c\u3042\u308c\u3070\u7d39\u4ecb\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002\u4eca\u56de\u306e\u4ed5\u7d44\u307f\u306f\u79c1\u304c\u5b9f\u969b\u306b\u5229\u7528\u3057\u3066\u3044\u308b\u3082\u306e\u3067\u3001Event Webhook\u306e\u6319\u52d5\u3092\u898b\u308b\u305f\u3081\u306bPOST\u3055\u308c\u305fJSON\u3092\u305d\u306e\u307e\u307e\u8868\u793a\u3055\u305b\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u3088\u3046\u306a\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u306e\u67d4\u8edf\u3055\u304c\u30ce\u30fc\u30b3\u30fc\u30c9\u30c4\u30fc\u30eb\u306b\u306f\u306a\u3044\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u5f37\u307f\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u5b9f\u969b\u306e\u904b\u7528\u4e0a\u3001\u30e1\u30fc\u30eb\u306e\u30d0\u30a6\u30f3\u30b9\u3092\u7ba1\u7406\u3057\u305f\u308a\u3001\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u30e1\u30fc\u30eb\u306e\u958b\u5c01\u7387\u3092\u6e2c\u3063\u305f\u308a\u3059\u308b\u306b\u306f\u3001Slack\u7b49\u3078\u306e\u901a\u77e5\u3060\u3051\u3067\u306f\u306a\u304fDB\u3078\u306e\u30c7\u30fc\u30bf\u306e\u84c4\u7a4d\u7b49\u3082\u5fc5\u8981\u306b\u306a\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u3001Event Webhook\u306b\u89e6\u308c\u308b\u304d\u3063\u304b\u3051\u3068\u3057\u3066\u672c\u8a18\u4e8b\u304c\u53c2\u8003\u306b\u306a\u308c\u3070\u5e78\u3044\u3067\u3059\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\uff01SendGrid\u30b5\u30dd\u30fc\u30c8\u30c1\u30fc\u30e0\u306e\u5409\u7530\u3067\u3059\u3002 SendGrid\u3067\u9001\u3063\u305f\u30e1\u30fc\u30eb\u306e\u5230\u9054\u3084\u30d0\u30a6\u30f3\u30b9\u7b49\u306e\u5404\u30a4\u30d9\u30f3\u30c8\u3092\u901a\u77e5\u3059\u308b\u6a5f\u80fd\u3068\u3057\u3066\u3001Event Webhook\u304c\u3042\u308a\u307e\u3059\u3002\u57fa\u672c\u7684\u306a\u7d39\u4ecb\u3068Python\u306b\u3088\u308b\u52d5\u4f5c\u78ba\u8a8d\u4f8b\u306f <a class=\"read-more\" href=\"https:\/\/sendgrid.kke.co.jp\/blog\/?p=13435\">&#8230;\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":15,"featured_media":15468,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[11],"tags":[],"class_list":["post-13435","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technical"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/13435","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=13435"}],"version-history":[{"count":11,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/13435\/revisions"}],"predecessor-version":[{"id":15469,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/13435\/revisions\/15469"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/media\/15468"}],"wp:attachment":[{"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=13435"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=13435"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=13435"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}