{"id":6523,"date":"2022-10-09T23:58:46","date_gmt":"2022-10-09T14:58:46","guid":{"rendered":"https:\/\/auto-worker.com\/blog\/?p=6523"},"modified":"2022-10-09T23:59:20","modified_gmt":"2022-10-09T14:59:20","slug":"post-6523","status":"publish","type":"post","link":"https:\/\/auto-worker.com\/blog\/?p=6523","title":{"rendered":"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)"},"content":{"rendered":"\n<p>Google Apps Script(GAS)\u306b\u306f\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u3092\u7c21\u5358\u306b\u64cd\u4f5c\u3067\u304d\u308bChatWorkClient\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>GAS\u306eChatWorkClient\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u7528\u3057\u3066\u3001\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u7d4c\u7531\u3067\u30bf\u30b9\u30af\u3092\u53d6\u5f97\u3057\u305f\u308a\u3001\u8ffd\u52a0\u3057\u305f\u308a\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u306fAPI\u7d4c\u7531\u3067\u5404\u7a2e\u64cd\u4f5c\u53ef\u80fd<\/h2>\n\n\n\n<p>\u30c1\u30e3\u30c3\u30c8\u30c4\u30fc\u30eb\u306e\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u306fChatworkAPI\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u3092\u4f7f\u3048\u3070\u3001\u30c1\u30e3\u30c3\u30c8\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u6295\u7a3f\u3084\u53d6\u5f97\u304cAPI\u7d4c\u7531\u3067\u5b9f\u884c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u6c7a\u307e\u3063\u305f\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u6295\u7a3f\u3059\u308b\u30dc\u30c3\u30c8\u306a\u3069\u3092\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u3092\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3057\u3066\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u306f\u30bf\u30b9\u30af\u6a5f\u80fd\u3082<\/h2>\n\n\n\n<p>\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u306f\u57fa\u672c\u7684\u306b\u8272\u3005\u306a\u30e6\u30fc\u30b6\u30fc\u3068\u306e\u3084\u308a\u53d6\u308a\u3092\u884c\u3046\u30c1\u30e3\u30c3\u30c8\u30c4\u30fc\u30eb\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u6295\u7a3f\u6a5f\u80fd\u306b\u52a0\u3048\u3066\u3001\u30bf\u30b9\u30af\u6a5f\u80fd\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30b0\u30eb\u30fc\u30d7\u30c1\u30e3\u30c3\u30c8\u306a\u3069\u3067\u30bf\u30b9\u30af\u3092\u8ffd\u52a0\u3057\u3066\u3001\u62c5\u5f53\u8005\u3084\u671f\u9650\u3001\u5b9f\u65bd\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u8a2d\u5b9a\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3055\u3089\u306b\u30c1\u30e3\u30c3\u30c8\u306b\u6295\u7a3f\u3055\u308c\u305f\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u30bf\u30b9\u30af\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30c1\u30e3\u30c3\u30c8\u3067\u3084\u308a\u53d6\u308a\u3057\u305f\u5185\u5bb9\u304c\u305d\u306e\u307e\u307e\u30bf\u30b9\u30af\u3068\u3057\u3066\u767b\u9332\u3057\u3001Todo\u7ba1\u7406\u304c\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u3067\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30bf\u30b9\u30af\u64cd\u4f5c\u3082\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u3067<\/h2>\n\n\n\n<p>\u524d\u8ff0\u3057\u305f\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u3067\u306f\u30bf\u30b9\u30af\u64cd\u4f5c\u3082\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u30c1\u30e3\u30c3\u30c8\u753b\u9762\u3067\u5b9f\u884c\u3059\u308b\u30bf\u30b9\u30af\u767b\u9332\u3084\u81ea\u5206\u306e\u30bf\u30b9\u30af\u306e\u53d6\u5f97\u3001\u7279\u5b9a\u30c1\u30e3\u30c3\u30c8\u3067\u767b\u9332\u3055\u308c\u305f\u30bf\u30b9\u30af\u53d6\u5f97\u304c\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u7d4c\u7531\u3067\u64cd\u4f5c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u3092\u4f7f\u3048\u3070\u3001\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u30bf\u30b9\u30af\u4e00\u89a7\u306e\u51fa\u529b\u3084\u3001\u30ea\u30de\u30a4\u30f3\u30c9\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">GAS\u306eChatWorkClient\u3067\u30bf\u30b9\u30af\u64cd\u4f5c\u53ef\u80fd<\/h2>\n\n\n\n<p>Google Apps Script(GAS)\u306b\u306f\u3001\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u3092\u7c21\u5358\u306b\u64cd\u4f5c\u3067\u304d\u308bChatWorkClient\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>ChatWorkClient\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u3001\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3067\u5b9f\u884c\u53ef\u80fd\u306a\u3059\u3079\u3066\u306e\u64cd\u4f5c\u306b\u306f\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u3057\u304b\u3057\u3001\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u30bf\u30b9\u30af\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u3084\u30bf\u30b9\u30af\u3092\u767b\u9332\u30fb\u8ffd\u52a0\u306f\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p>ChatWorkClient\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3067\u304d\u308b\u30bf\u30b9\u30af\u64cd\u4f5c\u3068\u3057\u3066\u306f\u3001\u4ee5\u4e0b\u306e3\u3064\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>\u81ea\u5206\u304c\u62c5\u5f53\u8005\u306e\u30bf\u30b9\u30af\u3092\u53d6\u5f97(getMyTasks)<\/li><li>\u7279\u5b9a\u30c1\u30e3\u30c3\u30c8\u306e\u30bf\u30b9\u30af\u3092\u53d6\u5f97(getRoomTasks)<\/li><li>\u7279\u5b9a\u30c1\u30e3\u30c3\u30c8\u3067\u30bf\u30b9\u30af\u3092\u767b\u9332\u8ffd\u52a0(sendTask)<\/li><\/ol>\n\n\n\n<p>\u305d\u308c\u305e\u308c\u306e\u30bf\u30b9\u30af\u64cd\u4f5c\u65b9\u6cd5\u306b\u3064\u3044\u3066GAS\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u4f7f\u3063\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u81ea\u5206\u304c\u62c5\u5f53\u306e\u30bf\u30b9\u30af\u53d6\u5f97(getMyTasks)<\/h2>\n\n\n\n<p>\uff11\u3064\u76ee\u306f\u81ea\u5206\u304c\u62c5\u5f53\u8005\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u30bf\u30b9\u30af\u3092\u53d6\u5f97\u3059\u308bGoogle Apps Script(GAS)\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\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\/20221009_auto_001-1024x524.jpg\" alt=\"Google Apps Script(GAS)\u3067\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u3067\u81ea\u5206\u304c\u62c5\u5f53\u8005\u306e\u30bf\u30b9\u30af\u3092\u53d6\u5f97\u3059\u308b\u3001\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI(ChatworkClient\u30e9\u30a4\u30d6\u30e9\u30ea)\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" class=\"wp-image-6525\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_001-1024x524.jpg 1024w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_001-300x154.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_001-768x393.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_001-530x271.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_001-565x289.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_001-710x363.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_001-725x371.jpg 725w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_001.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 getChatworkMyTasks() {\n  \/\/Chatwork API Token\u3092\u5b9a\u6570\u3068\u3057\u3066\u5b9a\u7fa9\n  const token = '********************************';\n  \/\/ ChatworkAPI\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u4f5c\u6210\n  const client = ChatWorkClient.factory({token: token});  \n  \/\/\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u304b\u3089\u81ea\u5206\u306e\u30bf\u30b9\u30af\u3092\u53d6\u5f97\n  const myTasks = client.getMyTasks();\n  \/\/\u53d6\u5f97\u3057\u305f\u81ea\u5206\u306e\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u30bf\u30b9\u30af\u3092\u30ed\u30b0\u51fa\u529b\n  console.log(myTasks);\n}<\/code><\/pre>\n\n\n\n<p>\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u3092\u4f7f\u3046\u305f\u3081\u3001API\u30c8\u30fc\u30af\u30f3\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u81ea\u5206\u306e\u30bf\u30b9\u30af\u3092\u53d6\u5f97\u3059\u308b\u3060\u3051\u306a\u306e\u3067\u3001getMyTasks\u30e1\u30bd\u30c3\u30c9\u3067\u306f\u30eb\u30fc\u30e0ID\u306a\u3069\u306e\u6307\u5b9a\u306f\u5fc5\u8981\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u53d6\u5f97\u3057\u305f\u30bf\u30b9\u30af\u306f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5f62\u5f0f\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u305d\u306e\u307e\u307econsole.log\u3067\u30ed\u30b0\u51fa\u529b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"403\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_002.jpg\" alt=\"Google Apps Script(GAS)\u3067\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u3067\u81ea\u5206\u304c\u62c5\u5f53\u8005\u306e\u30bf\u30b9\u30af\u3092\u53d6\u5f97\u3059\u308b\u3001\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI(ChatworkClient\u30e9\u30a4\u30d6\u30e9\u30ea)\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u3001\u30ed\u30b0\u51fa\u529b\u3057\u305f\u7d50\u679c\" class=\"wp-image-6526\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_002.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_002-300x151.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_002-768x387.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_002-530x267.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_002-565x285.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_002-710x358.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_002-725x365.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-luxe-blocks-syntaxhighlighter line-numbers language-javascript\"><code class=\"language-javascript\">function getChatworkRoomTasks() {\n  \/\/Chatwork API Token\u3092\u5b9a\u6570\u3068\u3057\u3066\u5b9a\u7fa9\n  const token = 'function getChatworkRoomTasks() {\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\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u4f5c\u6210\n  const client = ChatWorkClient.factory({token: token});  \n  \/\/\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u304b\u3089\u81ea\u5206\u306e\u30bf\u30b9\u30af\u3092\u53d6\u5f97\n  const tasks = client.getRoomTasks(room_id);\n  \/\/\u53d6\u5f97\u3057\u305f\u81ea\u5206\u306e\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u30bf\u30b9\u30af\u3092\u30ed\u30b0\u51fa\u529b\n  console.log(tasks);\n}';\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 ='294543902';\n  \/\/ ChatworkAPI\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u4f5c\u6210\n  const client = ChatWorkClient.factory({token: token});  \n  \/\/\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u304b\u3089\u81ea\u5206\u306e\u30bf\u30b9\u30af\u3092\u53d6\u5f97\n  const tasks = client.getRoomTasks(room_id);\n  \/\/\u53d6\u5f97\u3057\u305f\u81ea\u5206\u306e\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u30bf\u30b9\u30af\u3092\u30ed\u30b0\u51fa\u529b\n  console.log(tasks);\n}<\/code><\/pre>\n\n\n\n<p>\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u81ea\u5206\u306e\u30bf\u30b9\u30af\u3092\u53d6\u5f97\u3059\u308bGAS\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u81ea\u5206\u306e\u30bf\u30b9\u30af\u306e\u5404\u7a2e\u60c5\u5831\u3092\u53c2\u7167\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u203b\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI(ChatWorkClient)\u3067\u53d6\u5f97\u3057\u305f\u30bf\u30b9\u30af\u306e\u671f\u9650\u65e5\u306fUNIX\u6642\u9593\u306e\u305f\u3081\u3001\u901a\u5e38\u306e\u6642\u9593\u306b\u5909\u63db\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u7279\u5b9a\u30eb\u30fc\u30e0\u306e\u30bf\u30b9\u30af\u3092\u53d6\u5f97(getRoomTasks)<\/h2>\n\n\n\n<p>\uff12\u3064\u76ee\u306b\u7279\u5b9a\u306e\u30b0\u30eb\u30fc\u30d7\u30c1\u30e3\u30c3\u30c8\u3084\u500b\u4eba\u30c1\u30e3\u30c3\u30c8\u306e\u30eb\u30fc\u30e0\u3067\u767b\u9332\u3055\u308c\u305f\u30bf\u30b9\u30af\u3092\u53d6\u5f97\u3059\u308bGoogle Apps Script(GAS)\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"528\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_003-1024x528.jpg\" alt=\"Google Apps Script(GAS)\u3067\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u3067\u7279\u5b9a\u30eb\u30fc\u30e0\u306b\u767b\u9332\u3055\u308c\u305f\u30bf\u30b9\u30af\u3092\u53d6\u5f97\u3059\u308b\u3001\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI(ChatworkClient\u30e9\u30a4\u30d6\u30e9\u30ea)\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" class=\"wp-image-6527\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_003-1024x528.jpg 1024w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_003-300x155.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_003-768x396.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_003-530x273.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_003-565x291.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_003-710x366.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_003-725x374.jpg 725w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_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 setChatworkTask() {\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  \/\/\u30bf\u30b9\u30af\u767b\u9332\u3059\u308b\u30e6\u30fc\u30b6\u30fcID\u30ea\u30b9\u30c8\u3092\u914d\u5217\u3067\u5b9a\u7fa9\n  const userList = [2------, 7------];\n  let limit = new Date();\n  limit = (new Number(limit.getTime() \/ 1000)).toFixed();\n  \/\/ ChatworkAPI\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u4f5c\u6210\n  const client = ChatWorkClient.factory({token: token});  \n  \/\/\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u304b\u3089\u81ea\u5206\u306e\u30bf\u30b9\u30af\u306e\u5404\u7a2e\u8a2d\u5b9a\u3092\u5b9a\u7fa9\n  const taskdetail = {\n    body: 'GAS\u306b\u3088\u308b\u30bf\u30b9\u30af\u767b\u9332',\n    to_id_list: userList,\n    room_id: room_id,\n    limit: limit\n  };\n  \/\/\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u3066\u30bf\u30b9\u30af\u3092\u767b\u9332\n  client.sendTask(taskdetail);\n}<\/code><\/pre>\n\n\n\n<p>\u7279\u5b9a\u30eb\u30fc\u30e0\u306e\u30bf\u30b9\u30af\u306e\u307f\u53d6\u5f97\u3059\u308b\u305f\u3081\u306b\u30eb\u30fc\u30e0ID\u3092getRoomTasks\u30e1\u30bd\u30c3\u30c9\u306e\u5f15\u6570\u306b\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"411\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_004.jpg\" alt=\"Google Apps Script(GAS)\u3067\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u3067\u7279\u5b9a\u30eb\u30fc\u30e0\u306b\u767b\u9332\u3055\u308c\u305f\u30bf\u30b9\u30af\u3092\u53d6\u5f97\u3059\u308b\u3001\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI(ChatworkClient\u30e9\u30a4\u30d6\u30e9\u30ea)\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306e\u5b9f\u884c\u7d50\u679c\u3067\u4ed6\u306e\u30e6\u30fc\u30b6\u30fc\u306e\u30bf\u30b9\u30af\u3082\u53d6\u5f97\" class=\"wp-image-6528\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_004.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_004-300x154.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_004-768x395.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_004-530x272.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_004-565x290.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_004-710x365.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_004-725x372.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>\u81ea\u5206\u306e\u30bf\u30b9\u30af\u3092\u53d6\u5f97\u3059\u308bgetMyTasks\u30e1\u30bd\u30c3\u30c9\u3068\u7570\u306a\u308a\u3001\u4ed6\u306e\u30e6\u30fc\u30b6\u30fc\u306e\u30bf\u30b9\u30af\u3082\u53d6\u5f97\u3067\u304d\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u7279\u5b9a\u30c1\u30e3\u30c3\u30c8\u3067\u30bf\u30b9\u30af\u3092\u767b\u9332\u8ffd\u52a0(sendTask)<\/h2>\n\n\n\n<p>3\u3064\u76ee\u306fGoogle Apps Script(GAS)\u304b\u3089\u7279\u5b9a\u306e\u30eb\u30fc\u30e0\u306b\u30bf\u30b9\u30af\u3092\u767b\u9332\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"526\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_005-1024x526.jpg\" alt=\"Google Apps Script(GAS)\u3067\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI(ChatworkClient\u30e9\u30a4\u30d6\u30e9\u30ea)\u3092\u4f7f\u3063\u3066\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u3067\u7279\u5b9a\u30eb\u30fc\u30e0\u306b\u30bf\u30b9\u30af\u3092\u767b\u9332\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" class=\"wp-image-6529\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_005-1024x526.jpg 1024w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_005-300x154.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_005-768x394.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_005-530x272.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_005-565x290.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_005-710x364.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_005-725x372.jpg 725w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_005.jpg 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u30bf\u30b9\u30af\u306e\u767b\u9332\u306b\u3042\u305f\u3063\u3066\u306f\u307e\u305a\u3001\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u30c8\u30fc\u30af\u30f3\u3092\u7528\u610f\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30bf\u30b9\u30af\u767b\u9332\u306b\u5fc5\u8981\u3068\u306a\u308b\u767b\u9332\u5148\u30eb\u30fc\u30e0ID\u3001\u30bf\u30b9\u30af\u306e\u62c5\u5f53\u8005\u306e\u30e6\u30fc\u30b6\u30fc\u3001\u671f\u9650\u65e5\u3001\u305d\u3057\u3066\u30bf\u30b9\u30af\u540d\u3092\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u5f62\u5f0f\u3067ChatWorkClient\u30e9\u30a4\u30d6\u30e9\u30ea\u306esendTask\u30e1\u30bd\u30c3\u30c9\u306b\u5f15\u6570\u6307\u5b9a\u3057\u3066\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"538\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_006-1024x538.jpg\" alt=\"Google Apps Script(GAS)\u3067\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI(ChatworkClient\u30e9\u30a4\u30d6\u30e9\u30ea)\u3092\u4f7f\u3063\u3066\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u3067\u7279\u5b9a\u30eb\u30fc\u30e0\u306b\u30bf\u30b9\u30af\u3092\u767b\u9332\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u305f\u7d50\u679c\u3001\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u30c1\u30e3\u30c3\u30c8\u306b\u30bf\u30b9\u30af\u304c\u767b\u9332\" class=\"wp-image-6530\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_006-1024x538.jpg 1024w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_006-300x158.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_006-768x403.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_006-530x278.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_006-565x297.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_006-710x373.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_006-725x381.jpg 725w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2022\/10\/20221009_auto_006.jpg 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u3053\u306e\u3088\u3046\u306bGAS\u306eChatWorkClient\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u30bf\u30b9\u30af\u3092\u53d6\u5f97\u3057\u305f\u308a\u3001\u30bf\u30b9\u30af\u767b\u9332\u3082API\u7d4c\u7531\u3067\u7c21\u5358\u306b\u5b9f\u884c\u3067\u304d\u307e\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\u4f7f\u3063\u3066\u30bf\u30b9\u30af\u3092\u53d6\u5f97\u3057\u305f\u308a\u3001\u30bf\u30b9\u30af\u3092\u767b\u9332\u8ffd\u52a0\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>GAS\u306b\u306f\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u7528\u30e9\u30a4\u30d6\u30e9\u30ea\u300cChatWorkClient\u300d\u304c\u3042\u308a\u3001getMyTasks\u3084getRoomTasks\u3067\u30bf\u30b9\u30af\u3092\u53d6\u5f97\u3001sendTask\u3067\u30bf\u30b9\u30af\u8ffd\u52a0\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u671f\u9650\u5207\u308c\u30bf\u30b9\u30af\u306e\u30ea\u30de\u30a4\u30f3\u30c9\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u306a\u3069GAS\u3067\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u30bf\u30b9\u30af\u3092\u4f7f\u3063\u3066\u3044\u3066\u52b9\u7387\u5316\u3057\u305f\u3044\u5834\u5408\u306b\u3001\u7d39\u4ecb\u3057\u305fGAS\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u53c2\u8003\u306b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Google Apps Script(GAS)\u306b\u306f\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30afAPI\u3092\u7c21\u5358\u306b\u64cd\u4f5c\u3067\u304d\u308bChatWorkClient\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002 GAS\u306eChatWorkClient\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u7528\u3057\u3066\u3001\u30c1\u30e3\u30c3\u30c8\u30ef\u30fc\u30af [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":6529,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,2],"tags":[1054,14,1058,1060,1059],"class_list":["post-6523","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-api","category-gas","tag-chatworkclient","tag-gas","tag-1058","tag-1060","tag-1059"],"_links":{"self":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6523","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=6523"}],"version-history":[{"count":4,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6523\/revisions"}],"predecessor-version":[{"id":6533,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6523\/revisions\/6533"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/media\/6529"}],"wp:attachment":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6523"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6523"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6523"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}