{"id":2891,"date":"2015-04-24T12:35:16","date_gmt":"2015-04-24T03:35:16","guid":{"rendered":"https:\/\/ec2-54-238-200-5.ap-northeast-1.compute.amazonaws.com\/blog\/?p=2891"},"modified":"2023-01-06T17:37:40","modified_gmt":"2023-01-06T08:37:40","slug":"sendgrid%e3%81%ae%e3%83%a1%e3%83%b3%e3%83%86%e3%83%8a%e3%83%b3%e3%82%b9%e6%83%85%e5%a0%b1%e3%82%92chatwork%e3%81%ab%e9%80%9a%e7%9f%a5%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/sendgrid.kke.co.jp\/blog\/?p=2891","title":{"rendered":"SendGrid\u306e\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u60c5\u5831\u3092ChatWork\u306b\u901a\u77e5\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p style=\"margin-bottom: 20px;\">2015\u5e744\u6708\u3001Sendgrid\u306e\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u60c5\u5831\u3084\u969c\u5bb3\u60c5\u5831\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306e<a href=\"http:\/\/status.sendgrid.com\" target=\"_blank\">\u30b9\u30c6\u30fc\u30bf\u30b9\u30da\u30fc\u30b8<\/a>\u304c<a href=\"http:\/\/statuspage.io\" target=\"_blank\">statuspage.io<\/a> \u4e0a\u306b\u79fb\u884c\u3055\u308c\u307e\u3057\u305f\u3002\u3053\u308c\u306b\u3088\u308a\u3001statuspage.io\u304c\u63d0\u4f9b\u3059\u308b\u69d8\u3005\u306a\u901a\u77e5\u65b9\u6cd5\u3092\u3001SendGrid\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u306e\u901a\u77e5\u306b\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p style=\"margin-bottom: 20px;\">\u305d\u3053\u3067\u4eca\u56de\u306f\u3001SendGrid\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u3092<a href=\"http:\/\/www.chatwork.com\/ja\/\" target=\"_blank\">ChatWork<\/a>\u306b\u81ea\u52d5\u901a\u77e5\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002ChatWork\u306b\u901a\u77e5\u3059\u308b\u3053\u3068\u3067\u3001SendGrid\u306e\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u60c5\u5831\u306e\u66f4\u65b0\u3092\u3044\u3061\u65e9\u304f\u77e5\u308a\u3001\u5fc5\u8981\u306a\u5bfe\u7b56\u3092\u8b1b\u3058\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p style=\"margin-bottom: 20px;\">\u4eca\u56de\u7d39\u4ecb\u3059\u308b\u30b7\u30b9\u30c6\u30e0\u306e\u6982\u8981\u3092\u4ee5\u4e0b\u306b\u793a\u3057\u307e\u3059\u3002<\/p>\n<p style=\"margin-bottom: 0px;\">\n<img decoding=\"async\" style=\"margin-bottom: 5px;\"  src=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2015\/04\/system-overview1-1024x296.png\" alt=\"SendGrid\u30b9\u30c6\u30fc\u30bf\u30b9\u306e\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u3078\u306e\u901a\u77e5\u30b7\u30b9\u30c6\u30e0\u56f3\" width=\"100%\" class=\"aligncenter size-large wp-image-2937\" srcset=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2015\/04\/system-overview1-1024x296.png 1024w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2015\/04\/system-overview1-300x87.png 300w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2015\/04\/system-overview1-768x222.png 768w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2015\/04\/system-overview1.png 1041w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/>\n<\/p>\n<p style=\"font-size: small; text-align: center;\">SendGrid\u30b9\u30c6\u30fc\u30bf\u30b9\u306e\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u3078\u306e\u901a\u77e5\u30b7\u30b9\u30c6\u30e0<\/p>\n<p><!--more--><\/p>\n<ul style=\"background-image:none;list-style-type:decimal;margin-left:20px;\">\n<li style=\"background-image:none\">SendGrid\u306f\u969c\u5bb3\u306a\u3069\u304c\u767a\u751f\u3059\u308b\u3068\u3001\u30b9\u30c6\u30fc\u30bf\u30b9\u30da\u30fc\u30b8\u3092\u66f4\u65b0\u3057\u307e\u3059\u3002status.sendgrid.com\u306b\u30b9\u30c6\u30fc\u30bf\u30b9\u306e\u66f4\u65b0\u3092\u767b\u9332\u3057\u307e\u3059\u3002<\/li>\n<li style=\"background-image:none\">\u30b9\u30c6\u30fc\u30bf\u30b9\u30da\u30fc\u30b8\u306f\u3001\u30b9\u30c6\u30fc\u30bf\u30b9\u304c\u66f4\u65b0\u3055\u308c\u308b\u3068\u73fe\u5728\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u901a\u77e5\u5148\u306b\u901a\u77e5\u3092\u884c\u3044\u307e\u3059\u3002\u76f4\u63a5ChatWork\u306b\u901a\u77e5\u3067\u304d\u308c\u3070\u826f\u3044\u306e\u3067\u3059\u304c\u3001Webhook\u306e\u5f62\u5f0f\u306e\u5909\u63db\uff08\u5f8c\u8ff0\uff09\u304c\u5fc5\u8981\u306a\u305f\u3081\u3001<a href=\"http:\/\/reflector.io\" target=\"_blank\">reflector.io<\/a>\u3092\u9593\u306b\u304b\u307e\u305b\u307e\u3059\u3002\u901a\u77e5\u65b9\u6cd5\u306b\u306f\u3001\u30e1\u30fc\u30eb\u3001Twitter\u3001Webhook\u3001RSS Reader\u306a\u3069\u3044\u308d\u3044\u308d\u306a\u3082\u306e\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u4eca\u56de\u306fWebhook\u3092\u7528\u3044\u3066reflector.io\u306b\u901a\u77e5\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/li>\n<li style=\"background-image:none\">reflector.io\u306f\u3001<a href=\"http:\/\/labs.sendgrid.com\/\" target=\"_blank\">SendGrid Labs<\/a>\u304c\u904b\u55b6\u3059\u308bWebhook\u306e\u8ee2\u9001\u30b5\u30fc\u30d3\u30b9\u3067\u3059\u3002\u5165\u529b\u3068\u3057\u3066HTTP\u30d9\u30fc\u30b9\u306eWebhook\u3092\u53d7\u3051\u3001\u3042\u3089\u304b\u3058\u3081\u767b\u9332\u3055\u308c\u305f\u5909\u63db\u51e6\u7406\u3092\u5b9f\u884c\u3057\u3001\u5225\u306eHTTP\u30d9\u30fc\u30b9\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8(REST API\u306a\u3069)\u306b\u8ee2\u9001\u3057\u307e\u3059\u3002\u4eca\u56de\u306f\u30b9\u30c6\u30fc\u30bf\u30b9\u30da\u30fc\u30b8\u306eWehbook\u3092reflector.io\u3067\u53d7\u3051\u3001ChatWork\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u6295\u7a3fAPI\u3092\u547c\u3073\u51fa\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<p style=\"margin-bottom: 20px;\">\u305d\u308c\u3067\u306f\u3001\u4f5c\u696d\u3092\u59cb\u3081\u307e\u3057\u3087\u3046\u3002<\/p>\n<div style=\"clear:both;width:auto;height:40px;\"><!----><\/div>\n<h4><strong>reflector.io\u306e\u8a2d\u5b9a<\/strong><\/h4>\n<div style=\"clear:both;width:auto;height:10px;\"><!----><\/div>\n<p style=\"margin-bottom: 20px;\"><strong>1. Webhook\u306e\u4f5c\u6210<\/strong><\/p>\n<p style=\"margin-bottom: 20px;\">\u307e\u305a\u306f\u3001\u30b9\u30c6\u30fc\u30bf\u30b9\u30da\u30fc\u30b8\u3078\u767b\u9332\u3059\u308breflector.io\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3092\u4f5c\u308a\u307e\u3057\u3087\u3046\u3002reflector.io\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3001\u300cSIGN ME UP\u300d\u3092\u62bc\u3057\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002SendGrid Lab\u306b\u3088\u308b\u30b5\u30fc\u30d3\u30b9\u3067\u3059\u304c\u3001SendGrid\u306e\u4f7f\u7528\u6709\u7121\u306b\u304b\u304b\u308f\u3089\u305a\u8ab0\u3067\u3082\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30e1\u30fc\u30eb\u306e\u8a8d\u8a3c\u3092\u6e08\u307e\u305b\u3066reflector.io\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u307e\u3057\u3087\u3046\u3002\u30c8\u30c3\u30d7\u753b\u9762\u306e\u300cAdd First Webhook\u300d\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u3066Webhook\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002Webhook\u540d\u306b\u306f\u597d\u304d\u306a\u540d\u524d\u3092\u5165\u308c\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u3053\u3067\u306f\u300c\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u3078\u306e\u901a\u77e5\u300d\u3068\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2015\/04\/new-webhook.png\" alt=\"Webhook\u306e\u65b0\u898f\u4f5c\u6210\u753b\u9762\" width=\"100%\" class=\"aligncenter size-full wp-image-2926\" srcset=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2015\/04\/new-webhook.png 768w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2015\/04\/new-webhook-300x40.png 300w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/p>\n<p>\u300cSave\u300d\u3092\u62bc\u3059\u3068\u3001\u6b21\u306e\u3088\u3046\u306a\u753b\u9762\u306b\u306a\u308a\u307e\u3059\u3002\u5de6\u4e0a\u306e\u30c6\u30ad\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u306b\u8868\u793a\u3055\u308c\u3066\u3044\u308bURL\u304c\u5165\u529b\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3068\u306a\u308a\u307e\u3059\u3002\u3053\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3092\u30b9\u30c6\u30fc\u30bf\u30b9\u30da\u30fc\u30b8\u306b\u767b\u9332\u3057\u307e\u3059\uff08\u65b9\u6cd5\u306f\u5f8c\u3067\u793a\u3057\u307e\u3059\uff09\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2015\/04\/input-endpoint.png\" alt=\"\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8URL\" width=\"100%\" class=\"aligncenter size-full wp-image-2912\" srcset=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2015\/04\/input-endpoint.png 976w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2015\/04\/input-endpoint-300x124.png 300w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2015\/04\/input-endpoint-768x317.png 768w\" sizes=\"(max-width: 976px) 100vw, 976px\" \/><\/p>\n<div style=\"clear:both;width:auto;height:10px;\"><!----><\/div>\n<p style=\"margin-bottom: 20px;\"><strong>2. \u901a\u77e5\u5148\u30b0\u30eb\u30fc\u30d7(Destination Group)\u306e\u4f5c\u6210<\/strong><\/p>\n<p style=\"margin-bottom: 20px;\">\u6b21\u306b\u3001\u300cAdd First Group\u300d\u3092\u62bc\u3057\u3066\u3001\u901a\u77e5\u5148\u30b0\u30eb\u30fc\u30d7(Destination Group)\u3092\u4f5c\u308a\u307e\u3059\u3002\u901a\u77e5\u5148\u30b0\u30eb\u30fc\u30d7\u3068\u306f\u3001\u8ee2\u9001\u30eb\u30fc\u30eb(Path-thru \u307e\u305f\u306f Failover)\u3067\u95a2\u9023\u3065\u3051\u3089\u308c\u305f\u3001\u8ee2\u9001\u5148\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306e\u30b0\u30eb\u30fc\u30d7\u3067\u3059\u3002\u201dpath-thru\u201d\u306f\u767b\u9332\u3055\u308c\u305f\u901a\u77e5\u5148\u3059\u3079\u3066\u306b\u901a\u77e5\u3092\u3057\u3001\u201dfailover\u201d\u3067\u306f\u6700\u3082\u512a\u5148\u5ea6\u306e\u9ad8\u3044\u5b9b\u5148\u306b\u901a\u77e5\u3092\u884c\u3044\u307e\u3059\u3002\u4eca\u56de\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u307e\u307epath-thru\u3092\u9078\u3073\u307e\u3059\u3002\u30b0\u30eb\u30fc\u30d7\u540d\u306f\u300c\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u3078\u306e\u901a\u77e5\u30b0\u30eb\u30fc\u30d7\u300d\u3068\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2015\/04\/destination-group.png\" alt=\"\u901a\u77e5\u30b0\u30eb\u30fc\u30d7(Destination Group)\u306e\u4f5c\u6210\" width=\"100%\" class=\"aligncenter size-full wp-image-2925\" srcset=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2015\/04\/destination-group.png 826w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2015\/04\/destination-group-300x154.png 300w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2015\/04\/destination-group-768x394.png 768w\" sizes=\"(max-width: 826px) 100vw, 826px\" \/><\/p>\n<div style=\"clear:both;width:auto;height:10px;\"><!----><\/div>\n<p style=\"margin-bottom: 20px;\"><strong>3. \u901a\u77e5\u5148\u306e\u8a2d\u5b9a<\/strong><\/p>\n<p style=\"margin-bottom: 20px;\">\u6b21\u306b\u3001\u8ee2\u9001\u524d\u306b\u884c\u3046\u5909\u63db\u51e6\u7406(Pipeline)\u3068\u8ee2\u9001\u5148\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\u300cAdd First Destination\u300d\u3092\u62bc\u3057\u307e\u3059\u3002<\/p>\n<p style=\"margin-bottom: 20px;\">Destination\u306b\u306f\u3001ChatWork\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u6295\u7a3f\u306eAPI\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002ChatWork \u306e API\u306e\u4ed5\u69d8\u306f<a href=\"http:\/\/developer.chatwork.com\/ja\/endpoints.html\" target=\"_blank\">\u3053\u3061\u3089<\/a>\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002\u306a\u304a\u3001ChatWork\u306eAPI\u3092\u5229\u7528\u3059\u308b\u306b\u306f<a href=\"http:\/\/developer.chatwork.com\/ja\/\" target=\"_blank\">\u5229\u7528\u7533\u8acb<\/a>\u3092\u3057\u3001ChatWork Token\u3092\u5165\u624b\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30eb\u30fc\u30e0ID\u306f\u3001ChatWork\u306e\u30eb\u30fc\u30e0\u306b\u30a2\u30af\u30bb\u30b9\u3057\u305f\u969b\u306bURL\u306b\u8868\u793a\u3055\u308c\u308b\u201crid\u201d\u306b\u7d9a\u304f\u6570\u5b57\u3067\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2015\/04\/destination.png\" alt=\"\u901a\u77e5\u5148\u306e\u4f5c\u6210\" width=\"100%\" class=\"aligncenter size-full wp-image-2911\" srcset=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2015\/04\/destination.png 723w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2015\/04\/destination-300x240.png 300w\" sizes=\"(max-width: 723px) 100vw, 723px\" \/><\/p>\n<p style=\"margin-bottom: 20px;\">Type, Retries, Timeout, Outbound limit\u306f\u3068\u308a\u3042\u3048\u305a\u305d\u306e\u307e\u307e\u306b\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<div style=\"clear:both;width:auto;height:10px;\"><!----><\/div>\n<p style=\"margin-bottom: 20px;\"><strong>4. Pipeline\u306e\u8a2d\u5b9a<\/strong><\/p>\n<p style=\"margin-bottom: 20px;\">\u6700\u5f8c\u306bPipeline\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002Pipeline\u306f\u5165\u529b\u304b\u3089\u51fa\u529b\u3078\u306e\u9593\u306b\u5b9f\u884c\u3055\u308c\u308b\u5909\u63db\u51e6\u7406\u306e\u3053\u3068\u3067\u3059\u3002\u3053\u3053\u3067\u306f\u3001\u30b9\u30c6\u30fc\u30bf\u30b9\u30da\u30fc\u30b8\u306e\u901a\u77e5\u5f62\u5f0f\u304b\u3089ChatWork API\u306e\u5f62\u5f0f\u306b\u5909\u63db\u3059\u308b\u305f\u3081\u306ePipeline\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\u300cAdd first pipeline\u300d\u3092\u62bc\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p style=\"margin-bottom: 20px;\">Pipeline\u306e\u540d\u524d\u306f\u300cstatus.sendgrid.com\u304b\u3089ChatWork\u3078\u300d\u3068\u3057\u307e\u3057\u305f\u3002\u5909\u63db\u51e6\u7406\u306f\u3001Javascript\u3092\u4f7f\u3063\u3066\u8a18\u8ff0\u3057\u307e\u3059\u3002\u5f15\u6570\u3067\u6e21\u3055\u308c\u305frequest\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u3001HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u5185\u5bb9\u304c\u683c\u7d0d\u3055\u308c\u3066\u304f\u308b\u306e\u3067\u3001\u9069\u5b9crequest\u306e\u4e2d\u8eab\u3092\u4fee\u6b63\u3057\u7d50\u679c\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2015\/04\/pipe-line.png\" alt=\"\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u306e\u8a2d\u5b9a\" width=\"70%\" class=\"aligncenter size-full wp-image-2923\" srcset=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2015\/04\/pipe-line.png 543w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2015\/04\/pipe-line-258x300.png 258w\" sizes=\"(max-width: 543px) 100vw, 543px\" \/><\/p>\n<p style=\"margin-bottom: 20px;\">\u30d7\u30ed\u30b0\u30e9\u30e0\u6b04\u306b\u4ee5\u4e0b\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u30b3\u30d4\u30fc\uff06\u30da\u30fc\u30b9\u30c8\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\nrequest.headers&#x5B;'X-ChatWorkToken'] = '&lt;Your ChatWork Token&gt;'; \/\/ 1\r\nvar obj = JSON.parse(request.body); \/\/ 2\r\n\r\nvar body = &quot;&quot;;\r\nbody += &quot;&#x5B;To:&lt;UserID1&gt;]&#x5B;To:&lt;UserID2&gt;]&quot;; \/\/ ChatWork\u3067 TO: \u3059\u308b\u30e6\u30fc\u30b6\u306e\u30e6\u30fc\u30b6ID\u3092\u6307\u5b9a\u3059\u308b.  \/\/ 3\r\n\r\nbody += &quot;&#x5B;info]&quot;;\r\n\r\nif( &quot;incident&quot; in obj ){ \/\/ 4\r\n    var latest = obj.incident.incident_updates&#x5B;0]; \/\/ 5\r\n    body += &quot;&#x5B;title] Incident \u901a\u77e5 : &quot;+obj.incident.name+&quot; (&quot;+obj.incident.status+&quot;)&#x5B;\/title]n&quot;;\r\n    body += &quot;\u66f4\u65b0\u65e5\u6642\uff1a&quot;+latest.updated_at + &quot;n&quot;;\r\n    body += &quot;\u72b6\u3000\u3000\u614b\uff1a&quot;+latest.status + &quot;nn&quot;;\r\n    body += latest.body + &quot;n&quot;;\r\n\r\n}else if(&quot;component_update&quot; in obj){ \/\/ Component\u306e\u66f4\u65b0\u901a\u77e5\r\n    body += &quot;&#x5B;title]&quot;+&quot;Component \u66f4\u65b0\u901a\u77e5&quot;+&quot;&#x5B;\/title]&quot;;\r\n}else{\r\n    body += &quot;&#x5B;title]&quot;+&quot;\u4e0d\u660e\u306a\u72b6\u614b\u901a\u77e5&quot; +&quot;&#x5B;\/title]n&quot;;\r\n}\r\n\r\nbody += &quot;&#x5B;hr]&quot;;\r\nbody += &quot;\u8a73\u7d30\u306f http:\/\/status.sendgrid.com\/ \u3092\u78ba\u8a8d\u3057\u3066\u4e0b\u3055\u3044.&quot;\r\nbody += &quot;&#x5B;\/info]&quot;;\r\n\r\n\r\nrequest.body = &quot;body=&quot;+encodeURI(body); \/\/ 6\r\nrequest.headers&#x5B;'Content-Type'] = &quot;application\/x-www-form-urlencoded&quot;; \/\/ 7\r\n\r\nreturn request;\r\n\r\n<\/pre>\n<p style=\"margin-bottom:12px;\"><!-- --><\/p>\n<ul style=\"background-image:none;list-style-type:decimal;margin-left:20px;\">\n<li style=\"background-image:none;\">X-ChatWorkToken HTTP\u30d8\u30c3\u30c0\u306bChatWork Token\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li style=\"background-image:none;\">\u30b9\u30c6\u30fc\u30bf\u30b9\u30da\u30fc\u30b8\u304b\u3089\u306eWebhook\u306e\u30c7\u30fc\u30bf\u306frequest.body\u306bJSON\u6587\u5b57\u5217(\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u306f\u306a\u3044\u306e\u3067\u6ce8\u610f)\u3068\u3057\u3066\u683c\u7d0d\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u30b9\u30c6\u30fc\u30bf\u30b9\u30da\u30fc\u30b8\u304b\u3089\u306e\u901a\u77e5\u306e\u5f62\u5f0f\u306b\u3064\u3044\u3066\u306f<a href=\"http:\/\/doers.statuspage.io\/customer-notifications\/webhooks\/\" target=\"_blank\">\u3053\u3061\u3089<\/a>\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n<li style=\"background-image:none;\">\u95a2\u4fc2\u8005\u3092TO\u306b\u5165\u308c\u3066\u304a\u304f\u3068\u3001ChatWork\u304b\u3089\u95a2\u4fc2\u8005\u3078\u3055\u3089\u306b\u901a\u77e5\u304c\u98db\u3076\u306e\u3067\u4fbf\u5229\u3067\u3059\u3002<\/li>\n<li style=\"background-image:none;\">\u901a\u5e38\u306e\u72b6\u614b\u306e\u66f4\u65b0\u306f\u201dincident\u201d\u3068\u3057\u3066\u3001\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u72b6\u614b\u306e\u66f4\u65b0\u306f\u201dcomponent\u201d\u3068\u3057\u3066\u901a\u77e5\u3055\u308c\u307e\u3059\u3002<a href=\"http:\/\/doers.statuspage.io\/api\/v1\/components\/\" target=\"_blank\">component<\/a>\u306f\u901a\u77e5\u3092\u884c\u3046\u5358\u4f4d\u3092\u8868\u3057\u3066\u3044\u307e\u3059\u304c\u3001SendGrid\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u30da\u30fc\u30b8\u3067\u306f\u73fe\u5728\u4f7f\u7528\u3055\u308c\u3066\u3044\u306a\u3044\u306e\u3067\u7279\u306b\u901a\u77e5\u5185\u5bb9\u306f\u30ad\u30e3\u30d7\u30c1\u30e3\u3057\u307e\u305b\u3093\u3002incident\u901a\u77e5\u306e\u65b9\u306f\u3001incident\u306e\u540d\u79f0\u3084\u72b6\u614b\u3001\u30b3\u30e1\u30f3\u30c8\u3092\u30ad\u30e3\u30d7\u30c1\u30e3\u3057\u3066\u51fa\u529b\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/li>\n<li style=\"background-image:none;\">\u76f4\u8fd1\u306e\u66f4\u65b0\u5185\u5bb9\u3067\u3042\u308b0\u756a\u76ee\u306e\u8981\u7d20\u306e\u307f\u3092ChatWork\u306b\u6295\u7a3f\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n<li style=\"background-image:none;\">request.body\u3092ChatWork\u306eAPI\u547c\u3073\u51fa\u3057\u306e\u5f62\u5f0f\u306b\u5909\u63db\u3057\u307e\u3059\u3002\u201dbody=\u201d\u306b\u7d9a\u3051\u3066\u6295\u7a3f\u5185\u5bb9\u306e\u6587\u5b57\u5217\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li style=\"background-image:none;\">ChatWork\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306fapplication\/json\u306f\u53d7\u3051\u4ed8\u3051\u306a\u3044\u306e\u3067\u3001\u5f37\u5236\u7684\u306bapplication\/x-www-form-urlencoded\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<p style=\"margin-bottom: 20px;\">\n\u3053\u308c\u3067reflector.io\u306e\u8a2d\u5b9a\u306f\u5b8c\u4e86\u3067\u3059\u3002\u300cSave\u300d\u3092\u62bc\u3057\u3066\u4f5c\u6210\u3057\u305fPipeline\u304c\u9078\u629e\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3001\u300cAdd\u300d\u30dc\u30bf\u30f3\u3067Destination\u3092\u4fdd\u5b58\u3057\u307e\u3059\u3002\u306a\u304a\u3001ChatWork\u306e\u6295\u7a3f\u5148\u306e\u30b0\u30eb\u30fc\u30d7\u30c1\u30e3\u30c3\u30c8\u306b\u306f\u3001\u5fc5\u305aToken\u306e\u6240\u6709\u8005\u3092\u30e1\u30f3\u30d0\u3068\u3057\u3066\u8ffd\u52a0\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30e1\u30f3\u30d0\u304c\u5b58\u5728\u3057\u306a\u3044\u3068\u6295\u7a3f\u304c\u5931\u6557\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002\n<\/p>\n<div style=\"clear:both;width:auto;height:40px;\"><!----><\/div>\n<h4><strong>\u30b9\u30c6\u30fc\u30bf\u30b9\u30da\u30fc\u30b8\u3068reflector.io\u306e\u63a5\u7d9a<\/strong><\/h4>\n<p>\u30b9\u30c6\u30fc\u30bf\u30b9\u30da\u30fc\u30b8\u306breflector.io\u306e\u5165\u529b\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3092\u767b\u9332\u3057\u307e\u3059\u3002\u30b9\u30c6\u30fc\u30bf\u30b9\u30da\u30fc\u30b8\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3001\u300cSUBSCRIBE TO UPDATES\u300d\u304b\u3089Webhook(\u201c<>\u201d)\u3092\u9078\u3093\u3067\u3001\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306eURL\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u307e\u305f\u3001reflector.io\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3078\u306e\u901a\u77e5\u304c\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u5834\u5408\u306b\u3001\u901a\u77e5\u3092\u9001\u308b\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3082\u6307\u5b9a\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2015\/04\/status-page-subscribe.png\" alt=\"\u30b9\u30c6\u30fc\u30bf\u30b9\u30da\u30fc\u30b8\u3078\u306ereflector.io \u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306e\u767b\u9332\" width=\"350\" height=\"434\" class=\"aligncenter size-full wp-image-2913\" srcset=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2015\/04\/status-page-subscribe.png 350w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2015\/04\/status-page-subscribe-242x300.png 242w\" sizes=\"auto, (max-width: 350px) 100vw, 350px\" \/><\/p>\n<div style=\"clear:both;width:auto;height:40px;\"><!----><\/div>\n<h4><strong>\u5b8c\u6210\uff01<\/strong><\/h4>\n<p style=\"margin-bottom: 20px;\">\u304a\u75b2\u308c\u69d8\u3067\u3059\u3002\u3053\u308c\u3067\u3001\u5168\u3066\u306e\u8a2d\u5b9a\u304c\u7d42\u308f\u308a\u307e\u3057\u305f\u3002\u3042\u3068\u306f\u3001\u30b9\u30c6\u30fc\u30bf\u30b9\u30da\u30fc\u30b8\u304c\u66f4\u65b0\u3055\u308c\u308b\u306e\u3092\u5f85\u3064\u306e\u307f\u3067\u3059\u3002<\/p>\n<p style=\"margin-bottom: 20px;\">\u8a2d\u5b9a\u304c\u6b63\u3057\u3051\u308c\u3070\u3001ChatWork\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u6295\u7a3f\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2015\/04\/20150424.png\" rel=\"noopener\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2015\/04\/20150424.png\" alt=\"ChatWork\u3078\u306e\u6295\u7a3f\" width=\"100%\" class=\"aligncenter size-full wp-image-16197\" srcset=\"https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2015\/04\/20150424.png 1248w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2015\/04\/20150424-300x88.png 300w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2015\/04\/20150424-768x226.png 768w, https:\/\/sendgrid.kke.co.jp\/blog\/wp\/wp-content\/uploads\/2015\/04\/20150424-1024x302.png 1024w\" sizes=\"(max-width: 1248px) 100vw, 1248px\" \/><\/a><\/p>\n<p style=\"margin-bottom: 20px;\">\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u5834\u5408\u306b\u306f\u3001reflector.io\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3001\u5165\u529b\u3068\u51fa\u529b\u306e\u30ed\u30b0\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u306a\u304a\u3001ChatWork\u3078\u306e\u901a\u77e5\u304c\u5931\u6557\u3059\u308b\u3068\u3001Webhook\u304c\u7121\u52b9\u5316\u3055\u308c\u3066\u3057\u307e\u3046\u306e\u3067\u3001\u30c7\u30d0\u30c3\u30b0\u3057\u305f\u306e\u3061\u518d\u5ea6\u6709\u52b9\u5316\u3057\u307e\u3057\u3087\u3046\u3002\u307e\u305f\u3001statuspage.io\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u5225\u9014\u53d6\u5f97\u3057\u3001\u4eca\u56de\u4f5c\u6210\u3057\u305freflector.io\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306b\u63a5\u7d9a\u3059\u308c\u3070\u3001\u597d\u304d\u306a\u3088\u3046\u306bIncident\u3092\u767a\u751f\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3067\u30c7\u30d0\u30c3\u30b0\u306b\u5f79\u7acb\u3064\u3067\u3057\u3087\u3046\u3002<\/p>\n<div style=\"clear:both;width:auto;height:40px;\"><!----><\/div>\n<h4><strong>\u304a\u308f\u308a\u306b<\/strong><\/h4>\n<p style=\"margin-bottom: 20px;\">\u30b9\u30c6\u30fc\u30bf\u30b9\u30da\u30fc\u30b8\u304b\u3089reflector.io\u3092\u4ecb\u3057\u3066ChatWork\u306bSendGrid\u306e\u72b6\u614b\u3092\u901a\u77e5\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n<p style=\"margin-bottom: 20px;\">Webhook\u3001reflector.io\u3001\u5404\u7a2eWEB\u30b5\u30fc\u30d3\u30b9\u306eAPI\u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3068\u3001\u3044\u308d\u3044\u308d\u306a\u901a\u77e5\u30b7\u30b9\u30c6\u30e0\u304c\u7c21\u5358\u306b\u7d44\u3081\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p style=\"margin-bottom: 20px;\">\u307f\u306a\u3055\u3093\u3082\u3044\u308d\u3044\u308d\u3068\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u306d\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>2015\u5e744\u6708\u3001Sendgrid\u306e\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u60c5\u5831\u3084\u969c\u5bb3\u60c5\u5831\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u30da\u30fc\u30b8\u304cstatuspage.io \u4e0a\u306b\u79fb\u884c\u3055\u308c\u307e\u3057\u305f\u3002\u3053\u308c\u306b\u3088\u308a\u3001statuspage.io\u304c\u63d0\u4f9b\u3059\u308b\u69d8\u3005\u306a\u901a\u77e5\u65b9\u6cd5\u3092\u3001SendGr <a class=\"read-more\" href=\"https:\/\/sendgrid.kke.co.jp\/blog\/?p=2891\">&#8230;\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":2,"featured_media":6360,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[11],"tags":[],"class_list":["post-2891","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\/2891","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\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2891"}],"version-history":[{"count":3,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2891\/revisions"}],"predecessor-version":[{"id":16200,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2891\/revisions\/16200"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/media\/6360"}],"wp:attachment":[{"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2891"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2891"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sendgrid.kke.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2891"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}