{"id":14261,"date":"2021-08-03T11:49:48","date_gmt":"2021-08-03T02:49:48","guid":{"rendered":"https:\/\/sendgrid.kke.co.jp\/blog\/?p=14261"},"modified":"2021-08-03T11:49:48","modified_gmt":"2021-08-03T02:49:48","slug":"event-webhook%e3%81%aeoauth2-0%e3%82%92aws%e3%81%a7%e8%a8%ad%e5%ae%9a%e3%81%97%e3%81%a6%e3%81%bf%e3%82%8b","status":"publish","type":"post","link":"https:\/\/sendgrid.kke.co.jp\/blog\/?p=14261","title":{"rendered":"Event Webhook\u306eOAuth2.0\u3092AWS\u3067\u8a2d\u5b9a\u3057\u3066\u307f\u308b"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig2.png\" alt=\"Event Webhook\u306eOAuth2.0\u3092AWS\u3067\u8a2d\u5b9a\u3057\u3066\u307f\u308b\" width=\"100%\" class=\"aligncenter size-full wp-image-14263\" srcset=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig2.png 1466w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig2-300x139.png 300w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig2-768x355.png 768w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig2-1024x473.png 1024w\" sizes=\"(max-width: 1466px) 100vw, 1466px\" \/><\/p>\n<p>\u30a4\u30d9\u30f3\u30c8\u30c7\u30fc\u30bf\u3092\u4efb\u610f\u306e\u30b5\u30fc\u30d0\u306bPOST\u3059\u308bEvent Webhook\u6a5f\u80fd\u306b\u306f\u3001\u30b5\u30fc\u30d0\u5074\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u5f37\u5316\u306e\u305f\u3081\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u304c2\u3064\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u4e00\u3064\u304cSigned Event Webhook Requests\u3001\u3082\u3046\u4e00\u3064\u304cOAuth 2.0\u3067\u3059\u3002<\/p>\n<p>\u300cSigned Event Webhook Requests\u300d\u306f\u8a8d\u8a3c\uff08Authentication\uff09\u306e\u305f\u3081\u306e\u6a5f\u80fd\u3067\u3001\u30c7\u30fc\u30bf\u304c\u78ba\u304b\u306bSendGrid\u304b\u3089\u9001\u3089\u308c\u305f\u3053\u3068\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002\u4e00\u65b9\u300cOAuth 2.0\u300d\u306f\u8a8d\u53ef\uff08Authorization\uff09\u306e\u305f\u3081\u306e\u30d7\u30ed\u30bb\u30b9\u3092\u8868\u3057\u3001\u4fe1\u983c\u3067\u304d\u308b\u60c5\u5831\u6e90\u306b\u306e\u307f\u30a2\u30af\u30bb\u30b9\u6a29\u9650\u3092\u4e0e\u3048\u307e\u3059\u3002<\/p>\n<p>\u672c\u8a18\u4e8b\u3067\u306fOAuth 2.0\u306b\u30d5\u30a9\u30fc\u30ab\u30b9\u3057\u307e\u3059\u3002\u8a8d\u53ef\u3055\u308c\u305f\u60c5\u5831\u6e90\u304b\u3089\u306e\u307f\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u3067\u3001\u653b\u6483\u8005\u306b\u3088\u308b\u30a2\u30af\u30bb\u30b9\u3092\u9632\u3050\u3053\u3068\u304c\u3067\u304d\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306e\u5927\u5e45\u306a\u5411\u4e0a\u304c\u898b\u8fbc\u3081\u307e\u3059\u3002Amazon Web Services (AWS) \u306e\u5404\u7a2e\u30b5\u30fc\u30d3\u30b9\uff08Amazon Cognito\u3001Amazon API Gateway\u3001 AWS Lambda\uff09\u3092\u7528\u3044\u305f\u8a2d\u5b9a\u4f8b\u3092\u7d39\u4ecb\u3059\u308b\u306e\u3067\u3001\u305c\u3072\u5b9f\u88c5\u306e\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>OAuth 2.0 Client Credentials\u30b0\u30e9\u30f3\u30c8\u306e\u6982\u8981<\/h3>\n<p>SendGrid\u306eEvent Webhook\u306f\u3001OAuth 2.0\u3067\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b4\u3064\u306e\u8a8d\u53ef\u30d5\u30ed\u30fc\u306e\u3046\u3061\u3001Client Credentials\u30b0\u30e9\u30f3\u30c8\u3092\u7528\u3044\u305f\u8a8d\u53ef\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\u3002\u6700\u521d\u306b\u3053\u306e\u6982\u8981\u3092\u8aac\u660e\u3057\u307e\u3059\u3002\u4ee5\u5f8c\u3001\u8a18\u4e8b\u4e2d\u306e\u300cOAuth\u300d\u306fOAuth 2.0\u306eClient Credentials\u30b0\u30e9\u30f3\u30c8\u306e\u3053\u3068\u3092\u6307\u3059\u3068\u8003\u3048\u3066\u304f\u3060\u3055\u3044\uff08\u4ed6\u306e\u30b0\u30e9\u30f3\u30c8\u3068\u306f\u30d5\u30ed\u30fc\u304c\u7570\u306a\u308a\u307e\u3059\uff09\u3002<\/p>\n<p>OAuth\u306b\u3088\u308b\u8a8d\u53ef\u3092\u884c\u308f\u306a\u3044\u5834\u5408\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c\u30b5\u30fc\u30d0\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u3001\u30b5\u30fc\u30d0\u304c\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u8fd4\u3059\u3060\u3051\u3067\u3059\uff08\u4e0b\u56f3\u5de6\uff09\u3002OAuth\u306e\u5b9a\u7fa9\u306b\u5408\u308f\u305b\u3066\u3001\u4ee5\u5f8c\u30b5\u30fc\u30d0\u306f\u300c\u30ea\u30bd\u30fc\u30b9\u30b5\u30fc\u30d0\u300d\u3068\u8868\u8a18\u3057\u307e\u3059\u3002Event Webhook\u306e\u6587\u8108\u3067\u306f\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304cSendGrid\u3001\u30ea\u30bd\u30fc\u30b9\u30b5\u30fc\u30d0\u306f\u30a4\u30d9\u30f3\u30c8\u30c7\u30fc\u30bf\u304c\u9001\u3089\u308c\u308b\u30b5\u30fc\u30d0\u306b\u5bfe\u5fdc\u3057\u307e\u3059\u3002<\/p>\n<p>OAuth\u3067\u306f\u65b0\u305f\u306b\u300c\u8a8d\u53ef\u30b5\u30fc\u30d0\u300d\u304c\u767b\u5834\u3057\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30d5\u30ed\u30fc\u3092\u305f\u3069\u308a\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig1.png\" alt=\"OAuth\u306b\u3088\u308b\u8a8d\u53ef\" width=\"100%\" class=\"aligncenter size-full wp-image-14262\" srcset=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig1.png 1702w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig1-300x127.png 300w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig1-768x325.png 768w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig1-1024x433.png 1024w\" sizes=\"(max-width: 1702px) 100vw, 1702px\" \/><\/p>\n<ol>\n<li>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306f\u3001\u30ea\u30bd\u30fc\u30b9\u30b5\u30fc\u30d0\u3078\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u5fc5\u8981\u3068\u306a\u308b\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u3092\u8a8d\u53ef\u30b5\u30fc\u30d0\u306b\u8981\u6c42\u3057\u307e\u3059\u3002\u3053\u306e\u3068\u304d\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8ID\u3068\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u542b\u3081\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n<li>\u8a8d\u53ef\u30b5\u30fc\u30d0\u306f\u3001\u6b63\u3057\u3044\u30af\u30e9\u30a4\u30a2\u30f3\u30c8ID\u3068\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u304c\u78ba\u8a8d\u3067\u304d\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c\u8a8d\u8a3c\u3067\u304d\u305f\u3089\u3001\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u3092\u8fd4\u3057\u307e\u3059\u3002<\/li>\n<li>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306f\u3001\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u3092\u6301\u3063\u3066\u30ea\u30bd\u30fc\u30b9\u30b5\u30fc\u30d0\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u307e\u3059\u3002\n<\/li>\n<li>\u30ea\u30bd\u30fc\u30b9\u30b5\u30fc\u30d0\u306f\u3001\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u304c\u6709\u52b9\u306a\u3082\u306e\u304b\u3069\u3046\u304b\u691c\u8a3c\u3057\u307e\u3059\u3002<\/li>\n<li>\u691c\u8a3c\u7d50\u679c\u306b\u5fdc\u3058\u3066\u3001\u30ea\u30bd\u30fc\u30b9\u30b5\u30fc\u30d0\u306f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u8fd4\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n<h3>AWS\u3092\u7528\u3044\u305f\u5b9f\u88c5\u4f8b<\/h3>\n<p>\u4ee5\u4e0a\u306e\u30d5\u30ed\u30fc\u3092AWS\u3092\u7528\u3044\u3066\u5b9f\u88c5\u3057\u3066\u307f\u307e\u3059\u3002\u3053\u3053\u3067\u306fAmazon Cognito\u304c\u8a8d\u53ef\u30b5\u30fc\u30d0\u3001Amazon API Gateway\u304c\u30ea\u30bd\u30fc\u30b9\u30b5\u30fc\u30d0\u306b\u5bfe\u5fdc\u3057\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig2.png\" alt=\"AWS\u3092\u7528\u3044\u305f\u5b9f\u88c5\u4f8b\" width=\"100%\" class=\"aligncenter size-full wp-image-14263\" srcset=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig2.png 1466w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig2-300x139.png 300w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig2-768x355.png 768w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig2-1024x473.png 1024w\" sizes=\"(max-width: 1466px) 100vw, 1466px\" \/><\/p>\n<p>4. \u307e\u3067\u306f\u4e0a\u8ff0\u306eOAuth\u306e\u30d5\u30ed\u30fc\u901a\u308a\u3067\u3059\u304c\u3001\u305d\u306e\u5f8c\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u304c\u6709\u52b9\u306a\u5834\u5408\u306bLambda\u95a2\u6570\u3092\u52d5\u4f5c\u3055\u305b\u307e\u3059\u3002\u3053\u306e\u95a2\u6570\u306f\u3001\u9001\u3089\u308c\u3066\u304d\u305f\u30ea\u30af\u30a8\u30b9\u30c8\u30c7\u30fc\u30bf\u3092\u30ed\u30b0\u306b\u51fa\u529b\u3055\u305b\u308b\u3060\u3051\u306e\u5358\u7d14\u306a\u3082\u306e\u3067\u3059\u3002<br \/>\n\u65e9\u901f\u8a2d\u5b9a\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h4>1. API Gateway\u3068Lambda\u306e\u8a2d\u5b9a\uff08\u30ea\u30bd\u30fc\u30b9\u30b5\u30fc\u30d0\u306e\u6e96\u5099\uff09<\/h4>\n<p><strong>\u2460 Lambda\u95a2\u6570\u306e\u4f5c\u6210<\/strong><br \/>\n\u307e\u305a\u3001POST\u3055\u308c\u305f\u30a4\u30d9\u30f3\u30c8\u30c7\u30fc\u30bf\u3092\u51e6\u7406\u3059\u308bLambda\u95a2\u6570\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u30de\u30cd\u30fc\u30b8\u30e1\u30f3\u30c8\u30b3\u30f3\u30bd\u30fc\u30eb\u3067Lambda\u3092\u9078\u3073\u3001\u300c\u95a2\u6570\u306e\u4f5c\u6210\u300d\u3092\u3057\u307e\u3059\u3002\u9069\u5f53\u306a\u95a2\u6570\u540d\u3092\u3064\u3051\u3001\u30e9\u30f3\u30bf\u30a4\u30e0\u3068\u3057\u3066Python 3.8\u3092\u9078\u629e\u3057\u307e\u3057\u3087\u3046\u3002\u30b3\u30fc\u30c9\u30bd\u30fc\u30b9\uff08lambda_function.py\uff09\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u3066\u300cDeploy\u300d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nimport json\r\n\r\ndef handler(event, content):\r\n    try:\r\n        body = event.get(&quot;body&quot;)\r\n        print(body)\r\n        status_code = 200\r\n    except Exception as e:\r\n        status_code = 500\r\n        body = {&quot;description&quot;: str(e)}\r\n    return {\r\n        &quot;statusCode&quot;: status_code,\r\n        &quot;headers&quot;: {\r\n            &quot;Content-Type&quot;: &quot;application\/json&quot;\r\n        },\r\n        &quot;body&quot;: json.dumps(body)\r\n    }\r\n<\/pre>\n<p>\u3053\u306eLambda\u95a2\u6570\u306f\u9001\u4fe1\u3055\u308c\u305f\u30ea\u30af\u30a8\u30b9\u30c8\u30c7\u30fc\u30bf\u3092\u30aa\u30a6\u30e0\u8fd4\u3057\u3057\u3066\u3044\u307e\u3059\u3002\u307e\u305f\u3001print\u95a2\u6570\u3067Amazon CloudWatch\u306b\u30ed\u30b0\u304c\u51fa\u529b\u3055\u308c\u308b\u306e\u3067\u3001\u3053\u308c\u3067\u52d5\u4f5c\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<p><strong>\u2461 API Gateway\u306e\u8a2d\u5b9a<\/strong><br \/>\n\u3053\u3061\u3089\u3082\u9069\u5f53\u306a\u540d\u524d\u3092\u3064\u3051\u3066\u3001REST API\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u4f5c\u6210\u3057\u305fAPI\u306e\u753b\u9762\u3067\u3001\u300c\u30a2\u30af\u30b7\u30e7\u30f3\u300d\u306e\u4e2d\u306e\u300c\u30ea\u30bd\u30fc\u30b9\u306e\u4f5c\u6210\u300d\u304b\u3089\/activity\u3068\u3044\u3046\u30ea\u30bd\u30fc\u30b9\u3092\u4f5c\u6210\u3057\u3001\u3053\u306e\u30ea\u30bd\u30fc\u30b9\u306bPOST\u30e1\u30bd\u30c3\u30c9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\u3053\u306e\u3068\u304d\u3001\u7d71\u5408\u30bf\u30a4\u30d7\u3092Lambda \u95a2\u6570\u3068\u3057\u3001\u5148\u307b\u3069\u4f5c\u3063\u305f\u95a2\u6570\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u30ea\u30bd\u30fc\u30b9\u306f\u5fc5\u305a\u3057\u3082\u4f5c\u308b\u5fc5\u8981\u306f\u306a\u3044\u3067\u3059\u304c\u3001\u4eca\u56de\u306fActivity\u306e\u60c5\u5831\u3092\u53d7\u3051\u53d6\u308b\u3068\u3044\u3046\u610f\u5473\u3067activity\u3068\u540d\u524d\u3092\u3064\u3051\u3066\u3044\u307e\u3059\u3002<\/p>\n<h4>2. Cognito\u306e\u8a2d\u5b9a\uff08\u8a8d\u53ef\u30b5\u30fc\u30d0\u306e\u6e96\u5099\uff09<\/h4>\n<p>Cognito\u306b\u306f\u3001\u8a8d\u8a3c\u3092\u7ba1\u7406\u3059\u308b\u67a0\u7d44\u307f\u3068\u3057\u3066\u300c\u30e6\u30fc\u30b6\u30fc\u30d7\u30fc\u30eb\u300d\u3068\u3044\u3046\u6a5f\u80fd\u304c\u3042\u308a\u307e\u3059\u3002\u306f\u3058\u3081\u306b\u3053\u308c\u3092\u4f5c\u6210\u3057\u3001\u305d\u306e\u4e2d\u3067OAuth\u306b\u5fc5\u8981\u306a\u5404\u7a2e\u8a2d\u5b9a\u3092\u884c\u3063\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p><strong>\u2460 \u30e6\u30fc\u30b6\u30fc\u30d7\u30fc\u30eb\u306e\u4f5c\u6210<\/strong><br \/>\n\u300c\u30e6\u30fc\u30b6\u30fc\u30d7\u30fc\u30eb\u306e\u7ba1\u7406\u300d>\u300c\u30e6\u30fc\u30b6\u30fc\u30d7\u30fc\u30eb\u306e\u4f5c\u6210\u300d\u304b\u3089\u9069\u5f53\u306a\u540d\u524d\u3092\u3064\u3051\u3066\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u8a2d\u5b9a\u3067\u30e6\u30fc\u30b6\u30fc\u30d7\u30fc\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p><strong>\u2461 \u30a2\u30d7\u30ea\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u4f5c\u6210<\/strong><br \/>\n\u5de6\u5074\u30e1\u30cb\u30e5\u30fc\u306e\u300c\u30a2\u30d7\u30ea\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u300d\u3092\u9078\u629e\u3057\u3001\u9069\u5f53\u306a\u540d\u524d\u3092\u3064\u3051\u3066\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u8a2d\u5b9a\u3067\u30a2\u30d7\u30ea\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u30af\u30e9\u30a4\u30a2\u30f3\u30c8ID\u3068\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u3092\u8a18\u9332\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig3.png\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig3.png\" alt=\"\u30a2\u30d7\u30ea\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u4f5c\u6210\" width=\"100%\" class=\"aligncenter size-full wp-image-14264\" srcset=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig3.png 1640w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig3-300x78.png 300w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig3-768x200.png 768w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig3-1024x267.png 1024w\" sizes=\"(max-width: 1640px) 100vw, 1640px\" \/><\/a><\/p>\n<p><strong>\u2462 \u30ea\u30bd\u30fc\u30b9\u30b5\u30fc\u30d0\u30fc\u306e\u4f5c\u6210<\/strong><br \/>\n\u30ea\u30bd\u30fc\u30b9\u30b5\u30fc\u30d0\u30fc\u306e\u8b58\u5225\u5b50\u3068\u30b9\u30b3\u30fc\u30d7\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002\u4eca\u56de\u3001\u30ea\u30bd\u30fc\u30b9\u30b5\u30fc\u30d0\u30fc\u306f\u30a4\u30d9\u30f3\u30c8\u30c7\u30fc\u30bfPOST\u5148\u306e\u30b5\u30fc\u30d01\u3064\u3060\u3051\u3067\u3001\u30b9\u30b3\u30fc\u30d7\uff08\u6a29\u9650\uff09\u3082\u30b5\u30fc\u30d0\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u304b\u3069\u3046\u304b\u306e\u4e00\u7a2e\u985e\u3060\u3051\u306a\u306e\u3067\u3001\u9069\u5f53\u306a\u540d\u524d\u3067OK\u3067\u3059\u3002\u3053\u3053\u3067\u306f\u30ea\u30bd\u30fc\u30b9\u30b5\u30fc\u30d0\u30fc\u306e\u8b58\u5225\u5b50\u3092activity\uff08Activity\u306e\u60c5\u5831\u3092\u53d7\u3051\u308b\u30b5\u30fc\u30d0\u30fc\u306a\u306e\u3067\uff09\u3068\u3057\u3001\u30b9\u30b3\u30fc\u30d7\u3092\u30d5\u30eb\u30a2\u30af\u30bb\u30b9\u306e\u610f\u5473\u3092\u8fbc\u3081\u3066\u300c*\u300d\u3068\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig4.png\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig4.png\" alt=\"\u30ea\u30bd\u30fc\u30b9\u30b5\u30fc\u30d0\u30fc\u306e\u4f5c\u6210\" width=\"100%\" class=\"aligncenter size-full wp-image-14265\" srcset=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig4.png 1646w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig4-300x141.png 300w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig4-768x360.png 768w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig4-1024x480.png 1024w\" sizes=\"(max-width: 1646px) 100vw, 1646px\" \/><\/a><\/p>\n<p><strong>\u2463 \u30a2\u30d7\u30ea\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u8a2d\u5b9a<\/strong><br \/>\nOAuth 2.0\u306e\u300c\u8a31\u53ef\u3055\u308c\u3066\u3044\u308b OAuth \u30d5\u30ed\u30fc\u300d\u3067Client credentials\u3092\u9078\u3073\u3001\u300c\u8a31\u53ef\u3055\u308c\u3066\u3044\u308b\u30ab\u30b9\u30bf\u30e0\u30b9\u30b3\u30fc\u30d7\u300d\u306eactivity\/*\u306b\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u3066\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig5.png\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig5.png\" alt=\"\u30a2\u30d7\u30ea\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u8a2d\u5b9a\" width=\"100%\" class=\"aligncenter size-full wp-image-14266\" srcset=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig5.png 1617w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig5-300x115.png 300w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig5-768x295.png 768w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig5-1024x394.png 1024w\" sizes=\"(max-width: 1617px) 100vw, 1617px\" \/><\/a><\/p>\n<p><strong>\u2464 \u30c9\u30e1\u30a4\u30f3\u540d\u306e\u8a2d\u5b9a<\/strong><br \/>\n\u30e1\u30cb\u30e5\u30fc\u306e\u300c\u30c9\u30e1\u30a4\u30f3\u540d\u300d\u304b\u3089\u8a8d\u53ef\u30b5\u30fc\u30d0\u306e\u30c9\u30e1\u30a4\u30f3\u306e\u30d7\u30ec\u30d5\u30a3\u30c3\u30af\u30b9\u3092\u6c7a\u3081\u307e\u3059\u3002\u3053\u3053\u3067\u306fevent-webhook-test\u3068\u3057\u307e\u3059\u3002\u4ed6\u3067\u4f7f\u308f\u308c\u3066\u3044\u306a\u3044\u30e6\u30cb\u30fc\u30af\u306a\u30c9\u30e1\u30a4\u30f3\u3067\u3042\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig6.png\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig6.png\" alt=\"\u30c9\u30e1\u30a4\u30f3\u540d\u306e\u8a2d\u5b9a\" width=\"100%\" class=\"aligncenter size-full wp-image-14267\" srcset=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig6.png 1642w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig6-300x118.png 300w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig6-768x303.png 768w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig6-1024x403.png 1024w\" sizes=\"(max-width: 1642px) 100vw, 1642px\" \/><\/a><\/p>\n<h4>3. API Gateway\u306e\u30aa\u30fc\u30bd\u30e9\u30a4\u30b6\u30fc\u306e\u8a2d\u5b9a\u3068API\u306e\u30c7\u30d7\u30ed\u30a4<\/h4>\n<p>\u4e0a\u3067\u8a2d\u5b9a\u3057\u305f\u30e6\u30fc\u30b6\u30fc\u30d7\u30fc\u30eb\u3092API Gateway\u306e\u30aa\u30fc\u30bd\u30e9\u30a4\u30b6\u30fc\u306b\u6307\u5b9a\u3057\u3066API\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u5236\u5fa1\u3057\u307e\u3059\u3002<br \/>\n\u307e\u305a1\u3067\u4f5c\u6210\u3057\u305fAPI\u306e\u30da\u30fc\u30b8\u306b\u79fb\u52d5\u3057\u3001\u5de6\u5074\u306e\u300c\u30aa\u30fc\u30bd\u30e9\u30a4\u30b6\u30fc\u300d\u3092\u9078\u629e\u3057\u307e\u3059\u3002\u65b0\u3057\u3044\u30aa\u30fc\u30bd\u30e9\u30a4\u30b6\u30fc\u3092\u4f5c\u6210\u3057\u3001\u56f3\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u3066\u4fdd\u5b58\u3057\u307e\u3059\u3002\u300cCognito\u30e6\u30fc\u30b6\u30fc\u30d7\u30fc\u30eb\u300d\u306b\u306f2\u3067\u4f5c\u6210\u3057\u305f\u30e6\u30fc\u30b6\u30fc\u30d7\u30fc\u30eb\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig7.png\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig7.png\" alt=\"API Gateway\u306e\u30aa\u30fc\u30bd\u30e9\u30a4\u30b6\u30fc\u306e\u8a2d\u5b9a\" width=\"100%\" class=\"aligncenter size-full wp-image-14269\" srcset=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig7.png 1057w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig7-300x202.png 300w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig7-768x516.png 768w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig7-1024x688.png 1024w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig7-225x150.png 225w\" sizes=\"(max-width: 1057px) 100vw, 1057px\" \/><\/a><\/p>\n<p>\u30aa\u30fc\u30bd\u30e9\u30a4\u30b6\u30fc\u3092\u4f5c\u6210\u3067\u304d\u305f\u3089\u3001\u5de6\u5074\u306e\u300c\u30ea\u30bd\u30fc\u30b9\u300d\u306b\u623b\u308a\u3001POST\u306e\u300c\u30e1\u30bd\u30c3\u30c9\u30ea\u30af\u30a8\u30b9\u30c8\u300d\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig8.png\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig8.png\" alt=\"API\u306e\u30c7\u30d7\u30ed\u30a4\" width=\"100%\" class=\"aligncenter size-full wp-image-14268\" srcset=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig8.png 1085w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig8-300x153.png 300w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig8-768x391.png 768w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig8-1024x521.png 1024w\" sizes=\"(max-width: 1085px) 100vw, 1085px\" \/><\/a><\/p>\n<p>\u300c\u8a8d\u53ef\u300d\u306b\u306f\u5148\u307b\u3069\u4f5c\u3063\u305f\u30aa\u30fc\u30bd\u30e9\u30a4\u30b6\u30fc\uff08my_authorizer\uff09\u3092\u9078\u629e\u3057\u3001\u300cOAuth \u30b9\u30b3\u30fc\u30d7\u300d\u306b\u300cactivity\/*\u300d\u3092\u5165\u529b\u3057\u307e\u3059\u3002<br \/>\n\u300c\u30a2\u30af\u30b7\u30e7\u30f3\u300d\u304b\u3089\u300cAPI\u306e\u30c7\u30d7\u30ed\u30a4\u300d\u3092\u884c\u3044\u307e\u3059\u3002\u300c\u30c7\u30d7\u30ed\u30a4\u3055\u308c\u308b\u30b9\u30c6\u30fc\u30b8\u300d\u306fprod\u3068\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u3068\u3001\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306eURL\uff08https:\/\/xxxxxx.execute-api.ap-northeast-1.amazonaws.com\/prod\uff09\u304c\u8868\u793a\u3055\u308c\u3001\u8a2d\u5b9a\u306f\u4e00\u901a\u308a\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<h4>4. \u8a8d\u53ef\u30d5\u30ed\u30fc\u306e\u78ba\u8a8d<\/h4>\n<p>\u6b21\u306e\u30b9\u30c6\u30c3\u30d7\u306b\u9032\u3080\u524d\u306b\u3001OAuth\u306e\u30d5\u30ed\u30fc\u304c\u3061\u3083\u3093\u3068\u5b9f\u88c5\u3067\u304d\u305f\u304b\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u307e\u305a\u8a8d\u53ef\u30b5\u30fc\u30d0\u306b\u5bfe\u3057\u3066\u8a8d\u53ef\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u308a\u3001\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ curl --url 'https:\/\/event-webhook-test.auth.ap-northeast-1.amazoncognito.com\/oauth2\/token' \\\r\n--header 'Authorization: Basic username:password' \\\r\n--header 'Content-Type: application\/x-www-form-urlencoded' \\\r\n--data-urlencode 'grant_type=client_credentials' \r\n\r\n{&quot;access_token&quot;:&quot;eyJrrrrr.eyJzzzzz.yyyyy&quot;,&quot;expires_in&quot;:3600,&quot;token_type&quot;:&quot;Bearer&quot;}\r\n<\/pre>\n<p>Authorization\u30d8\u30c3\u30c0\u306e\u300cusername:password\u300d\u306e\u90e8\u5206\u306f\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8ID\u3068\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u3092\u30b3\u30ed\u30f3\u3067\u3064\u306a\u3044\u3067Base64\u30a8\u30f3\u30b3\u30fc\u30c9\u3057\u305f\u6587\u5b57\u5217\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30ea\u30af\u30a8\u30b9\u30c8\u65b9\u6cd5\u306e\u8a73\u7d30\u306f<a href=\"https:\/\/docs.aws.amazon.com\/ja_jp\/cognito\/latest\/developerguide\/token-endpoint.html\" rel=\"noopener\" target=\"_blank\">AWS\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3 (access_token) \u304c\u8fd4\u5374\u3055\u308c\u305f\u3089\u3001\u305d\u308c\u3092Authorization\u30d8\u30c3\u30c0\u306b\u6307\u5b9a\u3057\u3066API\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ curl --url 'https:\/\/xxxxxx.execute-api.ap-northeast-1.amazonaws.com\/prod\/activity' \\\r\n--header &quot;Authorization: Bearer eyJrrrrr.eyJzzzzz.yyyyy&quot; \\\r\n--data '{&quot;message&quot;:&quot;Hello&quot;}'\r\n\r\n{\\&quot;message\\&quot;:\\&quot;Hello\\&quot;}\r\n<\/pre>\n<p>\u30ea\u30af\u30a8\u30b9\u30c8\u30c7\u30fc\u30bf\u304c\u305d\u306e\u307e\u307e\u8fd4\u3063\u3066\u304f\u308c\u3070\u6210\u529f\u3067\u3059\u3002CloudWatch\u306b\u3082\u540c\u3058\u30c7\u30fc\u30bf\u304c\u8a18\u9332\u3055\u308c\u308b\u306f\u305a\u3067\u3059\u3002\u3061\u306a\u307f\u306b\u3001\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u3092\u6307\u5b9a\u3057\u306a\u304b\u3063\u305f\u308a\u671f\u9650\u5207\u308c\u306e\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u3092\u6307\u5b9a\u3057\u305f\u308a\u3059\u308b\u3068\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u306f\u5931\u6557\u3057\u307e\u3059\u3002<\/p>\n<h4>5. SendGrid\u306e\u8a2d\u5b9a\uff08\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074\u306e\u6e96\u5099\uff09<\/h4>\n<p>\u3053\u3053\u307e\u3067\u304f\u308c\u3070\u3001\u3082\u3046\u4e00\u606f\u3067\u3059\u3002SendGrid\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306eSettings\u304b\u3089Mail Settings > Event Webhook\u3092\u9078\u629e\u3057\u3001\u4ee5\u4e0b\u306e\u901a\u308a\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li>Authorization Method: OAuth 2.0<\/li>\n<li>Client ID: \u30a2\u30d7\u30ea\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8ID<\/li>\n<li>Client Secret: \u30a2\u30d7\u30ea\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b7\u30fc\u30af\u30ec\u30c3\u30c8<\/li>\n<li>Token URL: Cognito\u3067\u8a2d\u5b9a\u3057\u305f\u30c9\u30e1\u30a4\u30f3\uff08https:\/\/event-webhook-test.auth.ap-northeast-1.amazoncognito.com\/oauth2\/token\uff09<\/li>\n<li>HTTP Post URL: API Gateway\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8URL\uff08https:\/\/xxxxxx.execute-api.ap-northeast-1.amazonaws.com\/prod\/activity\uff09<\/li>\n<\/ul>\n<p>\u300cTest Your Integration\u300d\u30dc\u30bf\u30f3\u3092\u62bc\u4e0b\u3057\u3066\u3001CloudWatch\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u300c\u30ed\u30b0\u30b0\u30eb\u30fc\u30d7\u300d\u304b\u3089\u8a72\u5f53\u306eAPI\u306e\u30ed\u30b0\u3092\u958b\u304d\u3001\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u304c\u78ba\u8a8d\u3067\u304d\u305f\u3089\u6210\u529f\u3067\u3059\uff01<\/p>\n<p><a href=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig9.png\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig9.png\" alt=\"CloudWatch\u3092\u78ba\u8a8d\" width=\"100%\" class=\"aligncenter size-full wp-image-14270\" srcset=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig9.png 1573w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig9-300x165.png 300w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig9-768x421.png 768w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2021\/08\/fig9-1024x562.png 1024w\" sizes=\"(max-width: 1573px) 100vw, 1573px\" \/><\/a><\/p>\n<h3>\u304a\u308f\u308a\u306b<\/h3>\n<p>\u5c11\u3057\u624b\u6570\u306f\u591a\u3044\u3067\u3059\u304c\u3001\u308f\u304b\u3063\u3066\u3057\u307e\u3048\u3070\u96e3\u3057\u3044\u3068\u3053\u308d\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u7279\u306b\u3001\u65e2\u306bAWS Lambda\u3092\u7528\u3044\u3066\u30a4\u30d9\u30f3\u30c8\u30c7\u30fc\u30bf\u3092\u53d7\u3051\u53d6\u3063\u3066\u3044\u308b\u3068\u3044\u3046\u65b9\u306f\u3001\u305c\u3072OAuth 2.0\u306e\u5c0e\u5165\u3082\u3054\u691c\u8a0e\u304f\u3060\u3055\u3044\u3002\u307e\u305f\u3001AWS CDK\u306ePython\u306e\u30b3\u30fc\u30c9\u30b5\u30f3\u30d7\u30eb\u3068\u624b\u9806\u3092\u4ee5\u4e0b\u306b\u307e\u3068\u3081\u307e\u3057\u305f\u3002AWS\u306e\u30de\u30cd\u30fc\u30b8\u30e1\u30f3\u30c8\u30b3\u30f3\u30bd\u30fc\u30eb\u3067\u306f\u306a\u304f\u3001\u30b3\u30fc\u30c9\u30d9\u30fc\u30b9\u3067\u540c\u69d8\u306e\u8a2d\u5b9a\u3092\u884c\u3044\u305f\u3044\u5834\u5408\u306f\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<br \/>\n<a href=\"https:\/\/github.com\/yken2257\/apigateway-client-credentials-cdk\" rel=\"noopener\" target=\"_blank\">https:\/\/github.com\/yken2257\/apigateway-client-credentials-cdk<\/a><\/p>\n<p>OAuth 2.0\u3068\u5bfe\u3092\u306a\u3059\u8a8d\u8a3c\u306e\u6a5f\u80fd\u3068\u3057\u3066\u3001\u300cSigned Event Webhook Requests\u300d\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u3061\u3089\u306e\u5b9f\u88c5\u4f8b\u306f<a href=\"https:\/\/sendgrid.kke.co.jp\/blog\/?p=13029\" rel=\"noopener\" target=\"_blank\">\u3053\u306e\u30d6\u30ed\u30b0\u8a18\u4e8b<\/a>\u3067\u7d39\u4ecb\u3057\u3066\u3044\u307e\u3059\u3002\u307e\u305f\u30012\u3064\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u5f37\u5316\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u6982\u8981\u8aac\u660e\u306f\u3001<a href=\"https:\/\/sendgrid.kke.co.jp\/blog\/?p=12980\" rel=\"noopener\" target=\"_blank\">\u3053\u3061\u3089\u306e\u8a18\u4e8b<\/a>\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30a4\u30d9\u30f3\u30c8\u30c7\u30fc\u30bf\u3092\u4efb\u610f\u306e\u30b5\u30fc\u30d0\u306bPOST\u3059\u308bEvent Webhook\u6a5f\u80fd\u306b\u306f\u3001\u30b5\u30fc\u30d0\u5074\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u5f37\u5316\u306e\u305f\u3081\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u304c2\u3064\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u4e00\u3064\u304cSigned Event Webhook Requests\u3001\u3082\u3046\u4e00\u3064 <a class=\"read-more\" href=\"https:\/\/sendgrid.kke.co.jp\/blog\/?p=14261\">&#8230;\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":15,"featured_media":14271,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[11],"tags":[],"class_list":["post-14261","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\/14261","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=14261"}],"version-history":[{"count":4,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/14261\/revisions"}],"predecessor-version":[{"id":14275,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/14261\/revisions\/14275"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/media\/14271"}],"wp:attachment":[{"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14261"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14261"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14261"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}