{"id":3053,"date":"2023-02-10T17:40:55","date_gmt":"2023-02-10T08:40:55","guid":{"rendered":"https:\/\/133.242.23.245\/blog\/?p=3053"},"modified":"2023-02-10T17:40:59","modified_gmt":"2023-02-10T08:40:59","slug":"google%e3%82%b9%e3%83%97%e3%83%ac%e3%83%83%e3%83%89%e3%82%b7%e3%83%bc%e3%83%88%e3%81%ab%e8%a8%98%e5%85%a5%e3%81%97%e3%81%a6%e3%81%82%e3%82%8b%e4%ba%88%e5%ae%9a%e3%82%92google%e3%83%81%e3%83%a3","status":"publish","type":"post","link":"https:\/\/www.kara-kuri.jp\/blog\/?p=3053","title":{"rendered":"Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u8a18\u5165\u3057\u3066\u3042\u308b\u4e88\u5b9a\u3092Google\u30c1\u30e3\u30c3\u30c8\u3067\u30a2\u30ca\u30a6\u30f3\u30b9"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u306f\u3058\u3081\u306b<\/h2>\n\n\n\n<p>Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u8aad\u307f\u8fbc\u307f\u3001\u6307\u5b9a\u3057\u305f\u65e5\u4ed8\u306b\u5408\u81f4\u3057\u305f\u5834\u5408\u306f\u6307\u5b9a\u3057\u305f\u30b3\u30e1\u30f3\u30c8\u3092\u30a2\u30ca\u30a6\u30f3\u30b9\u3059\u308b\u6a5f\u80fd(\u4ee5\u4e0b\u3001\u30a2\u30ca\u30a6\u30f3\u30b9\u6a5f\u80fd)\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"478\" src=\"https:\/\/133.242.23.245\/blog\/wp-content\/uploads\/2023\/01\/image-1024x478.png\" alt=\"\" class=\"wp-image-3087\" srcset=\"https:\/\/www.kara-kuri.jp\/blog\/wp-content\/uploads\/2023\/01\/image-1024x478.png 1024w, https:\/\/www.kara-kuri.jp\/blog\/wp-content\/uploads\/2023\/01\/image-640x299.png 640w, https:\/\/www.kara-kuri.jp\/blog\/wp-content\/uploads\/2023\/01\/image-768x359.png 768w, https:\/\/www.kara-kuri.jp\/blog\/wp-content\/uploads\/2023\/01\/image-1536x717.png 1536w, https:\/\/www.kara-kuri.jp\/blog\/wp-content\/uploads\/2023\/01\/image.png 1846w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"236\" src=\"https:\/\/133.242.23.245\/blog\/wp-content\/uploads\/2023\/01\/\u30ea\u30de\u30a4\u30f3\u30c0\u30fc-1024x236.png\" alt=\"\" class=\"wp-image-3089\" srcset=\"https:\/\/www.kara-kuri.jp\/blog\/wp-content\/uploads\/2023\/01\/\u30ea\u30de\u30a4\u30f3\u30c0\u30fc-1024x236.png 1024w, https:\/\/www.kara-kuri.jp\/blog\/wp-content\/uploads\/2023\/01\/\u30ea\u30de\u30a4\u30f3\u30c0\u30fc-640x148.png 640w, https:\/\/www.kara-kuri.jp\/blog\/wp-content\/uploads\/2023\/01\/\u30ea\u30de\u30a4\u30f3\u30c0\u30fc-768x177.png 768w, https:\/\/www.kara-kuri.jp\/blog\/wp-content\/uploads\/2023\/01\/\u30ea\u30de\u30a4\u30f3\u30c0\u30fc.png 1334w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u4e0a\u8a18\u306e\u3088\u3046\u306b\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3067\u5e74\u6708\u65e5\u3068\u9001\u308b\u5185\u5bb9\u3092\u6307\u5b9a\u3057\u3066\u304a\u304f\u3068Google\u30c1\u30e3\u30c3\u30c8\u306b\u9001\u3089\u308c\u3066\u304f\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30a2\u30ca\u30a6\u30f3\u30b9\u6a5f\u80fd\u3092\u4f5c\u6210\u3059\u308b\u306b\u3042\u305f\u308aGoogle Apps Script(\u4ee5\u4e0bGAS)\u3068\u7740\u4fe1Webhook\u3092\u4f7f\u7528\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u4eca\u56de\u306fGAS\u306e\u51e6\u7406\u3068\u7740\u4fe1Webhook\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u307e\u305a\u306f\u3001\u3069\u306e\u3088\u3046\u306b\u30a2\u30ca\u30a6\u30f3\u30b9\u6a5f\u80fd\u304c\u52d5\u3044\u3066\u3044\u308b\u304b\u306f\u51e6\u7406\u30d5\u30ed\u30fc\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3053\u3061\u3089\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"673\" height=\"639\" src=\"https:\/\/133.242.23.245\/blog\/wp-content\/uploads\/2022\/12\/image-1.png\" alt=\"\" class=\"wp-image-3069\" srcset=\"https:\/\/www.kara-kuri.jp\/blog\/wp-content\/uploads\/2022\/12\/image-1.png 673w, https:\/\/www.kara-kuri.jp\/blog\/wp-content\/uploads\/2022\/12\/image-1-640x608.png 640w\" sizes=\"(max-width: 673px) 100vw, 673px\" \/><\/figure>\n\n\n\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u51e6\u7406\u30d5\u30ed\u30fc\u306b\u3042\u308b\u300c\u6307\u5b9a\u306e\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u304b\u3089\u65e5\u4ed8\u914d\u5217(\u5e74\u3001\u6708\u3001\u65e5)\u3092\u53d6\u5f97\u300d\u3068\u300c\u30e1\u30c3\u30bb\u30fc\u30b8\u9001\u4fe1\u300d\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30b5\u30f3\u30d7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u3064\u3044\u3066<\/h2>\n\n\n\n<p><strong>\u6307\u5b9a\u306e\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u304b\u3089\u65e5\u4ed8\u914d\u5217(\u5e74\u3001\u6708\u3001\u65e5)\u3092\u53d6\u5f97<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>function SampleTextDate () {\n  \/\/ \u5bfe\u8c61\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u53d6\u5f97\n  const spreadsheet = SpreadsheetApp.openByUrl('https:\/\/docs.google.com\/spreadsheets\/d\/sample\/edit');\n  \/\/ \u4e0a\u8a18\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e'sample'\u30b7\u30fc\u30c8\u3092\u53d6\u5f97\n  const sheet = spreadsheet.getSheetByName('sample')\n  \/\/ \u4e0a\u8a18\u30b7\u30fc\u30c8\u306e\u6700\u7d42\u884c\u756a\u53f7\u3092\u53d6\u5f97\uff08\u6570\u5024\uff09        \n  const lastRow = sheet.getLastRow()                          \n\n  let retArray = &#91;]\n  for (let i = 2; i &lt;= lastRow; i++) {\n    let dateArray = &#91;]\n    \/\/ \u5e74\u3092\u53d6\u5f97\n    let year = Number(sheet.getRange(i, 1).getValue())\n    dateArray.push(year)\n    \/\/ \u6708\u3092\u53d6\u5f97\n    let month = Number(sheet.getRange(i, 2).getValue())\n    dateArray.push(month)\n    \/\/ \u65e5\u3092\u53d6\u5f97\n    let day = Number(sheet.getRange(i, 3).getValue())\n    dateArray.push(day)\n\n    \/\/ \u914d\u5217\u306b\u683c\u7d0d\n    retArray.push(dateArray)\n  }\n\n  return retArray;\n}<\/code><\/pre>\n\n\n\n<p>\u4e0a\u8a18\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5404\u3005\u306e\u51e6\u7406\u306e\u8aac\u660e\u3092\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ol><li>SpreadsheetApp.openByUrl(&#8216;\u5bfe\u8c61\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306eURL&#8217;)<ul><li>\u4e0a\u8a18\u3067\u5bfe\u8c61\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53d6\u5f97\u3057\u3066\u3044\u307e\u3059\u3002<\/li><\/ul><\/li><li>\u5bfe\u8c61\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8.getSheetByName(&#8216;\u5bfe\u8c61\u30b7\u30fc\u30c8&#8217;)<ul><li>\u53d6\u5f97\u3057\u305f\u5bfe\u8c61\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u5185\u306e&#8217;\u5bfe\u8c61\u30b7\u30fc\u30c8&#8217;\u3092\u53d6\u5f97\u3057\u3066\u3044\u307e\u3059\u3002<\/li><\/ul><\/li><li>\u5bfe\u8c61\u30b7\u30fc\u30c8.getLastRow()<ul><li>\u5bfe\u8c61\u30b7\u30fc\u30c8\u3067\u3001\u5024\u304c\u5165\u3063\u3066\u3044\u308b\u30bb\u30eb\u306e\u4e2d\u3067\u4e00\u756a\u6700\u5f8c\u306e\u884c\u306e\u884c\u756a\u53f7\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u3001\u884c\u756a\u53f7\u306a\u306e\u3067\u578b\u306f\u6570\u5024\u306b\u306a\u308a\u307e\u3059\u3002<\/li><\/ul><\/li><li>\u5bfe\u8c61\u30b7\u30fc\u30c8.getRange(i, 1).getValue()<ul><li>getRange\u306f\u30bb\u30eb\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<ul><li>\u7b2c\u4e00\u5f15\u6570\u304c\u884c\u756a\u53f7<\/li><li>\u7b2c\u4e8c\u5f15\u6570\u304c\u5217\u756a\u53f7<\/li><\/ul><\/li><li>getValue()\u306f\u305d\u306e\u30bb\u30eb\u306e\u5024\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<br \/>\u3057\u305f\u304c\u3063\u3066\u3001getRange(A, 1).getValue()\u306f\u300cA\u884c\u76ee\u306e1\u5217\u76ee\u306e\u5024\u3092\u53d6\u5f97\u300d\u306b\u306a\u308a\u307e\u3059\u3002<\/li><\/ul><ul><li>\u53d6\u5f97\u3057\u305f\u5024\u306e\u578b\u306f\u6587\u5b57\u5217\u3068\u306a\u308b\u70ba\u3001\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u306fNumber()\u3092\u4f7f\u3063\u3066\u6570\u5024\u578b\u306b\u5909\u63db\u3057\u3066\u3044\u307e\u3059\u3002<\/li><\/ul><\/li><\/ol>\n\n\n\n<p>\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u8aac\u660e\u306b\u3064\u3044\u3066\u306f\u4ee5\u4e0a\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\u7d9a\u3044\u3066\u306f\u3001\u7740\u4fe1Webhook\u3092\u4f7f\u7528\u3057\u3066\u3001BOT\u30b9\u30af\u30ea\u30d7\u30c8\u304cGoogle Chat\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u308b\u305f\u3081\u306e\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u7740\u4fe1Webhook\u306b\u3064\u3044\u3066<\/h2>\n\n\n\n<p>\u7740\u4fe1 Webhook \u3092\u4f7f\u7528\u3059\u308b\u3068\u3001Chat \u30a2\u30d7\u30ea\u3067\u306f\u306a\u3044\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304b\u3089\u975e\u540c\u671f\u30e1\u30c3\u30bb\u30fc\u30b8\u3092 Google Chat \u306b\u9001\u4fe1\u3067\u304d\u307e\u3059\u3002<br \/>\u4eca\u56de\u4f5c\u6210\u3057\u305f\u3082\u306e\u306f\u30c8\u30ea\u30ac\u30fc\u3067\u6bce\u65e5\u5b9f\u884c\u3057\u3001\u65e5\u4ed8\u304c\u4e00\u81f4\u3057\u3066\u3044\u305f\u5834\u5408\u306bGoogle Chat \u306b\u9001\u4fe1\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\u307e\u305f\u3001\u7740\u4fe1 Webhook \u306fPython\u3084Java\u306b\u3082\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u306e\u3067\u3001<br \/>\u4f8b\u3048\u3070Linux\u30b5\u30fc\u30d0\u30fc\u3067\u969c\u5bb3\u304c\u767a\u751f\u3057\u305f\u3068\u304d\u306b Google Chat \u3067\u62c5\u5f53\u8005\u306b\u901a\u77e5\u3059\u308b\u3088\u3046\u306b\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0 \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<br \/>\u3057\u304b\u3057\u7740\u4fe1 Webhook \u306f\u4f1a\u8a71\u578b\u3067\u306f\u306a\u3044\u306e\u3067\u3001\u30e6\u30fc\u30b6\u30fc\u304b\u3089\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3084 Google Chat \u304b\u3089\u306e\u30a4\u30d9\u30f3\u30c8\u306b\u8fd4\u4fe1\u3057\u305f\u308a\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u53d7\u3051\u53d6\u3063\u305f\u308a\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u7740\u4fe1 Webhook \u3092\u4f7f\u7528\u3059\u308b\u306b\u306f\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u53d7\u4fe1\u3059\u308b Google Chat \u30b9\u30da\u30fc\u30b9\u306b\u767b\u9332\u3057\u3066\u304b\u3089\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u4fe1\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u4f5c\u6210\u304c\u5fc5\u8981\u3067\u3059\u3002<br \/>\u7740\u4fe1 Webhook \u306e\u7ba1\u7406\u306f\u30a6\u30a7\u30d6\u30d6\u30e9\u30a6\u30b6\u304b\u3089\u306e\u307f\u884c\u3048\u308b\u305f\u3081\u3001Webhook \u306f Chat \u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u304b\u3089\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u3001Chat \u30e2\u30d0\u30a4\u30eb\u30a2\u30d7\u30ea\u3067\u306f\u8a2d\u5b9a\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<ul><li>\u7740\u4fe1 Webhook \u3092\u767b\u9332\u3059\u308b\u65b9\u6cd5<ol><li>\u30a6\u30a7\u30d6\u30d6\u30e9\u30a6\u30b6\u3067 Google Chat \u3092\u958b\u304d\u307e\u3059\u3002<\/li><li>\u7740\u4fe1 Webhook \u3092\u8ffd\u52a0\u3059\u308b\u30b9\u30da\u30fc\u30b9\u306b\u79fb\u52d5\u3057\u307e\u3059\u3002<\/li><li>\u4e0a\u90e8\u306e\u30b9\u30da\u30fc\u30b9\u306e\u30bf\u30a4\u30c8\u30eb\u306e\u6a2a\u306b\u3042\u308b\u4e0b\u77e2\u5370 \u304b\u3089 [\u30a2\u30d7\u30ea\u3068\u7d71\u5408] \u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/li><li>[Webhook\u3092\u7ba1\u7406]\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/li><li>\u3053\u306e\u30b9\u30da\u30fc\u30b9\u306b\u3059\u3067\u306b\u4ed6\u306e Webhook \u304c\u3042\u308b\u5834\u5408\u306f\u3001[\u4ed6\u306b\u3082\u8ffd\u52a0] \u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002\u305d\u308c\u4ee5\u5916\u306e\u5834\u5408\u306f\u3001\u3053\u306e\u624b\u9806\u3092\u30b9\u30ad\u30c3\u30d7\u3057\u307e\u3059\u3002<\/li><li>[\u540d\u524d] \u306b\u7740\u4fe1 Webhook\u306e\u540d\u524d\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/li><li>[\u30a2\u30d0\u30bf\u30fc\u306e URL] \u306f\u8a2d\u5b9a\u3057\u306a\u304f\u3066\u3082\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002<\/li><li>[\u4fdd\u5b58] \u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/li><li>[content_copy \u30b3\u30d4\u30fc] \u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u3001Webhook \u306e URL \u5168\u4f53\u3092\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002URL\u306f\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u7d44\u307f\u8fbc\u3080\u305f\u3081\u63a7\u3048\u3066\u304a\u304d\u307e\u3059\u3002<\/li><li>\u30dc\u30c3\u30af\u30b9\u306e\u5916\u5074\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001[Incoming Webhooks] \u30c0\u30a4\u30a2\u30ed\u30b0\u304c\u9589\u3058\u307e\u3059\u3002<\/li><\/ol><\/li><\/ul>\n\n\n\n<p><\/p>\n\n\n\n<p>\u4e0a\u8a18\u306e\u9805\u756a\uff13\u3068\u9805\u756a\uff18\u306e\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u3092\u6dfb\u4ed8\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"has-text-align-center\">\u9805\u756a\uff13\u306e\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"604\" src=\"https:\/\/133.242.23.245\/blog\/wp-content\/uploads\/2023\/02\/image-1-1024x604.png\" alt=\"\" class=\"wp-image-3106\" srcset=\"https:\/\/www.kara-kuri.jp\/blog\/wp-content\/uploads\/2023\/02\/image-1-1024x604.png 1024w, https:\/\/www.kara-kuri.jp\/blog\/wp-content\/uploads\/2023\/02\/image-1-640x377.png 640w, https:\/\/www.kara-kuri.jp\/blog\/wp-content\/uploads\/2023\/02\/image-1-768x453.png 768w, https:\/\/www.kara-kuri.jp\/blog\/wp-content\/uploads\/2023\/02\/image-1.png 1443w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p class=\"has-text-align-center\">\u9805\u756a\uff18\u306e\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"388\" src=\"https:\/\/133.242.23.245\/blog\/wp-content\/uploads\/2023\/01\/image-3-1024x388.png\" alt=\"\" class=\"wp-image-3092\" srcset=\"https:\/\/www.kara-kuri.jp\/blog\/wp-content\/uploads\/2023\/01\/image-3-1024x388.png 1024w, https:\/\/www.kara-kuri.jp\/blog\/wp-content\/uploads\/2023\/01\/image-3-640x242.png 640w, https:\/\/www.kara-kuri.jp\/blog\/wp-content\/uploads\/2023\/01\/image-3-768x291.png 768w, https:\/\/www.kara-kuri.jp\/blog\/wp-content\/uploads\/2023\/01\/image-3.png 1027w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p>\u30b9\u30af\u30ea\u30d7\u30c8\u306bWebhook \u304c\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u30b9\u30da\u30fc\u30b9\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u308b\u51e6\u7406\u3092\u8a18\u8ff0\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/**\n * room\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u4fe1\u3059\u308b\n *\n * @param &#91;in] msg \u30e1\u30c3\u30bb\u30fc\u30b8\n *\/\nfunction mtdSendMessage_k(msg){\n  \/* Webhook URL *\/\n  const url = 'https:\/\/chat.googleapis...'; \/\/\u30b3\u30d4\u30fc\u3057\u305fURL\u3092\u6dfb\u4ed8\n\n  var botMessage = { 'text': msg }\n  \/* \u30e1\u30c3\u30bb\u30fc\u30b8\u9001\u4fe1\u306e\u305f\u3081\u306e\u8a2d\u5b9a *\/\n  var options = {\n    'method': 'POST',\n    'headers': {\n      'Content-Type': 'application\/json; charset=UTF-8'\n    },\n    'payload': JSON.stringify(botMessage)\n  };\n\n  \/* \u30e1\u30c3\u30bb\u30fc\u30b8\u9001\u4fe1 *\/\n  var result = UrlFetchApp.fetch(url, options);\n}<\/code><\/pre>\n\n\n\n<p>\u3053\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u306fWebhook URL \u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u4f5c\u6210\u30ea\u30af\u30a8\u30b9\u30c8\u3092 POST \u9001\u4fe1\u3057\u3066\u3001Webhook \u304c\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u30b9\u30da\u30fc\u30b9\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u6295\u7a3f\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6700\u5f8c\u306b<\/h2>\n\n\n\n<p>\u4eca\u56de\u306f\u3001Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u8a18\u5165\u3057\u3066\u3042\u308b\u4e88\u5b9a\u3092Google\u30c1\u30e3\u30c3\u30c8\u3067\u30a2\u30ca\u30a6\u30f3\u30b9\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>GAS\u306e\u30b3\u30fc\u30c9\u306e\u66f8\u304d\u65b9\u3084\u7740\u4fe1Webhook\u306e\u767b\u9332\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u304c\u3001\u3044\u304b\u304c\u3060\u3063\u305f\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n\n\n\n<p>\u53c2\u8003\u306b\u306a\u308c\u3070\u5e78\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u300cGooglen\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u8a18\u5165\u3057\u3066\u3042\u308b\u4e88\u5b9a\u3092Google\u30c1\u30e3\u30c3\u30c8\u3067\u30a2\u30ca\u30a6\u30f3\u30b9\u300d\u306f\u4ee5\u4e0a\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3054\u89a7\u3044\u305f\u3060\u304d\u3001\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u8aad\u307f\u8fbc\u307f\u3001\u6307\u5b9a\u3057\u305f\u65e5\u4ed8\u306b\u5408\u81f4\u3057\u305f\u5834\u5408\u306f\u6307\u5b9a\u3057\u305f\u30b3\u30e1\u30f3\u30c8\u3092\u30a2\u30ca\u30a6\u30f3\u30b9\u3059\u308b\u6a5f\u80fd(\u4ee5\u4e0b\u3001\u30a2\u30ca\u30a6\u30f3\u30b9\u6a5f\u80fd)\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002 \u4e0a\u8a18\u306e\u3088\u3046\u306b\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3067\u5e74\u6708\u65e5\u3068\u9001\u308b\u5185\u5bb9\u3092\u6307\u5b9a\u3057\u3066\u304a\u304f\u3068G [&hellip;]<\/p>\n","protected":false},"author":123458,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[56],"tags":[],"_links":{"self":[{"href":"https:\/\/www.kara-kuri.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3053"}],"collection":[{"href":"https:\/\/www.kara-kuri.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kara-kuri.jp\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kara-kuri.jp\/blog\/index.php?rest_route=\/wp\/v2\/users\/123458"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kara-kuri.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3053"}],"version-history":[{"count":31,"href":"https:\/\/www.kara-kuri.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3053\/revisions"}],"predecessor-version":[{"id":3112,"href":"https:\/\/www.kara-kuri.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3053\/revisions\/3112"}],"wp:attachment":[{"href":"https:\/\/www.kara-kuri.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3053"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kara-kuri.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3053"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kara-kuri.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3053"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}