{"id":6547,"date":"2022-10-14T23:04:24","date_gmt":"2022-10-14T14:04:24","guid":{"rendered":"https:\/\/auto-worker.com\/blog\/?p=6547"},"modified":"2022-10-15T07:08:20","modified_gmt":"2022-10-14T22:08:20","slug":"post-6547","status":"publish","type":"post","link":"https:\/\/auto-worker.com\/blog\/?p=6547","title":{"rendered":"GAS\u306e\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u64cd\u4f5c\u307e\u3068\u3081\uff01\u30e1\u30c3\u30bb\u30fc\u30b8\u30fb\u30d5\u30a1\u30a4\u30eb\u30fb\u30bf\u30b9\u30af\u306e\u53d6\u5f97\uff0f\u6295\u7a3f"},"content":{"rendered":"\n<p>Google Apps Script(GAS)\u3067\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u3092\u4f7f\u3063\u305f\u5404\u7a2e\u64cd\u4f5c\u65b9\u6cd5\u3092\u307e\u3068\u3081\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u6295\u7a3f\u3055\u308c\u305f\u30e1\u30c3\u30bb\u30fc\u30b8\u3084\u30d5\u30a1\u30a4\u30eb\u3001\u30bf\u30b9\u30af\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u304b\u3089\u3001API\u7d4c\u7531\u3067\u5404\u7a2e\u6295\u7a3f\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">GAS\u306f\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u64cd\u4f5c\u306b\u4fbf\u5229<\/h2>\n\n\n\n<p>Google Apps Script(GAS)\u306f\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u3092\u64cd\u4f5c\u3059\u308b\u306e\u306b\u4fbf\u5229\u306a\u30b9\u30af\u30ea\u30d7\u30c8\u30b5\u30fc\u30d3\u30b9\u3067\u3059\u3002<\/p>\n\n\n\n<p>GAS\u306f\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u3067\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u5b9f\u884c\u306a\u3069\u30671\u6642\u9593\u306b1\u56de\u3084\u3001\u6bce\u65e5\u25cb\u6642\u306b\u5b9f\u884c\u3068\u3044\u3063\u305f\u7a3c\u50cd\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3055\u3089\u306b\u3001\u5f8c\u8ff0\u3059\u308bChatWorkClient\u3068\u3044\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u7528\u610f\u3055\u308c\u3066\u304a\u308a\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u6295\u7a3f\u306a\u3069\u306f\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3048\u3070\u7c21\u5358\u306b\u64cd\u4f5c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u3053\u3067\u3001G\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u3092\u5229\u7528\u3057\u3066\u3001\u5404\u7a2e\u64cd\u4f5c\u3092GAS\u3067\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u306e\u30c8\u30fc\u30af\u30f3\u767a\u884c\u65b9\u6cd5<\/h2>\n\n\n\n<p>\u307e\u305a\u3001Google Apps Script(GAS)\u3067\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u3092\u4f7f\u7528\u3059\u308b\u306b\u306f\u3001API\u30c8\u30fc\u30af\u30f3\u3092\u767a\u884c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>API\u30c8\u30fc\u30af\u30f3(API\u30ad\u30fc)\u306f\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u7ba1\u7406\u753b\u9762\u304b\u3089\u767a\u884c\u3067\u304d\u3001\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3067API\u30c8\u30fc\u30af\u30f3\u306e\u53d6\u5f97\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-autoworker\u301cgoogle-apps-script-gas-\u3068sikuli\u3067\u59cb\u3081\u308b\u696d\u52d9\u6539\u5584\u5165\u9580 wp-block-embed-autoworker\u301cgoogle-apps-script-gas-\u3068sikuli\u3067\u59cb\u3081\u308b\u696d\u52d9\u6539\u5584\u5165\u9580\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"P5X0A8UJhh\"><a href=\"https:\/\/auto-worker.com\/blog\/?p=6461\">\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u306eChatwork API\u30c8\u30fc\u30af\u30f3\u767a\u884c\u624b\u9806\u3092\u89e3\u8aac\uff01\u30ad\u30fc\u518d\u767a\u884c\u65b9\u6cd5\u3082<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u306eChatwork API\u30c8\u30fc\u30af\u30f3\u767a\u884c\u624b\u9806\u3092\u89e3\u8aac\uff01\u30ad\u30fc\u518d\u767a\u884c\u65b9\u6cd5\u3082&#8221; &#8212; AutoWorker\u301cGoogle Apps Script(GAS)\u3068Sikuli\u3067\u59cb\u3081\u308b\u696d\u52d9\u6539\u5584\u5165\u9580\" src=\"https:\/\/auto-worker.com\/blog\/?p=6461&#038;embed=true#?secret=2qEApBJhFI#?secret=P5X0A8UJhh\" data-secret=\"P5X0A8UJhh\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u306f\u7533\u8acb\u4f5c\u696d\u7b49\u306a\u304f\u3001\u7c21\u5358\u306b\u30c8\u30fc\u30af\u30f3\u3092\u767a\u884c\u3057\u3066\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u306e\u30c8\u30fc\u30af\u30f3\u306f\u6f0f\u6d29\u3059\u308b\u3068\u4ed6\u306e\u4eba\u304c\u81ea\u5206\u306b\u6210\u308a\u4ee3\u308f\u3063\u3066\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u3063\u305f\u308a\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u3084\u308a\u53d6\u308a\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>API\u30c8\u30fc\u30af\u30f3\u306f\u53b3\u91cd\u306b\u4fdd\u7ba1\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">ChatWorkClient\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u5b9f\u884c\u53ef\u80fd\u306a\u64cd\u4f5c<\/h2>\n\n\n\n<p>Google Apps Script(GAS)\u3067\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u3092\u5229\u7528\u3059\u308b\u969b\u306b\u306fChatWorkClient\u3068\u3044\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3082\u3061\u308d\u3093\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u3092\u76f4\u63a5UrlfetchApp.fetch\u3067\u30ea\u30af\u30a8\u30b9\u30c8\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u304c\u3001ChatWorkClient\u3092\u4f7f\u3048\u3070\u3001\u3088\u308a\u7c21\u5358\u306b\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u3092\u5229\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305f\u3060\u3001ChatWorkClient\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u5229\u7528\u3067\u304d\u308b\u6a5f\u80fd\u304c\u9650\u3089\u308c\u3066\u304a\u308a\u3001\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u3067\u64cd\u4f5c\u53ef\u80fd\u306a\u3059\u3079\u3066\u304c\u5b9f\u884c\u3067\u304d\u308b\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>ChatWorkClient\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u30e1\u30bd\u30c3\u30c9\u3067\u5b9f\u884c\u53ef\u80fd\u306a\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u64cd\u4f5c\u306f\u4ee5\u4e0b\u306e3\u3064\u3067\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>\u30c1\u30e3\u30c3\u30c8\u4e00\u89a7(\u30eb\u30fc\u30e0ID)\u306e\u53d6\u5f97<\/li><li>\u30c1\u30e3\u30c3\u30c8\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u9001\u4fe1<\/li><li>\u30bf\u30b9\u30af\u306e\u53d6\u5f97\u30fb\u8ffd\u52a0<\/li><\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u3092\u76f4\u63a5\u53e9\u304f\u64cd\u4f5c<\/h2>\n\n\n\n<p>Google Apps Script(GAS)\u306eChatWorkClient\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3067\u304d\u306a\u3044\u64cd\u4f5c\u306f\u3001\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u3092\u76f4\u63a5\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u3066\u5b9f\u884c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u3092GAS\u306eUrlfetchApp.fetch\u30e1\u30bd\u30c3\u30c9\u3067\u5b9f\u884c\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u64cd\u4f5c\u306f\u4e3b\u306b\u4ee5\u4e0b\u306e3\u3064\u3067\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>\u30c1\u30e3\u30c3\u30c8\u306b\u6295\u7a3f\u3055\u308c\u305f\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u53d6\u5f97<\/li><li>\u30c1\u30e3\u30c3\u30c8\u306b\u6dfb\u4ed8\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u306e\u53d6\u5f97<\/li><li>\u30c1\u30e3\u30c3\u30c8(\u30eb\u30fc\u30e0)\u3078\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9<\/li><\/ol>\n\n\n\n<p>\u57fa\u672c\u7684\u306bChatWorkClient\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u5b9f\u884c\u3067\u304d\u306a\u3044\u5834\u5408\u306f\u3001\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u3092\u76f4\u306b\u53e9\u304f\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30c1\u30e3\u30c3\u30c8(\u30eb\u30fc\u30e0)\u306eID\u3092\u53d6\u5f97<\/h2>\n\n\n\n<p>\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u304b\u3089\u30e1\u30c3\u30bb\u30fc\u30b8\u3084\u30bf\u30b9\u30af\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u53d6\u5f97\u30fb\u6295\u7a3f\u3059\u308b\u969b\u306b\u5fc5\u305a\u5fc5\u8981\u306b\u306a\u308b\u306e\u306f\u30eb\u30fc\u30e0ID\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u30eb\u30fc\u30e0ID\u3068\u306f\u500b\u4eba\u9593\u30c1\u30e3\u30c3\u30c8\u3084\u8907\u6570\u4eba\u306e\u30b0\u30eb\u30fc\u30d7\u30c1\u30e3\u30c3\u30c8\u306b\u56fa\u6709\u306b\u5272\u308a\u5f53\u3066\u3089\u308c\u305fID\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306eID\u3092\u5f15\u6570\u306b\u6307\u5b9a\u307e\u305f\u306f\u3001\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306b\u542b\u3081\u308b\u5f62\u3067\u5404\u7a2e\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u306e\u64cd\u4f5c\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>Google Apps Script(GAS)\u3067\u30eb\u30fc\u30e0ID\u3092\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u304b\u3089\u53d6\u5f97\u3059\u308b\u306b\u306fChatWorkClient\u30e9\u30a4\u30d6\u30e9\u30ea\u306egetRooms\u30e1\u30bd\u30c3\u30c9\u3092\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4e0b\u8a18\u306e\u89e3\u8aac\u8a18\u4e8b\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3001\u81ea\u5206\u304c\u53c2\u7167\u53ef\u80fd\u306a\u30c1\u30e3\u30c3\u30c8\u306e\u30eb\u30fc\u30e0ID\u304c\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-autoworker\u301cgoogle-apps-script-gas-\u3068sikuli\u3067\u59cb\u3081\u308b\u696d\u52d9\u6539\u5584\u5165\u9580 wp-block-embed-autoworker\u301cgoogle-apps-script-gas-\u3068sikuli\u3067\u59cb\u3081\u308b\u696d\u52d9\u6539\u5584\u5165\u9580\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"rnldN1KMKG\"><a href=\"https:\/\/auto-worker.com\/blog\/?p=6489\">GAS\u3067\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u304b\u3089\u30eb\u30fc\u30e0ID\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5(getRooms\u30e1\u30bd\u30c3\u30c9)<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;GAS\u3067\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u304b\u3089\u30eb\u30fc\u30e0ID\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5(getRooms\u30e1\u30bd\u30c3\u30c9)&#8221; &#8212; AutoWorker\u301cGoogle Apps Script(GAS)\u3068Sikuli\u3067\u59cb\u3081\u308b\u696d\u52d9\u6539\u5584\u5165\u9580\" src=\"https:\/\/auto-worker.com\/blog\/?p=6489&#038;embed=true#?secret=bdHfwNuQiN#?secret=rnldN1KMKG\" data-secret=\"rnldN1KMKG\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u306b\u3088\u308b\u52b9\u7387\u5316\u3067\u306f\u30eb\u30fc\u30e0ID\u306e\u4e00\u89a7\u3092\u53d6\u5f97\u3059\u308b\u306e\u304c\u7b2c\u4e00\u624b\u76ee\u306e\u5bfe\u5fdc\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u6295\u7a3f<\/h2>\n\n\n\n<p>\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u52b9\u7387\u5316\u306e\uff11\u3064\u306b\u30dc\u30c3\u30c8\u3084\u5b9a\u671f\u7684\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u6295\u7a3f\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u3088\u304f\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u6295\u7a3f\u3059\u308b\u306e\u3082\u3001Google Apps Script(GAS)\u306eChatWorkClient\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u5b9f\u73fe\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-autoworker\u301cgoogle-apps-script-gas-\u3068sikuli\u3067\u59cb\u3081\u308b\u696d\u52d9\u6539\u5584\u5165\u9580 wp-block-embed-autoworker\u301cgoogle-apps-script-gas-\u3068sikuli\u3067\u59cb\u3081\u308b\u696d\u52d9\u6539\u5584\u5165\u9580\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"AYdfyvRLvI\"><a href=\"https:\/\/auto-worker.com\/blog\/?p=6478\">GAS\u3067\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u7d4c\u7531\u3067\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u6295\u7a3f\u3059\u308b\u65b9\u6cd5(ChatworkClient\u30e9\u30a4\u30d6\u30e9\u30ea)<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;GAS\u3067\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u7d4c\u7531\u3067\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u6295\u7a3f\u3059\u308b\u65b9\u6cd5(ChatworkClient\u30e9\u30a4\u30d6\u30e9\u30ea)&#8221; &#8212; AutoWorker\u301cGoogle Apps Script(GAS)\u3068Sikuli\u3067\u59cb\u3081\u308b\u696d\u52d9\u6539\u5584\u5165\u9580\" src=\"https:\/\/auto-worker.com\/blog\/?p=6478&#038;embed=true#?secret=HwBOU8ebnI#?secret=AYdfyvRLvI\" data-secret=\"AYdfyvRLvI\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>\u6295\u7a3f\u3059\u308b\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u5185\u5bb9\u3068\u3001\u6295\u7a3f\u5148\u306e\u30eb\u30fc\u30e0ID\u3092\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5f62\u5f0f\u306e\u5f15\u6570\u3067\u6307\u5b9a\u3057\u3066\u3001sendMessage\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u53d6\u5f97<\/h2>\n\n\n\n<p>Google Apps Script(GAS)\u306eChatWorkClient\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u306f\u5b9f\u884c\u3067\u304d\u306a\u3044\u306e\u304c\u3001\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u6295\u7a3f\u3055\u308c\u305f\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u53d6\u5f97\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u30c1\u30e3\u30c3\u30c8\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u53d6\u5f97\u306f\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u306b\u5bfe\u3057\u3001\u76f4\u63a5\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u306fUrlfetchApp.fetch\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3063\u3066\u3001\u30d8\u30c3\u30c0\u30fc\u60c5\u5831\u306bAPI\u30c8\u30fc\u30af\u30f3\u3092\u8a2d\u5b9a\u3057\u3001HTTP\u901a\u4fe1\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-autoworker\u301cgoogle-apps-script-gas-\u3068sikuli\u3067\u59cb\u3081\u308b\u696d\u52d9\u6539\u5584\u5165\u9580 wp-block-embed-autoworker\u301cgoogle-apps-script-gas-\u3068sikuli\u3067\u59cb\u3081\u308b\u696d\u52d9\u6539\u5584\u5165\u9580\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"TYafhfVOeX\"><a href=\"https:\/\/auto-worker.com\/blog\/?p=6501\">GAS\u3067\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u304b\u3089\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\uff01\u30c1\u30e3\u30c3\u30c8\u5c65\u6b74\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306b\u4fbf\u5229<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;GAS\u3067\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u304b\u3089\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\uff01\u30c1\u30e3\u30c3\u30c8\u5c65\u6b74\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u306b\u4fbf\u5229&#8221; &#8212; AutoWorker\u301cGoogle Apps Script(GAS)\u3068Sikuli\u3067\u59cb\u3081\u308b\u696d\u52d9\u6539\u5584\u5165\u9580\" src=\"https:\/\/auto-worker.com\/blog\/?p=6501&#038;embed=true#?secret=B16DHwKJu8#?secret=TYafhfVOeX\" data-secret=\"TYafhfVOeX\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u7121\u6599\u7248\u306f2022\u5e7410\u6708\u3088\u308a\u3001\u904e\u53bb40\u65e5\u307e\u305f\u306f5000\u4ef6\u4ee5\u524d\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u306a\u304f\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u7121\u6599\u306e\u30d5\u30ea\u30fc\u30d7\u30e9\u30f3\u3067\u306f\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u898b\u308c\u305a\u3001\u898b\u305f\u3044\u5834\u5408\u306f\u6709\u6599\u30d7\u30e9\u30f3\u306b\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u305f\u3060\u3001GAS\u3067\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u3092\u4f7f\u3044\u5b9a\u671f\u7684\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u53d6\u5f97\u3057\u3001\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306a\u3069\u306b\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3059\u308c\u3070\u3001\u3042\u3068\u304b\u3089\u53c2\u7167\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3092API\u7d4c\u7531\u3067\u53d6\u5f97\u3059\u308b\u306e\u306f\u30cb\u30fc\u30ba\u304c\u9ad8\u307e\u308b\u3068\u63a8\u6e2c\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u30bf\u30b9\u30af\u3092\u53d6\u5f97\u30fb\u6295\u7a3f<\/h2>\n\n\n\n<p>\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u3067\u306f\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u3084\u308a\u53d6\u308a\u306e\u4ed6\u306b\u3001\u30bf\u30b9\u30af\u6a5f\u80fd\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>Chatwork\u306e\u30bf\u30b9\u30af\u767b\u9332\u753b\u9762\u304b\u3089\u767b\u9332\u3059\u308b\u4ee5\u5916\u306b\u3001\u6295\u7a3f\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u30bf\u30b9\u30af\u5316\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u3046\u3057\u305f\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u30bf\u30b9\u30af\u3082API\u306b\u3088\u308b\u64cd\u4f5c\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-autoworker\u301cgoogle-apps-script-gas-\u3068sikuli\u3067\u59cb\u3081\u308b\u696d\u52d9\u6539\u5584\u5165\u9580 wp-block-embed-autoworker\u301cgoogle-apps-script-gas-\u3068sikuli\u3067\u59cb\u3081\u308b\u696d\u52d9\u6539\u5584\u5165\u9580\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"VKMKqe7CUz\"><a href=\"https:\/\/auto-worker.com\/blog\/?p=6523\">GAS\u3067\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u7d4c\u7531\u306e\u30bf\u30b9\u30af\u53d6\u5f97\u3084\u767b\u9332\u30fb\u8ffd\u52a0\u65b9\u6cd5(ChatWorkClient\u30e9\u30a4\u30d6\u30e9\u30ea)<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;GAS\u3067\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u7d4c\u7531\u306e\u30bf\u30b9\u30af\u53d6\u5f97\u3084\u767b\u9332\u30fb\u8ffd\u52a0\u65b9\u6cd5(ChatWorkClient\u30e9\u30a4\u30d6\u30e9\u30ea)&#8221; &#8212; AutoWorker\u301cGoogle Apps Script(GAS)\u3068Sikuli\u3067\u59cb\u3081\u308b\u696d\u52d9\u6539\u5584\u5165\u9580\" src=\"https:\/\/auto-worker.com\/blog\/?p=6523&#038;embed=true#?secret=dp1yfPopdT#?secret=VKMKqe7CUz\" data-secret=\"VKMKqe7CUz\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u30bf\u30b9\u30af\u53d6\u5f97\u3084\u8ffd\u52a0\u306fGoogle Apps Script(GAS)\u306b\u7528\u610f\u3055\u308c\u305fChatWorkClient\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u62c5\u5f53\u8005\u304c\u81ea\u5206\u306e\u30bf\u30b9\u30af\u3092\u53d6\u5f97\u3057\u3066\u3001\u671f\u9650\u5207\u308c\u306b\u306a\u3063\u3066\u3044\u308b\u5834\u5408\u306b\u30ea\u30de\u30a4\u30f3\u30c9\u901a\u77e5\u3092\u9001\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u304cGAS\u3067\u4f5c\u6210\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u306e\u4ed6\u306b\u3082\u5b9a\u4f8b\u30bf\u30b9\u30af\u306a\u3069\u306f\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u7d4c\u7531\u3067\u3001\u5b9a\u671f\u7684\u306b\u81ea\u52d5\u6295\u7a3f\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u6dfb\u4ed8\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u306e\u53d6\u5f97<\/h2>\n\n\n\n<p>\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u4e0a\u306b\u6295\u7a3f\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u304b\u3089\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p>Google Apps Script(GAS)\u306eChatWorkClient\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u306f\u30d5\u30a1\u30a4\u30eb\u306e\u53d6\u5f97\u306f\u3067\u304d\u306a\u3044\u305f\u3081\u3001\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u3092\u76f4\u63a5\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u30c1\u30e3\u30c3\u30c8\u306b\u6295\u7a3f\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u3092API\u7d4c\u7531\u3067Blob\u5f62\u5f0f\u3067\u53d6\u5f97\u3059\u308c\u3070\u3001Google\u30c9\u30e9\u30a4\u30d6\u306a\u3069\u306b\u4fdd\u5b58\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-autoworker\u301cgoogle-apps-script-gas-\u3068sikuli\u3067\u59cb\u3081\u308b\u696d\u52d9\u6539\u5584\u5165\u9580 wp-block-embed-autoworker\u301cgoogle-apps-script-gas-\u3068sikuli\u3067\u59cb\u3081\u308b\u696d\u52d9\u6539\u5584\u5165\u9580\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"OrLjLScSof\"><a href=\"https:\/\/auto-worker.com\/blog\/?p=6536\">GAS\u3068\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u53d6\u5f97\u3057\u3066Google\u30c9\u30e9\u30a4\u30d6\u306b\u4fdd\u5b58\u3059\u308b\u65b9\u6cd5<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;GAS\u3068\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u53d6\u5f97\u3057\u3066Google\u30c9\u30e9\u30a4\u30d6\u306b\u4fdd\u5b58\u3059\u308b\u65b9\u6cd5&#8221; &#8212; AutoWorker\u301cGoogle Apps Script(GAS)\u3068Sikuli\u3067\u59cb\u3081\u308b\u696d\u52d9\u6539\u5584\u5165\u9580\" src=\"https:\/\/auto-worker.com\/blog\/?p=6536&#038;embed=true#?secret=NxCiNTMHsV#?secret=OrLjLScSof\" data-secret=\"OrLjLScSof\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>\u89e3\u8aac\u8a18\u4e8b\u3067\u306fGAS\u3067\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u304b\u3089\u30d5\u30a1\u30a4\u30eb\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9URL\u3092\u53d6\u5f97\u3057\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066Google\u30c9\u30e9\u30a4\u30d6\u4fdd\u5b58\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u30d5\u30ea\u30fc\u30d7\u30e9\u30f3(\u7121\u6599\u7248)\u306f\u904e\u53bb40\u65e5\u4ee5\u524d\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3084\u30d5\u30a1\u30a4\u30eb\u304c2022\u5e7410\u6708\u304b\u3089\u53c2\u7167\u3067\u304d\u306a\u304f\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u3092GAS\u3067\u3046\u307e\u304f\u5229\u7528\u3059\u308c\u3070\u3001\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u52a0\u3048\u3001\u30d5\u30a1\u30a4\u30eb\u3082Google\u30c9\u30e9\u30a4\u30d6\u306b\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30d5\u30a1\u30a4\u30eb\u3092\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9<\/h2>\n\n\n\n<p>\u5148\u7a0b\u306f\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u30c1\u30e3\u30c3\u30c8\u306b\u6295\u7a3f\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u53d6\u5f97\u3057\u307e\u3057\u305f\u304c\u3001\u9006\u306b\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u6295\u7a3f\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u3053\u3067\u3001Google Apps Script(GAS)\u3067Google\u30c9\u30e9\u30a4\u30d6\u306b\u3042\u308b\u30d5\u30a1\u30a4\u30eb\u3092\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u3067\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"414\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221014_auto_002.jpg\" alt=\"Google\u30c9\u30e9\u30a4\u30d6\u306b\u3042\u308b\u30d5\u30a1\u30a4\u30eb\u3092\u3001Google Apps Script(GAS)\u3067\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u3066\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\" class=\"wp-image-6557\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221014_auto_002.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221014_auto_002-300x155.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221014_auto_002-768x397.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221014_auto_002-530x274.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221014_auto_002-565x292.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221014_auto_002-710x367.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221014_auto_002-725x375.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>\u4e0a\u8a18\u306eGoogle\u30c9\u30e9\u30a4\u30d6\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u3067\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"524\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221014_auto_003-1024x524.jpg\" alt=\"Google Apps Script(GAS)\u3067Google\u30c9\u30e9\u30a4\u30d6\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u3067\u30c1\u30e3\u30c3\u30c8\u306b\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" class=\"wp-image-6558\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221014_auto_003-1024x524.jpg 1024w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221014_auto_003-300x154.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221014_auto_003-768x393.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221014_auto_003-530x271.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221014_auto_003-565x289.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221014_auto_003-710x363.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221014_auto_003-725x371.jpg 725w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221014_auto_003.jpg 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-luxe-blocks-syntaxhighlighter line-numbers language-javascript\"><code class=\"language-javascript\">function postFileToChatWork() {\n  \/\/Chatwork API Token\u3092\u5b9a\u6570\u3068\u3057\u3066\u5b9a\u7fa9\n  const token = '********************************';\n  \/\/\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u53d6\u5f97\u3057\u305f\u3044\u30eb\u30fc\u30e0ID\u3092\u5b9a\u6570\u3068\u3057\u3066\u5b9a\u7fa9\n  const room_id = '+++++++++';\n  \/\/ChatWorkAPI\u306e\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3092\u5b9a\u7fa9\n  const filePostUrl = 'https:\/\/api.chatwork.com\/v2\/rooms\/' + room_id + '\/files\/';\n  \/\/Google\u30c9\u30e9\u30a4\u30d6\u304b\u3089Chatwork\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u3092Blob\u5f62\u5f0f\u3067\u53d6\u5f97\u3057\u540d\u524d\u3092\u8a2d\u5b9a\n  const file = DriveApp.getFileById('Google\u30c9\u30e9\u30a4\u30d6\u306e\u30d5\u30a1\u30a4\u30ebID').getBlob().setName('\u30d5\u30a1\u30a4\u30eb\u540d');\n  \/\/API\u30ea\u30af\u30a8\u30b9\u30c8\u6642\u306b\u5fc5\u8981\u306aAPI\u30c8\u30fc\u30af\u30f3\u3092JSON\u5f62\u5f0f\u3067\u6307\u5b9a\n  let json = {\n    'x-chatworktoken': token,\n  };\n  \/\/\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u3068\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u30da\u30a4\u30ed\u30fc\u30c9\u306b\u8a2d\u5b9a\n  let payload ={\n    'file' : file,\n    'message' :'GAS\u304b\u3089API\u7d4c\u7531\u3067\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u307e\u3057\u305f\u3002'\n  }\n  \/\/HTTP POST\u3092\u884c\u3046\u305f\u3081\u306e\u30e1\u30bd\u30c3\u30c9\u3068\u3001\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u8a2d\u5b9a\n  let options = {\n    'method': 'post',\n    'headers': json,\n    'payload': payload\n  };\n  \/\/\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u3078\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\n  let response = JSON.parse(UrlFetchApp.fetch(filePostUrl, options).getContentText());\n}\n<\/code><\/pre>\n\n\n\n<p>\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u6307\u5b9a\u3057\u305f\u30c1\u30e3\u30c3\u30c8\u30eb\u30fc\u30e0\u306b\u30d5\u30a1\u30a4\u30eb\u304c\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"398\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221014_auto_004.jpg\" alt=\"Google Apps Script(GAS)\u3067Google\u30c9\u30e9\u30a4\u30d6\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u3067\u30c1\u30e3\u30c3\u30c8\u306b\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u305f\u7d50\u679c\u3001\u30c1\u30e3\u30c3\u30c8\u306b\u30d5\u30a1\u30a4\u30eb\u304c\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\" class=\"wp-image-6559\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221014_auto_004.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221014_auto_004-300x149.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221014_auto_004-768x382.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221014_auto_004-530x264.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221014_auto_004-565x281.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221014_auto_004-710x353.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221014_auto_004-725x361.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>\u3053\u306e\u3088\u3046\u306b\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u3067\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3082\u81ea\u52d5\u5316\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u306a\u304a\u3001\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u7d4c\u7531\u3067\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3067\u304d\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u5bb9\u91cf\u306f5MB\u304c\u4e0a\u9650\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081\u30fb\u7d42\u308f\u308a\u306b<\/h2>\n\n\n\n<p>\u4eca\u56de\u3001Google Apps Script(GAS)\u3067\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u3092\u64cd\u4f5c\u3057\u3066\u3001\u30e1\u30c3\u30bb\u30fc\u30b8\u30fb\u30bf\u30b9\u30af\u30fb\u30d5\u30a1\u30a4\u30eb\u306e\u53d6\u5f97\/\u6295\u7a3f\u3059\u308b\u65b9\u6cd5\u3092\u307e\u3068\u3081\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u306b\u306f\u30e1\u30c3\u30bb\u30fc\u30b8\u3001\u30bf\u30b9\u30af\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u64cd\u4f5c\u3059\u308b\u5404\u7a2e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>GAS\u306e\u5834\u5408\u3001ChatWorkClient\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3046\u5834\u5408\u3068\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u3092\u76f4\u63a5\u53e9\u304f2\u30d1\u30bf\u30fc\u30f3\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>ChatWorkClient\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u65b9\u304c\u30b3\u30fc\u30c9\u304c\u30b7\u30f3\u30d7\u30eb\u306a\u306e\u3067\u3001GAS\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u4f7f\u3048\u308b\u5834\u5408\u306f\u305d\u3061\u3089\u3092\u4f7f\u3046\u306e\u304c\u304a\u3059\u3059\u3081\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u4ed5\u4e8b\u3092\u52b9\u7387\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305c\u3072\u3001\u4eca\u56de\u7d39\u4ecb\u3057\u305f\u5404\u7a2eGAS\u306b\u3088\u308b\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u306e\u64cd\u4f5c\u3092\u53c2\u8003\u306b\u3001\u696d\u52d9\u52b9\u7387\u5316\u306b\u53d6\u308a\u7d44\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Google Apps Script(GAS)\u3067\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u3092\u4f7f\u3063\u305f\u5404\u7a2e\u64cd\u4f5c\u65b9\u6cd5\u3092\u307e\u3068\u3081\u307e\u3057\u305f\u3002 \u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u6295\u7a3f\u3055\u308c\u305f\u30e1\u30c3\u30bb\u30fc\u30b8\u3084\u30d5\u30a1\u30a4\u30eb\u3001\u30bf\u30b9\u30af\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u304b\u3089\u3001API\u7d4c\u7531\u3067\u5404\u7a2e\u6295\u7a3f\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":6556,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,2],"tags":[14,1058,1056,350,1063,1057,1062],"class_list":["post-6547","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-api","category-gas","tag-gas","tag-1058","tag-api","tag-350","tag-1063","tag-1057","tag-1062"],"_links":{"self":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6547","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6547"}],"version-history":[{"count":7,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6547\/revisions"}],"predecessor-version":[{"id":6563,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6547\/revisions\/6563"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/media\/6556"}],"wp:attachment":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6547"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6547"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6547"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}