{"id":6415,"date":"2021-12-17T10:00:00","date_gmt":"2021-12-17T01:00:00","guid":{"rendered":"https:\/\/blog.synnex.co.jp\/?p=6415"},"modified":"2021-12-15T17:19:25","modified_gmt":"2021-12-15T08:19:25","slug":"gas-notification-from-google-calendar-to-google-chat","status":"publish","type":"post","link":"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-notification-from-google-calendar-to-google-chat\/","title":{"rendered":"Google\u30ab\u30ec\u30f3\u30c0\u30fc\u304b\u3089\u4e88\u5b9a\u3092\u53d6\u5f97\u3057\u6bce\u671dGoogleChat\u306b\u6295\u7a3f\u3059\u308bGAS"},"content":{"rendered":"\n<p>GoogleAppsScript\u3092\u7528\u3044\u3066Google\u30ab\u30ec\u30f3\u30c0\u30fc\u304b\u3089\u4e88\u5b9a\u3092\u53d6\u5f97\u3057\u6bce\u671dGoogleChat\u306b\u5f53\u65e5\u306e\u4e88\u5b9a\u3092\u6295\u7a3f\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u6982\u8981\">\u6982\u8981<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/getcalendar-sendchat.html#%E6%A6%82%E8%A6%81\"><\/a><\/h2>\n\n\n\n<p>Google\u30ab\u30ec\u30f3\u30c0\u30fc\u304b\u3089\u5f53\u65e5\u306e\u4e88\u5b9a\u3092\u53d6\u5f97\u3057\u3001Google Chat\u306eWebhook\u3092\u5229\u7528\u3057\u3066\u7279\u5b9a\u306e\u30eb\u30fc\u30e0\u30fb\u30b9\u30ec\u30c3\u30c9\u306b\u6295\u7a3f\u3059\u308bGAS\u3092\u7d39\u4ecb\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4e0b\u8a18\u306e\u6d41\u308c\u3067\u7d39\u4ecb\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Google Chat\u306b\u3064\u3044\u3066<\/li><li>Webhook\u306e\u6e96\u5099<\/li><li>\u6295\u7a3f\u5185\u5bb9\u306e\u4f5c\u6210\u30fb\u6295\u7a3f<\/li><li>\u6295\u7a3f\u30b9\u30ec\u30c3\u30c9\u306e\u6307\u5b9a\uff08\u30c1\u30e3\u30c3\u30c8\u30eb\u30fc\u30e0\u306e\u5834\u5408\uff09<\/li><li>\u30c8\u30ea\u30ac\u30fc\u306e\u8a2d\u5b9a<\/li><\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"1-google-chat\u306b\u3064\u3044\u3066\">1. Google Chat\u306b\u3064\u3044\u3066<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/getcalendar-sendchat.html#1-google-chat%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6\"><\/a><\/h2>\n\n\n\n<p><a href=\"https:\/\/workspace.google.co.jp\/intl\/ja\/products\/chat\/\">Google Chat<\/a>\u306fGoogle\u306e\u63d0\u4f9b\u3057\u3066\u3044\u308b\u30c1\u30e3\u30c3\u30c8\u30b5\u30fc\u30d3\u30b9\u3067\u30011\u5bfe1\u306e\u500b\u5225\u30c1\u30e3\u30c3\u30c8\u3068\u8907\u6570\u4eba\u306e\u30b0\u30eb\u30fc\u30d7\u30c1\u30e3\u30c3\u30c8\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u307e\u305f\u3001Google Workspace\u3067\u306fWebhook\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<br>\u3053\u306eGoogle Chat\u306eWebhook\u3092\u7528\u3044\u308b\u3068\u3001\u3068\u3066\u3082\u7c21\u5358\u306b\u7279\u5b9a\u306e\u30c1\u30e3\u30c3\u30c8\u30eb\u30fc\u30e0\u3078Bot\u306e\u3088\u3046\u306a\u5b9a\u671f\u6295\u7a3f\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4eca\u56de\u306f\u3053\u306eGoogle Chat\u306eWebhook\u3092\u7528\u3044\u3066\u3001\u5f53\u65e5\u306e\u4e88\u5b9a\u3092\u6307\u5b9a\u306e\u30c1\u30e3\u30c3\u30c8\u30eb\u30fc\u30e0\u30fb\u30b9\u30ec\u30c3\u30c9\u306b\u6295\u7a3f\u3059\u308bGAS\u3092\u7d39\u4ecb\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"2webhook\u306e\u6e96\u5099\">2\uff0eWebhook\u306e\u6e96\u5099<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/getcalendar-sendchat.html#2webhook%E3%81%AE%E6%BA%96%E5%82%99\"><\/a><\/h2>\n\n\n\n<p>\u4f5c\u696d\u3092\u884c\u3046Google Workspace\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u3067Webhook\u306e\u8a2d\u5b9a\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br>\u307e\u305a\u306f\u3001\u73fe\u5728Webhook\u306e\u8a2d\u5b9a\u304c\u53ef\u80fd\u304b\u3069\u3046\u304b\u306e\u78ba\u8a8d\u3092\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"webhook\u306e\u78ba\u8a8d\">Webhook\u306e\u78ba\u8a8d<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/getcalendar-sendchat.html#webhook%E3%81%AE%E7%A2%BA%E8%AA%8D\"><\/a><\/h3>\n\n\n\n<p>(1) Google Chat\u306e\u9069\u5f53\u306a\u30c1\u30e3\u30c3\u30c8\u30eb\u30fc\u30e0\u3092\u958b\u304d\u3001\u30eb\u30fc\u30e0\u540d\u306e\u30e1\u30cb\u30e5\u30fc\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"252\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/001_getCalendar-sendChat-1024x252.png\" alt=\"\" class=\"wp-image-6416\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/001_getCalendar-sendChat-1024x252.png 1024w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/001_getCalendar-sendChat-300x74.png 300w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/001_getCalendar-sendChat-768x189.png 768w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/001_getCalendar-sendChat.png 1321w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>(2) \u30e1\u30cb\u30e5\u30fc\u306b\u300cWebhook\u3092\u7ba1\u7406\u300d\u306e\u9805\u76ee\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308c\u3070\u5927\u4e08\u592b\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"261\" height=\"455\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/002_getCalendar-sendChat-1.png\" alt=\"\" class=\"wp-image-6418\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/002_getCalendar-sendChat-1.png 261w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/002_getCalendar-sendChat-1-172x300.png 172w\" sizes=\"auto, (max-width: 261px) 100vw, 261px\" \/><\/figure>\n\n\n\n<p>\u3082\u3057\u3082\u8868\u793a\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u3001<a href=\"https:\/\/support.google.com\/a\/answer\/7651360?hl=ja\">\u516c\u5f0f\u30d8\u30eb\u30d7<\/a>\u306e\u300c\u30e6\u30fc\u30b6\u30fc\u304c Chat \u3067 Webhook \u3092\u8ffd\u52a0\u3057\u3066\u4f7f\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u300d\u3092\u53c2\u8003\u306b\u3001Workspace\u7ba1\u7406\u8005\u304b\u3089\u8a2d\u5b9a\u3092\u3057\u3066\u3082\u3089\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"webhook\u306e\u4f5c\u6210\">Webhook\u306e\u4f5c\u6210<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/getcalendar-sendchat.html#webhook%E3%81%AE%E4%BD%9C%E6%88%90\"><\/a><\/h3>\n\n\n\n<p>Webhook\u304c\u8a2d\u5b9a\u53ef\u80fd\u306a\u72b6\u614b\u306b\u306a\u3063\u305f\u3089\u65e9\u901fWebhook\u3092\u4f5c\u6210\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>(1) \u5148\u307b\u3069\u306e\u300cWebhook\u3092\u7ba1\u7406\u300d\u3092\u9078\u629e\u3001\u4efb\u610f\u306e\u540d\u524d\u3068\u30a2\u30a4\u30b3\u30f3\u3092\u8a2d\u5b9a\u3057\u4fdd\u5b58\u3057\u307e\u3059\u3002\uff08\u30a2\u30a4\u30b3\u30f3\u306f\u7701\u7565\u53ef\uff09<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"691\" height=\"391\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/003_getCalendar-sendChat.png\" alt=\"\" class=\"wp-image-6419\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/003_getCalendar-sendChat.png 691w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/003_getCalendar-sendChat-300x170.png 300w\" sizes=\"auto, (max-width: 691px) 100vw, 691px\" \/><\/figure>\n\n\n\n<p>(2) Webhook\u304c\u4f5c\u6210\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"692\" height=\"272\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/004_getCalendar-sendChat.png\" alt=\"\" class=\"wp-image-6420\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/004_getCalendar-sendChat.png 692w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/004_getCalendar-sendChat-300x118.png 300w\" sizes=\"auto, (max-width: 692px) 100vw, 692px\" \/><\/figure>\n\n\n\n<p>\u203b\u3082\u3057\u65e2\u5b58\u306eWebhook\u304c\u3042\u308b\u30c1\u30e3\u30c3\u30c8\u30eb\u30fc\u30e0\u306e\u5834\u5408\u306f\u3001\u3053\u306e\u300c\u5225\u306eWebhook\u3092\u8ffd\u52a0\u300d\u304b\u3089\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>(3) \u3053\u3053\u3067\u30b3\u30d4\u30fc\u3067\u304d\u308bURL\u3092\u4ee5\u964d\u306eGAS\u3067\u4f7f\u7528\u3059\u308b\u306e\u3067\u3001\u30b3\u30d4\u30fc\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"3-\u6295\u7a3f\u5185\u5bb9\u306e\u4f5c\u6210\u6295\u7a3f\">3. \u6295\u7a3f\u5185\u5bb9\u306e\u4f5c\u6210\u30fb\u6295\u7a3f<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/getcalendar-sendchat.html#3-%E6%8A%95%E7%A8%BF%E5%86%85%E5%AE%B9%E3%81%AE%E4%BD%9C%E6%88%90%E6%8A%95%E7%A8%BF\"><\/a><\/h2>\n\n\n\n<p>GoogleChat\u306eWebhook\u304c\u6e96\u5099\u3067\u304d\u305f\u306e\u3067GAS\u3092\u4f5c\u6210\u3057\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<br><span class=\"has-inline-color has-black-color\">\u30ab\u30ec\u30f3\u30c0\u30fc\u304b\u3089\u4e88\u5b9a\u3092\u53d6\u5f97\u3059\u308b\u90e8\u5206\u306f\u4ee5\u524d\u7d39\u4ecb\u3057\u305f<a href=\"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-notification-from-google-calendar-to-email\">\u4e88\u5b9a\u3092\u53d6\u5f97\u3057\u3066\u30e1\u30fc\u30eb\u9001\u4fe1\u3059\u308b\u8a18\u4e8b<\/a>\u3092\u6d41\u7528\u3057\u307e\u3059\u3002<\/span><\/p>\n\n\n\n<p>\u5909\u66f4\u5185\u5bb9\uff1a<br>\u30fb\u95a2\u6570\u540d\u306e\u5909\u66f4<br>\u30fb\u30e1\u30fc\u30eb\u5b9b\u5148\u3068\u4ef6\u540d\u306e\u524a\u9664<br>\u30fb\u30e1\u30fc\u30eb\u9001\u4fe1\u51e6\u7406\u306e\u524a\u9664<\/p>\n\n\n\n<p>\u305d\u306e\u4ed6\u306b\u95a2\u3057\u3066\u306f\u5143\u306e\u8a18\u4e8b\u306e\u307e\u307e\u3067\u3059\u3001\u7d30\u90e8\u306e\u89e3\u8aac\u3082\u305d\u3061\u3089\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u307e\u305f\u3001\u52d5\u4f5c\u78ba\u8a8d\u7528\u306bGoogle\u30ab\u30ec\u30f3\u30c0\u30fc\u306b\u30c0\u30df\u30fc\u306e\u4e88\u5b9a\u7b49\u3092\u8ffd\u52a0\u3057\u3066\u304a\u304f\u3053\u3068\u3092\u5fd8\u308c\u306a\u3044\u3088\u3046\u306b\u6c17\u3092\u4ed8\u3051\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"903\" height=\"506\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/005_getCalendar-sendChat.png\" alt=\"\" class=\"wp-image-6421\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/005_getCalendar-sendChat.png 903w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/005_getCalendar-sendChat-300x168.png 300w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/005_getCalendar-sendChat-768x430.png 768w\" sizes=\"auto, (max-width: 903px) 100vw, 903px\" \/><\/figure>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-js\" data-lang=\"JavaScript\"><code>function sendEventsChat() {\n\n  const calendarId = &#39;sample.calendar@example.com&#39;;\n  const calendar = CalendarApp.getCalendarById(calendarId);\n\n  const today = new Date();\n  const events = calendar.getEventsForDay(today);\n\n  if (events.length === 0) {\n    console.log(&quot;No events found.&quot;);\n  }\n  else {\n    console.log(&quot;Events:&quot;);\n\n    for (event in events) {\n\n      let title = events[event].getTitle();\n\n      let startHour = events[event].getStartTime().getHours();\n      let startMinute = events[event].getStartTime().getMinutes();\n      let endHour = events[event].getEndTime().getHours();\n      let endMinute = events[event].getEndTime().getMinutes();\n\n      events[event].eventStr = title + &#39;\uff08&#39; + startHour + &#39;\u6642&#39; + startMinute + &#39;\u5206\uff5e&#39; + endHour + &#39;\u6642&#39; + endMinute + &#39;\u5206\uff09&#39;;\n\n      console.log(events[event].eventStr);\n    }\n\n    let todayDayStr = &#39;&#39;;\n\n    switch(today.getDay()){\n      case 0: todayDayStr = &#39;\u65e5&#39;; break;\n      case 1: todayDayStr = &#39;\u6708&#39;; break;\n      case 2: todayDayStr = &#39;\u706b&#39;; break;\n      case 3: todayDayStr = &#39;\u6c34&#39;; break;\n      case 4: todayDayStr = &#39;\u6728&#39;; break;\n      case 5: todayDayStr = &#39;\u91d1&#39;; break;\n      case 6: todayDayStr = &#39;\u571f&#39;; break;\n    }\n\n    let todayStr = String(today.getMonth() + 1) + &#39;\u6708&#39; + today.getDate() + &#39;\u65e5(&#39; + todayDayStr + &#39;)&#39;;\n    \n    \/\/ \u3053\u3053\u304b\u3089\u5909\u66f4\u90e8\n    \/\/ \u6295\u7a3f\u6587\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\n    const bodyTemplate = `{todayStr}\u306e\u4e88\u5b9a\u3092\u304a\u77e5\u3089\u305b\u3057\u307e\u3059\u3002\n\n{events}\n\n\u4ee5\u4e0a\n`;\n    \/\/ \u4e88\u5b9a\u306e\u6587\u5b57\u5217\u51e6\u7406 \u203b\u8a73\u7d30\u306f\u5143\u8a18\u4e8b\u3092\u53c2\u7167\n    let eventsStr = events.map(e =&gt; e.eventStr).join(&#39;\\n&#39;);\n\n    \/\/ \u6295\u7a3f\u6587\u3092\u7f6e\u304d\u63db\u3048\n    let body = bodyTemplate\n        .replace(&#39;{todayStr}&#39;, todayStr)\n        .replace(&#39;{events}&#39;, eventsStr);\n\n    \/\/ \u5909\u66f4\u90e8\u3053\u3053\u307e\u3067\n  }\n}<\/code><\/pre><\/div>\n\n\n\n<p>\u3053\u308c\u306bGoogleChat\u306eWebhook\u3067\u6295\u7a3f\u3059\u308b\u51e6\u7406\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-js\" data-lang=\"JavaScript\"><code>function sendEventsChat() {\n\n  const calendarId = &#39;sample.calendar@example.com&#39;;\n  const calendar = CalendarApp.getCalendarById(calendarId);\n\n  const today = new Date();\n  const events = calendar.getEventsForDay(today);\n\n  if (events.length === 0) {\n    console.log(&quot;No events found.&quot;);\n  }\n  else {\n    console.log(&quot;Events:&quot;);\n\n    for (event in events) {\n\n      let title = events[event].getTitle();\n\n      let startHour = events[event].getStartTime().getHours();\n      let startMinute = events[event].getStartTime().getMinutes();\n      let endHour = events[event].getEndTime().getHours();\n      let endMinute = events[event].getEndTime().getMinutes();\n\n      events[event].eventStr = title + &#39;\uff08&#39; + startHour + &#39;\u6642&#39; + startMinute + &#39;\u5206\uff5e&#39; + endHour + &#39;\u6642&#39; + endMinute + &#39;\u5206\uff09&#39;;\n\n      console.log(events[event].eventStr);\n    }\n\n    let todayDayStr = &#39;&#39;;\n\n    switch(today.getDay()){\n      case 0: todayDayStr = &#39;\u65e5&#39;; break;\n      case 1: todayDayStr = &#39;\u6708&#39;; break;\n      case 2: todayDayStr = &#39;\u706b&#39;; break;\n      case 3: todayDayStr = &#39;\u6c34&#39;; break;\n      case 4: todayDayStr = &#39;\u6728&#39;; break;\n      case 5: todayDayStr = &#39;\u91d1&#39;; break;\n      case 6: todayDayStr = &#39;\u571f&#39;; break;\n    }\n\n    let todayStr = String(today.getMonth() + 1) + &#39;\u6708&#39; + today.getDate() + &#39;\u65e5(&#39; + todayDayStr + &#39;)&#39;;\n    \n    const bodyTemplate = `{todayStr}\u306e\u4e88\u5b9a\u3092\u304a\u77e5\u3089\u305b\u3057\u307e\u3059\u3002\n\n{events}\n\n\u4ee5\u4e0a\n`;\n\n    let eventsStr = events.map(e =&gt; e.eventStr).join(&#39;\\n&#39;);\n\n    let body = bodyTemplate\n        .replace(&#39;{todayStr}&#39;, todayStr)\n        .replace(&#39;{events}&#39;, eventsStr);\n\n    \/\/ \u3053\u3053\u304b\u3089\u8ffd\u52a0\u90e8\n    \/\/ \u6295\u7a3f\u6587\u3092JSON\u30c7\u30fc\u30bf\u306e\u5f62\u5f0f\u306b\u6574\u3048\u308b\n    let message = {\n      &#39;text&#39;: body\n    };\n\n    \/\/ Webhook\u306eURL\uff08\u524d\u9805\u306e(3)\u3067\u30b3\u30d4\u30fc\u3057\u305f\u3082\u306e\u306b\u7f6e\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\uff09\n    const webhookUrl = &#39;https:\/\/chat.googleapis.com\/v1\/spaces\/XXXXXXXXXXX\/messages?key=(Webhook\u7528Key)token=(Webhook\u7528Token)&#39;;\n\n    \/\/ \u30aa\u30d7\u30b7\u30e7\u30f3\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u8a2d\u5b9a\n    let options = {\n    &#39;payload&#39; : JSON.stringify(message),\n    &#39;myamethod&#39; : &#39;POST&#39;,\n    &#39;contentType&#39; : &#39;application\/json&#39;\n    };\n\n    \/\/ Webhook\u306eURL\u5bfe\u3057\u3066HTTP POST\u3092\u5b9f\u884c\n    UrlFetchApp.fetch(webhookUrl, options);\n\n    \/\/ \u8ffd\u52a0\u90e8\u3053\u3053\u307e\u3067\n  }\n}<\/code><\/pre><\/div>\n\n\n\n<p>HTTP POST\u3068\u306f\uff1a<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>HTTP POST\u306fHTTP GET\u3068\u5171\u306b\u5e83\u304f\u7528\u3044\u3089\u308c\u3066\u3044\u308bURL\u3092\u7528\u3044\u305f\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u3072\u3068\u3064\u3067\u3059\u3002<br>HTTP POST\u3068HTTP GET\u306e\u9055\u3044\u306f\u30ea\u30af\u30a8\u30b9\u30c8\u6642\u306b\u30c7\u30fc\u30bf\u3092\u4ed8\u4e0e\u3067\u304d\u308b\u304b\u5426\u304b\u3068\u3044\u3046\u90e8\u5206\u3067\u3059\u3002<br>\u4eca\u56de\u306eGoogle Chat\u306eWebhook\u306f\u3001\u6295\u7a3f\u6587\u306e\u30c7\u30fc\u30bf\u3092\u6301\u3063\u305fHTTP POST\u3092\u7528\u3044\u305f\u6295\u7a3f\u30ea\u30af\u30a8\u30b9\u30c8\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<br>GAS\u3067\u306f<code>UrlFetchApp.fetch(url, options)<\/code>\u3092\u7528\u3044\u3066\u3053\u306eHTTP POST\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p><\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u5b9f\u884c\u7d50\u679c\u6295\u7a3f\u5185\u5bb9\u306e\u4f5c\u6210\u6295\u7a3f\">\u5b9f\u884c\u7d50\u679c\uff08\u6295\u7a3f\u5185\u5bb9\u306e\u4f5c\u6210\u30fb\u6295\u7a3f\uff09<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/getcalendar-sendchat.html#%E5%AE%9F%E8%A1%8C%E7%B5%90%E6%9E%9C%E6%8A%95%E7%A8%BF%E5%86%85%E5%AE%B9%E3%81%AE%E4%BD%9C%E6%88%90%E6%8A%95%E7%A8%BF\"><\/a><\/h3>\n\n\n\n<p>\u5b9f\u884c\u7d50\u679c\u3068\u3057\u3066\u3001Webhook\u3092\u4f5c\u6210\u3057\u305f\u30c1\u30e3\u30c3\u30c8\u30eb\u30fc\u30e0\u306b\u5f53\u65e5\u306e\u4e88\u5b9a\u304c\u6295\u7a3f\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"759\" height=\"278\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/006_getCalendar-sendChat.png\" alt=\"\" class=\"wp-image-6422\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/006_getCalendar-sendChat.png 759w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/006_getCalendar-sendChat-300x110.png 300w\" sizes=\"auto, (max-width: 759px) 100vw, 759px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"4-\u6295\u7a3f\u30b9\u30ec\u30c3\u30c9\u306e\u6307\u5b9a\u30c1\u30e3\u30c3\u30c8\u30eb\u30fc\u30e0\u306e\u5834\u5408\">4. \u6295\u7a3f\u30b9\u30ec\u30c3\u30c9\u306e\u6307\u5b9a\uff08\u30c1\u30e3\u30c3\u30c8\u30eb\u30fc\u30e0\u306e\u5834\u5408\uff09<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/getcalendar-sendchat.html#4-%E6%8A%95%E7%A8%BF%E3%82%B9%E3%83%AC%E3%83%83%E3%83%89%E3%81%AE%E6%8C%87%E5%AE%9A%E3%83%81%E3%83%A3%E3%83%83%E3%83%88%E3%83%AB%E3%83%BC%E3%83%A0%E3%81%AE%E5%A0%B4%E5%90%88\"><\/a><\/h2>\n\n\n\n<p>1\u5bfe1\u306e\u300c\u30c1\u30e3\u30c3\u30c8\u300d\u306e\u5834\u5408\u3001\u5168\u3066\u306e\u6295\u7a3f\u306f\uff11\u3064\u306e\u30b9\u30ec\u30c3\u30c9\u306b\u6295\u7a3f\u3055\u308c\u308b\u306e\u3067\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002<br>\u3067\u3059\u304c\u3001\u8907\u6570\u4eba\u304c\u53c2\u52a0\u3059\u308b\u300c\u30c1\u30e3\u30c3\u30c8\u30eb\u30fc\u30e0\u300d\u306e\u5834\u5408\u3001\u6295\u7a3f\u306f\u30b9\u30ec\u30c3\u30c9\u6bce\u306b\u307e\u3068\u3081\u3089\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"647\" height=\"417\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/007_getCalendar-sendChat.png\" alt=\"\" class=\"wp-image-6423\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/007_getCalendar-sendChat.png 647w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/007_getCalendar-sendChat-300x193.png 300w\" sizes=\"auto, (max-width: 647px) 100vw, 647px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"632\" height=\"497\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/008_getCalendar-sendChat.png\" alt=\"\" class=\"wp-image-6425\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/008_getCalendar-sendChat.png 632w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/008_getCalendar-sendChat-300x236.png 300w\" sizes=\"auto, (max-width: 632px) 100vw, 632px\" \/><\/figure>\n\n\n\n<p>\u3053\u3053\u307e\u3067\u306b\u4f5c\u3063\u305fGAS\u3067\u306f\u6295\u7a3f\u3059\u308b\u30c1\u30e3\u30c3\u30c8\u30eb\u30fc\u30e0\u306e\u6307\u5b9a\u306fURL\u3067\u3055\u308c\u3066\u3044\u308b\u3082\u306e\u306e\u3001\u30b9\u30ec\u30c3\u30c9\u306e\u6307\u5b9a\u306f\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002<br>\u305d\u306e\u305f\u3081\u30c1\u30e3\u30c3\u30c8\u30eb\u30fc\u30e0\u3067\u52d5\u4f5c\u3055\u305b\u308b\u3068\u5b9f\u884c\u3059\u308b\u305f\u3073\u306b\u753b\u50cf\u306e\u3088\u3046\u306b\u65b0\u3057\u3044\u30b9\u30ec\u30c3\u30c9\u304c\u4f5c\u6210\u3055\u308c\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"760\" height=\"560\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/009_getCalendar-sendChat.png\" alt=\"\" class=\"wp-image-6426\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/009_getCalendar-sendChat.png 760w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/009_getCalendar-sendChat-300x221.png 300w\" sizes=\"auto, (max-width: 760px) 100vw, 760px\" \/><\/figure>\n\n\n\n<p>\u6295\u7a3f\u3059\u308b\u30b9\u30ec\u30c3\u30c9\u3092\u6307\u5b9a\u3057\u3066\u6295\u7a3f\u3059\u308b\u3088\u3046\u3001\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u8ffd\u52a0\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u307e\u305a\u306f\u30b9\u30ec\u30c3\u30c9\u4f5c\u6210\u7528\u306e\u6295\u7a3f\u3092\u3057\u3001\u30b9\u30ec\u30c3\u30c9\u306e\u60c5\u5831\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<br>\u65b0\u3057\u3044\u95a2\u6570<code>createNewsThread()<\/code>\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-js\" data-lang=\"JavaScript\"><code>function createNewsThread() {\n\n  \/\/ Webhook\u306eURL\uff08\u7f6e\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\uff09\n  const webhookUrl = &#39;https:\/\/chat.googleapis.com\/v1\/spaces\/XXXXXXXXXXX\/messages?key=(Webhook\u7528Key)token=(Webhook\u7528Token)&#39;;\n\n  \/\/ \u30b9\u30ec\u30c3\u30c9\u306e\u6700\u521d\u306e\u6295\u7a3f\u6587\n  let body = {\n  &#39;text&#39; : &#39;\u3010\u672c\u65e5\u306e\u4e88\u5b9a\u30ea\u30de\u30a4\u30f3\u30c9\u3011\u30b9\u30ec\u30c3\u30c9&#39;\n  };\n  \n  let options = {\n  &#39;payload&#39; : JSON.stringify(body),\n  &#39;myamethod&#39; : &#39;POST&#39;,\n  &#39;contentType&#39; : &#39;application\/json&#39;\n  };\n\n  \/\/ Webhook\u306eURL\u5bfe\u3057\u3066HTTP POST\u3092\u5b9f\u884c\n  let response = UrlFetchApp.fetch(webhookUrl, options);\n  \/\/ \u5b9f\u884c\u30ed\u30b0\u306b\u6295\u7a3f\u5148\u30b9\u30ec\u30c3\u30c9\u60c5\u5831\u3092\u542b\u3080\u30c7\u30fc\u30bf\u3092\u8868\u793a\n  Logger.log(response);\n}<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u5b9f\u884c\u7d50\u679c\u6295\u7a3f\u30b9\u30ec\u30c3\u30c9\u306e\u6307\u5b9a\">\u5b9f\u884c\u7d50\u679c\uff08\u6295\u7a3f\u30b9\u30ec\u30c3\u30c9\u306e\u6307\u5b9a\uff09<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/getcalendar-sendchat.html#%E5%AE%9F%E8%A1%8C%E7%B5%90%E6%9E%9C%E6%8A%95%E7%A8%BF%E3%82%B9%E3%83%AC%E3%83%83%E3%83%89%E3%81%AE%E6%8C%87%E5%AE%9A\"><\/a><\/h3>\n\n\n\n<p>Google Chat\u306b\u4e88\u5b9a\u30ea\u30de\u30a4\u30f3\u30c9\u7528\u306e\u30b9\u30ec\u30c3\u30c9\u304c\u4f5c\u6210\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"757\" height=\"180\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/010_getCalendar-sendChat.png\" alt=\"\" class=\"wp-image-6427\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/010_getCalendar-sendChat.png 757w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/010_getCalendar-sendChat-300x71.png 300w\" sizes=\"auto, (max-width: 757px) 100vw, 757px\" \/><\/figure>\n\n\n\n<p>\u307e\u305f\u5b9f\u884c\u7d50\u679c\u3068\u3057\u3066\u3001GAS\u306e\u5b9f\u884c\u30ed\u30b0\u306b\u6295\u7a3f\u306e\u30c7\u30fc\u30bf\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<br>\u3053\u306e\u3046\u3061\u306e<code>thread<\/code>\u306e\u60c5\u5831\u3092\u7528\u3044\u3066\u3001\u6295\u7a3f\u5148\u306e\u30b9\u30ec\u30c3\u30c9\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"689\" height=\"626\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/011_getCalendar-sendChat.png\" alt=\"\" class=\"wp-image-6428\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/011_getCalendar-sendChat.png 689w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/011_getCalendar-sendChat-300x273.png 300w\" sizes=\"auto, (max-width: 689px) 100vw, 689px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u30b9\u30ec\u30c3\u30c9\u60c5\u5831\u306e\u53cd\u6620\">\u30b9\u30ec\u30c3\u30c9\u60c5\u5831\u306e\u53cd\u6620<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/getcalendar-sendchat.html#%E3%82%B9%E3%83%AC%E3%83%83%E3%83%89%E6%83%85%E5%A0%B1%E3%81%AE%E5%8F%8D%E6%98%A0\"><\/a><\/h3>\n\n\n\n<p>\u5148\u307b\u3069\u5b9f\u884c\u30ed\u30b0\u306b\u8868\u793a\u3055\u308c\u305f\u30b9\u30ec\u30c3\u30c9\u60c5\u5831\u3092\u542b\u3081\u3066\u6295\u7a3f\u3059\u308b\u3053\u3068\u3067\u3001\u540c\u3058\u30b9\u30ec\u30c3\u30c9\u3092\u6307\u5b9a\u3057\u3066\u6295\u7a3f\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-js\" data-lang=\"JavaScript\"><code>function sendEventsChat() {\n\n  const calendarId = &#39;sample.calendar@example.com&#39;;\n  const calendar = CalendarApp.getCalendarById(calendarId);\n\n  const today = new Date();\n  const events = calendar.getEventsForDay(today);\n\n  if (events.length === 0) {\n    console.log(&quot;No events found.&quot;);\n  }\n  else {\n    console.log(&quot;Events:&quot;);\n\n    for (event in events) {\n\n      let title = events[event].getTitle();\n\n      let startHour = events[event].getStartTime().getHours();\n      let startMinute = events[event].getStartTime().getMinutes();\n      let endHour = events[event].getEndTime().getHours();\n      let endMinute = events[event].getEndTime().getMinutes();\n\n      events[event].eventStr = title + &#39;\uff08&#39; + startHour + &#39;\u6642&#39; + startMinute + &#39;\u5206\uff5e&#39; + endHour + &#39;\u6642&#39; + endMinute + &#39;\u5206\uff09&#39;;\n\n      console.log(events[event].eventStr);\n    }\n\n    let todayDayStr = &#39;&#39;;\n\n    switch(today.getDay()){\n      case 0: todayDayStr = &#39;\u65e5&#39;; break;\n      case 1: todayDayStr = &#39;\u6708&#39;; break;\n      case 2: todayDayStr = &#39;\u706b&#39;; break;\n      case 3: todayDayStr = &#39;\u6c34&#39;; break;\n      case 4: todayDayStr = &#39;\u6728&#39;; break;\n      case 5: todayDayStr = &#39;\u91d1&#39;; break;\n      case 6: todayDayStr = &#39;\u571f&#39;; break;\n    }\n\n    let todayStr = String(today.getMonth() + 1) + &#39;\u6708&#39; + today.getDate() + &#39;\u65e5(&#39; + todayDayStr + &#39;)&#39;;\n    \n    const bodyTemplate = `{todayStr}\u306e\u4e88\u5b9a\u3092\u304a\u77e5\u3089\u305b\u3057\u307e\u3059\u3002\n\n{events}\n\n\u4ee5\u4e0a\n`;\n\n    let eventsStr = events.map(e =&gt; e.eventStr).join(&#39;\\n&#39;);\n\n    let body = bodyTemplate\n        .replace(&#39;{todayStr}&#39;, todayStr)\n        .replace(&#39;{events}&#39;, eventsStr);\n\n    \/\/ \u3053\u3053\u304b\u3089\u8ffd\u52a0\u90e8\n    \/\/ \u30b9\u30ec\u30c3\u30c9\u60c5\u5831\u8ffd\u52a0\uff08\u53d6\u5f97\u3057\u305fthread\u60c5\u5831\u306b\u7f6e\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\uff09\n    let message = {\n      &#39;text&#39;: body,\n      &#39;thread&#39;: {\n        &quot;name&quot;: &quot;spaces\/AAAAAAAAAAA\/threads\/AAAAAAAAAAA&quot;\n      }\n    };\n    \/\/ \u8ffd\u52a0\u90e8\u3053\u3053\u307e\u3067\n\n    const webhookUrl = &#39;https:\/\/chat.googleapis.com\/v1\/spaces\/XXXXXXXXXXX\/messages?key=(Webhook\u7528Key)token=(Webhook\u7528Token)&#39;;\n\n    let options = {\n    &#39;payload&#39; : JSON.stringify(message),\n    &#39;myamethod&#39; : &#39;POST&#39;,\n    &#39;contentType&#39; : &#39;application\/json&#39;\n    };\n\n    UrlFetchApp.fetch(webhookUrl, options);\n  }\n}<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u5b9f\u884c\u7d50\u679c\u30b9\u30ec\u30c3\u30c9\u6307\u5b9a\">\u5b9f\u884c\u7d50\u679c\uff08\u30b9\u30ec\u30c3\u30c9\u6307\u5b9a\uff09<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/getcalendar-sendchat.html#%E5%AE%9F%E8%A1%8C%E7%B5%90%E6%9E%9C%E3%82%B9%E3%83%AC%E3%83%83%E3%83%89%E6%8C%87%E5%AE%9A\"><\/a><\/h3>\n\n\n\n<p>\u5148\u307b\u3069\u306e\u30b9\u30ec\u30c3\u30c9\u306b\u4e88\u5b9a\u306e\u6295\u7a3f\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"755\" height=\"339\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/012_getCalendar-sendChat.png\" alt=\"\" class=\"wp-image-6429\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/012_getCalendar-sendChat.png 755w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/012_getCalendar-sendChat-300x135.png 300w\" sizes=\"auto, (max-width: 755px) 100vw, 755px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"5-\u30c8\u30ea\u30ac\u30fc\u306e\u8a2d\u5b9a\">5. \u30c8\u30ea\u30ac\u30fc\u306e\u8a2d\u5b9a<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/getcalendar-sendchat.html#5-%E3%83%88%E3%83%AA%E3%82%AC%E3%83%BC%E3%81%AE%E8%A8%AD%E5%AE%9A\"><\/a><\/h2>\n\n\n\n<p>\u6700\u5f8c\u306b\u3053\u306e\u30b3\u30fc\u30c9\u3092\u6bce\u671d\u5b9f\u884c\u3059\u308b\u30c8\u30ea\u30ac\u30fc\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u59cb\u696d\u6642\u523b\u524d\u306b\u5f53\u65e5\u306e\u4e88\u5b9a\u3092\u30ea\u30de\u30a4\u30f3\u30c9\u3059\u308b\u3053\u3068\u3092\u60f3\u5b9a\u3057\u3001\u5348\u524d8\u6642\uff5e9\u6642\u306e\u9593\u306b\u5b9f\u884c\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<br>\u30c8\u30ea\u30ac\u30fc\u306e\u8a2d\u5b9a\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306f<a href=\"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-trigger\/\">\u30c8\u30ea\u30ac\u30fc\u306e\u7d39\u4ecb\u8a18\u4e8b<\/a>\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u8a2d\u5b9a\u3057\u305f\u30c8\u30ea\u30ac\u30fc\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"725\" height=\"839\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/013_getCalendar-sendChat.png\" alt=\"\" class=\"wp-image-6430\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/013_getCalendar-sendChat.png 725w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/013_getCalendar-sendChat-259x300.png 259w\" sizes=\"auto, (max-width: 725px) 100vw, 725px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u307e\u3068\u3081\">\u307e\u3068\u3081<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/getcalendar-sendchat.html#%E3%81%BE%E3%81%A8%E3%82%81\"><\/a><\/h2>\n\n\n\n<p>\u4eca\u56de\u306fGoogle\u30ab\u30ec\u30f3\u30c0\u30fc\u304b\u3089\u5f53\u65e5\u306e\u4e88\u5b9a\u3092\u53d6\u5f97\u3057\u3001GoogleChat\u306eWebhook\u3092\u5229\u7528\u3057\u3066\u6295\u7a3f\u3059\u308bGAS\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>GoogleChat\u306eWebhook\u306fGoogleWorkspace\u3067\u63d0\u4f9b\u3055\u308c\u3066\u3044\u308b\u4fbf\u5229\u306a\u6a5f\u80fd\u306e\u3072\u3068\u3064\u3067\u3059\u3002<br>\u4e88\u5b9a\u306e\u30ea\u30de\u30a4\u30f3\u30c9\u4ee5\u5916\u306b\u3082\u3001\u30d5\u30a9\u30fc\u30e0\u306b\u56de\u7b54\u304c\u3042\u3063\u305f\u3089Chat\u306b\u901a\u77e5\u3057\u305f\u308a\u3001\u672a\u8aad\u30e1\u30fc\u30eb\u304c\u4e00\u5b9a\u6570\u6e9c\u307e\u3063\u305f\u3089\u30a2\u30e9\u30fc\u30c8\u3092\u6295\u7a3f\u3057\u305f\u308a\u3068\u4f7f\u3044\u3069\u3053\u308d\u304c\u8272\u3005\u3068\u3042\u308a\u305d\u3046\u3067\u3059\u3002<br>\u305c\u3072\u6d3b\u7528\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<div class=\"p-3 mb-4 bg-light rounded-3\">    <div class=\"container-fluid\">\n      <h4 class=\"display-6 fw-bold\"><span id=\"Google_workspace\">Google Cloud\u306e\u5c0e\u5165\u306f\u5f53\u793e\u306b\u3054\u76f8\u8ac7\u304f\u3060\u3055\u3044<\/span><\/h4>\n      <p class=\"col-md-12\">IT\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30bf\u30fc\u3067\u3042\u308bTD SYNNEX\u306fGoogle Cloud\u2122 Partner Award \u3092\u53d7\u8cde\u3059\u308b\u306a\u3069\u3001\u9577\u5e74\u306b\u308f\u305f\u308aGoogle\u2122\u306e\u30b0\u30ed\u30fc\u30d0\u30eb\u8a8d\u5b9a\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30bf\u30fc\u3068\u3057\u3066\u3001\u7dcf\u5408\u7684\u306a Google\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u3092\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002\u304a\u5ba2\u69d8\u306b\u3068\u3063\u3066\u6700\u9069\u306a\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u306e\u63d0\u6848\u3084\u5c0e\u5165\u3001\u6d3b\u7528\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<\/p>\n      <a href=\"https:\/\/www.synnex.co.jp\/vender\/google\/inquiry\/\"><button class=\"btn btn-primary btn-lg\" type=\"button\">\u304a\u554f\u3044\u5408\u308f\u305b<\/button><\/a>\n    <\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>GoogleAppsScript\u3092\u7528\u3044\u3066Google\u30ab\u30ec\u30f3\u30c0\u30fc\u304b\u3089\u4e88\u5b9a\u3092\u53d6\u5f97\u3057\u6bce\u671dGoogleChat\u306b\u5f53\u65e5\u306e\u4e88\u5b9a\u3092\u6295\u7a3f\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002 \u6982\u8981 Google\u30ab\u30ec\u30f3\u30c0\u30fc\u304b\u3089\u5f53\u65e5\u306e\u4e88\u5b9a\u3092\u53d6\u5f97\u3057\u3001Google Chat\u306e&#8230;<\/p>\n","protected":false},"author":3,"featured_media":6515,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"content-type":"","footnotes":""},"categories":[169],"tags":[161],"class_list":["post-6415","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-google","tag-gas"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Google\u30ab\u30ec\u30f3\u30c0\u30fc\u304b\u3089\u4e88\u5b9a\u3092\u53d6\u5f97\u3057\u6bce\u671dGoogleChat\u306b\u6295\u7a3f\u3059\u308bGAS &#8211; TD SYNNEX BLOG<\/title>\n<meta name=\"description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001GoogleAppsScript\uff08GAS\uff09\u3092\u7528\u3044\u3066Google\u30ab\u30ec\u30f3\u30c0\u30fc\u304b\u3089\u4e88\u5b9a\u3092\u53d6\u5f97\u3057\u6bce\u671dGoogleChat\u306b\u5f53\u65e5\u306e\u4e88\u5b9a\u3092\u6295\u7a3f\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\u5b9f\u969b\u306e\u30b3\u30fc\u30c9\u3092\u8a18\u8f09\u3057\u306a\u304c\u3089\u3001\u2460Google Chat\u306b\u3064\u3044\u3066\u3001\u2461Webhook\u306e\u6e96\u5099\u3001\u2462\u6295\u7a3f\u5185\u5bb9\u306e\u4f5c\u6210\u30fb\u6295\u7a3f\u3001\u2463\u6295\u7a3f\u30b9\u30ec\u30c3\u30c9\u306e\u6307\u5b9a\uff08\u30c1\u30e3\u30c3\u30c8\u30eb\u30fc\u30e0\u306e\u5834\u5408\uff09\u3001\u2464\u30c8\u30ea\u30ac\u30fc\u306e\u8a2d\u5b9a\u3001\u3068\u3044\u3046\u6d41\u308c\u3067\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-notification-from-google-calendar-to-google-chat\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Google\u30ab\u30ec\u30f3\u30c0\u30fc\u304b\u3089\u4e88\u5b9a\u3092\u53d6\u5f97\u3057\u6bce\u671dGoogleChat\u306b\u6295\u7a3f\u3059\u308bGAS &#8211; TD SYNNEX BLOG\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001GoogleAppsScript\uff08GAS\uff09\u3092\u7528\u3044\u3066Google\u30ab\u30ec\u30f3\u30c0\u30fc\u304b\u3089\u4e88\u5b9a\u3092\u53d6\u5f97\u3057\u6bce\u671dGoogleChat\u306b\u5f53\u65e5\u306e\u4e88\u5b9a\u3092\u6295\u7a3f\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\u5b9f\u969b\u306e\u30b3\u30fc\u30c9\u3092\u8a18\u8f09\u3057\u306a\u304c\u3089\u3001\u2460Google Chat\u306b\u3064\u3044\u3066\u3001\u2461Webhook\u306e\u6e96\u5099\u3001\u2462\u6295\u7a3f\u5185\u5bb9\u306e\u4f5c\u6210\u30fb\u6295\u7a3f\u3001\u2463\u6295\u7a3f\u30b9\u30ec\u30c3\u30c9\u306e\u6307\u5b9a\uff08\u30c1\u30e3\u30c3\u30c8\u30eb\u30fc\u30e0\u306e\u5834\u5408\uff09\u3001\u2464\u30c8\u30ea\u30ac\u30fc\u306e\u8a2d\u5b9a\u3001\u3068\u3044\u3046\u6d41\u308c\u3067\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-notification-from-google-calendar-to-google-chat\/\" \/>\n<meta property=\"og:site_name\" content=\"TD SYNNEX BLOG\" \/>\n<meta property=\"article:published_time\" content=\"2021-12-17T01:00:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/info-g0c7095d99_1920.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"855\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"TD SYNNEX K.K.\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"TD SYNNEX K.K.\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"6\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-notification-from-google-calendar-to-google-chat\/\",\"url\":\"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-notification-from-google-calendar-to-google-chat\/\",\"name\":\"Google\u30ab\u30ec\u30f3\u30c0\u30fc\u304b\u3089\u4e88\u5b9a\u3092\u53d6\u5f97\u3057\u6bce\u671dGoogleChat\u306b\u6295\u7a3f\u3059\u308bGAS &#8211; TD SYNNEX BLOG\",\"isPartOf\":{\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-notification-from-google-calendar-to-google-chat\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-notification-from-google-calendar-to-google-chat\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/info-g0c7095d99_1920.jpg\",\"datePublished\":\"2021-12-17T01:00:00+00:00\",\"author\":{\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/#\/schema\/person\/27a28c43d8bfc7e8087223b26535d233\"},\"description\":\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001GoogleAppsScript\uff08GAS\uff09\u3092\u7528\u3044\u3066Google\u30ab\u30ec\u30f3\u30c0\u30fc\u304b\u3089\u4e88\u5b9a\u3092\u53d6\u5f97\u3057\u6bce\u671dGoogleChat\u306b\u5f53\u65e5\u306e\u4e88\u5b9a\u3092\u6295\u7a3f\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\u5b9f\u969b\u306e\u30b3\u30fc\u30c9\u3092\u8a18\u8f09\u3057\u306a\u304c\u3089\u3001\u2460Google Chat\u306b\u3064\u3044\u3066\u3001\u2461Webhook\u306e\u6e96\u5099\u3001\u2462\u6295\u7a3f\u5185\u5bb9\u306e\u4f5c\u6210\u30fb\u6295\u7a3f\u3001\u2463\u6295\u7a3f\u30b9\u30ec\u30c3\u30c9\u306e\u6307\u5b9a\uff08\u30c1\u30e3\u30c3\u30c8\u30eb\u30fc\u30e0\u306e\u5834\u5408\uff09\u3001\u2464\u30c8\u30ea\u30ac\u30fc\u306e\u8a2d\u5b9a\u3001\u3068\u3044\u3046\u6d41\u308c\u3067\u8aac\u660e\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-notification-from-google-calendar-to-google-chat\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-notification-from-google-calendar-to-google-chat\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-notification-from-google-calendar-to-google-chat\/#primaryimage\",\"url\":\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/info-g0c7095d99_1920.jpg\",\"contentUrl\":\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/info-g0c7095d99_1920.jpg\",\"width\":1920,\"height\":855},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-notification-from-google-calendar-to-google-chat\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u30db\u30fc\u30e0\",\"item\":\"https:\/\/jp.tdsynnex.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Google\",\"item\":\"https:\/\/jp.tdsynnex.com\/blog\/category\/google\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Google\u30ab\u30ec\u30f3\u30c0\u30fc\u304b\u3089\u4e88\u5b9a\u3092\u53d6\u5f97\u3057\u6bce\u671dGoogleChat\u306b\u6295\u7a3f\u3059\u308bGAS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/#website\",\"url\":\"https:\/\/jp.tdsynnex.com\/blog\/\",\"name\":\"TD SYNNEX BLOG\",\"description\":\"IT\u5c02\u9580\u5546\u793e\u304c\u5c4a\u3051\u308b\u60c5\u5831\u30e1\u30c7\u30a3\u30a2\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/jp.tdsynnex.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/#\/schema\/person\/27a28c43d8bfc7e8087223b26535d233\",\"name\":\"TD SYNNEX K.K.\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8c78c73b44737d0e9ea65e8b304502f5d063717571c4be4b0904e52c0d3c3229?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8c78c73b44737d0e9ea65e8b304502f5d063717571c4be4b0904e52c0d3c3229?s=96&d=mm&r=g\",\"caption\":\"TD SYNNEX K.K.\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Google\u30ab\u30ec\u30f3\u30c0\u30fc\u304b\u3089\u4e88\u5b9a\u3092\u53d6\u5f97\u3057\u6bce\u671dGoogleChat\u306b\u6295\u7a3f\u3059\u308bGAS &#8211; TD SYNNEX BLOG","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001GoogleAppsScript\uff08GAS\uff09\u3092\u7528\u3044\u3066Google\u30ab\u30ec\u30f3\u30c0\u30fc\u304b\u3089\u4e88\u5b9a\u3092\u53d6\u5f97\u3057\u6bce\u671dGoogleChat\u306b\u5f53\u65e5\u306e\u4e88\u5b9a\u3092\u6295\u7a3f\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\u5b9f\u969b\u306e\u30b3\u30fc\u30c9\u3092\u8a18\u8f09\u3057\u306a\u304c\u3089\u3001\u2460Google Chat\u306b\u3064\u3044\u3066\u3001\u2461Webhook\u306e\u6e96\u5099\u3001\u2462\u6295\u7a3f\u5185\u5bb9\u306e\u4f5c\u6210\u30fb\u6295\u7a3f\u3001\u2463\u6295\u7a3f\u30b9\u30ec\u30c3\u30c9\u306e\u6307\u5b9a\uff08\u30c1\u30e3\u30c3\u30c8\u30eb\u30fc\u30e0\u306e\u5834\u5408\uff09\u3001\u2464\u30c8\u30ea\u30ac\u30fc\u306e\u8a2d\u5b9a\u3001\u3068\u3044\u3046\u6d41\u308c\u3067\u8aac\u660e\u3057\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-notification-from-google-calendar-to-google-chat\/","og_locale":"ja_JP","og_type":"article","og_title":"Google\u30ab\u30ec\u30f3\u30c0\u30fc\u304b\u3089\u4e88\u5b9a\u3092\u53d6\u5f97\u3057\u6bce\u671dGoogleChat\u306b\u6295\u7a3f\u3059\u308bGAS &#8211; TD SYNNEX BLOG","og_description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001GoogleAppsScript\uff08GAS\uff09\u3092\u7528\u3044\u3066Google\u30ab\u30ec\u30f3\u30c0\u30fc\u304b\u3089\u4e88\u5b9a\u3092\u53d6\u5f97\u3057\u6bce\u671dGoogleChat\u306b\u5f53\u65e5\u306e\u4e88\u5b9a\u3092\u6295\u7a3f\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\u5b9f\u969b\u306e\u30b3\u30fc\u30c9\u3092\u8a18\u8f09\u3057\u306a\u304c\u3089\u3001\u2460Google Chat\u306b\u3064\u3044\u3066\u3001\u2461Webhook\u306e\u6e96\u5099\u3001\u2462\u6295\u7a3f\u5185\u5bb9\u306e\u4f5c\u6210\u30fb\u6295\u7a3f\u3001\u2463\u6295\u7a3f\u30b9\u30ec\u30c3\u30c9\u306e\u6307\u5b9a\uff08\u30c1\u30e3\u30c3\u30c8\u30eb\u30fc\u30e0\u306e\u5834\u5408\uff09\u3001\u2464\u30c8\u30ea\u30ac\u30fc\u306e\u8a2d\u5b9a\u3001\u3068\u3044\u3046\u6d41\u308c\u3067\u8aac\u660e\u3057\u307e\u3059\u3002","og_url":"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-notification-from-google-calendar-to-google-chat\/","og_site_name":"TD SYNNEX BLOG","article_published_time":"2021-12-17T01:00:00+00:00","og_image":[{"width":1920,"height":855,"url":"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/info-g0c7095d99_1920.jpg","type":"image\/jpeg"}],"author":"TD SYNNEX K.K.","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"TD SYNNEX K.K.","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"6\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-notification-from-google-calendar-to-google-chat\/","url":"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-notification-from-google-calendar-to-google-chat\/","name":"Google\u30ab\u30ec\u30f3\u30c0\u30fc\u304b\u3089\u4e88\u5b9a\u3092\u53d6\u5f97\u3057\u6bce\u671dGoogleChat\u306b\u6295\u7a3f\u3059\u308bGAS &#8211; TD SYNNEX BLOG","isPartOf":{"@id":"https:\/\/jp.tdsynnex.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-notification-from-google-calendar-to-google-chat\/#primaryimage"},"image":{"@id":"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-notification-from-google-calendar-to-google-chat\/#primaryimage"},"thumbnailUrl":"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/info-g0c7095d99_1920.jpg","datePublished":"2021-12-17T01:00:00+00:00","author":{"@id":"https:\/\/jp.tdsynnex.com\/blog\/#\/schema\/person\/27a28c43d8bfc7e8087223b26535d233"},"description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001GoogleAppsScript\uff08GAS\uff09\u3092\u7528\u3044\u3066Google\u30ab\u30ec\u30f3\u30c0\u30fc\u304b\u3089\u4e88\u5b9a\u3092\u53d6\u5f97\u3057\u6bce\u671dGoogleChat\u306b\u5f53\u65e5\u306e\u4e88\u5b9a\u3092\u6295\u7a3f\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\u5b9f\u969b\u306e\u30b3\u30fc\u30c9\u3092\u8a18\u8f09\u3057\u306a\u304c\u3089\u3001\u2460Google Chat\u306b\u3064\u3044\u3066\u3001\u2461Webhook\u306e\u6e96\u5099\u3001\u2462\u6295\u7a3f\u5185\u5bb9\u306e\u4f5c\u6210\u30fb\u6295\u7a3f\u3001\u2463\u6295\u7a3f\u30b9\u30ec\u30c3\u30c9\u306e\u6307\u5b9a\uff08\u30c1\u30e3\u30c3\u30c8\u30eb\u30fc\u30e0\u306e\u5834\u5408\uff09\u3001\u2464\u30c8\u30ea\u30ac\u30fc\u306e\u8a2d\u5b9a\u3001\u3068\u3044\u3046\u6d41\u308c\u3067\u8aac\u660e\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-notification-from-google-calendar-to-google-chat\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jp.tdsynnex.com\/blog\/google\/gas-notification-from-google-calendar-to-google-chat\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-notification-from-google-calendar-to-google-chat\/#primaryimage","url":"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/info-g0c7095d99_1920.jpg","contentUrl":"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2021\/10\/info-g0c7095d99_1920.jpg","width":1920,"height":855},{"@type":"BreadcrumbList","@id":"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-notification-from-google-calendar-to-google-chat\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/jp.tdsynnex.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Google","item":"https:\/\/jp.tdsynnex.com\/blog\/category\/google\/"},{"@type":"ListItem","position":3,"name":"Google\u30ab\u30ec\u30f3\u30c0\u30fc\u304b\u3089\u4e88\u5b9a\u3092\u53d6\u5f97\u3057\u6bce\u671dGoogleChat\u306b\u6295\u7a3f\u3059\u308bGAS"}]},{"@type":"WebSite","@id":"https:\/\/jp.tdsynnex.com\/blog\/#website","url":"https:\/\/jp.tdsynnex.com\/blog\/","name":"TD SYNNEX BLOG","description":"IT\u5c02\u9580\u5546\u793e\u304c\u5c4a\u3051\u308b\u60c5\u5831\u30e1\u30c7\u30a3\u30a2","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jp.tdsynnex.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/jp.tdsynnex.com\/blog\/#\/schema\/person\/27a28c43d8bfc7e8087223b26535d233","name":"TD SYNNEX K.K.","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/jp.tdsynnex.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8c78c73b44737d0e9ea65e8b304502f5d063717571c4be4b0904e52c0d3c3229?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8c78c73b44737d0e9ea65e8b304502f5d063717571c4be4b0904e52c0d3c3229?s=96&d=mm&r=g","caption":"TD SYNNEX K.K."}}]}},"_links":{"self":[{"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/posts\/6415","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/comments?post=6415"}],"version-history":[{"count":4,"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/posts\/6415\/revisions"}],"predecessor-version":[{"id":6634,"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/posts\/6415\/revisions\/6634"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/media\/6515"}],"wp:attachment":[{"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/media?parent=6415"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/categories?post=6415"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/tags?post=6415"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}