{"id":3598,"date":"2021-06-30T21:47:31","date_gmt":"2021-06-30T12:47:31","guid":{"rendered":"https:\/\/auto-worker.com\/blog\/?p=3598"},"modified":"2021-06-30T21:47:31","modified_gmt":"2021-06-30T12:47:31","slug":"post-3598","status":"publish","type":"post","link":"https:\/\/auto-worker.com\/blog\/?p=3598","title":{"rendered":"SlackAPI\u3067\u30e6\u30fc\u30b6\u30fc\u30b0\u30eb\u30fc\u30d7ID\u3092\u53d6\u5f97\u3057\u78ba\u8a8d\u3059\u308b\u65b9\u6cd5(GAS\u30b5\u30f3\u30d7\u30eb\u4ed8)"},"content":{"rendered":"<p>Slack\u306e\u30dc\u30c3\u30c8\u3092\u958b\u767a\u3057\u3066\u3044\u308b\u3068\u3001\u30c1\u30e3\u30f3\u30cd\u30ebID\u306e\u4ed6\u306b\u6709\u6599\u7248\u3067\u5229\u7528\u53ef\u80fd\u306a\u30e6\u30fc\u30b6\u30fc\u30b0\u30eb\u30fc\u30d7\u306eID\u3092\u78ba\u8a8d\u3057\u305f\u3044\u30b1\u30fc\u30b9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001SlackAPI\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u30e6\u30fc\u30b6\u30fc\u30b0\u30eb\u30fc\u30d7ID\u306e\u53d6\u5f97\u65b9\u6cd5\u3092Google Apps Script(GAS)\u306e\u30b5\u30f3\u30d7\u30eb\u3092\u4f7f\u3063\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<h2>\u30c1\u30e3\u30c3\u30c8\u30c4\u30fc\u30ebSlack\u306fAPI\u306b\u3088\u308b\u30dc\u30c3\u30c8\u958b\u767a\u304c\u76db\u3093<\/h2>\n<p>\u30c6\u30ad\u30b9\u30c8\u30c1\u30e3\u30c3\u30c8\u30c4\u30fc\u30eb\u3068\u3057\u3066\u6709\u540d\u306aSlack\u306b\u306f\u3001\u30a8\u30f3\u30b8\u30cb\u30a2\u3092\u4e2d\u5fc3\u306b\u4eba\u6c17\u3092\u96c6\u3081\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>Slack\u306e\u7279\u5fb4\u3068\u3057\u3066\u3001\u4ed6\u306e\u30c1\u30e3\u30c3\u30c8\u30c4\u30fc\u30eb\u306b\u6bd4\u3079\u3066API\u304c\u5145\u5b9f\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3046\u3057\u305fSlackAPI\u3092\u6d3b\u7528\u3057\u3001\u69d8\u3005\u306a\u30dc\u30c3\u30c8\u3092\u958b\u767a\u3057\u305f\u308a\u3059\u308b\u306a\u3069\u3001Slack\u30a2\u30d7\u30ea\u306e\u958b\u767a\u304c\u76db\u3093\u306b\u884c\u308f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u30b5\u30fc\u30d0\u30fc\u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092Slack\u306b\u901a\u77e5\u3057\u305f\u308a\u3001\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u3055\u308c\u305f\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0\u3057\u305f\u7d50\u679c\u3092Slack\u306b\u6295\u7a3f\u3057\u305f\u308a\u306a\u3069\u3067\u3059\u3002<\/p>\n<p>Slack\u304c\u30c6\u30ad\u30b9\u30c8\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4e2d\u5fc3\u3068\u306a\u3063\u3066\u3044\u308b\u3068\u3001Slack\u306b\u8272\u3005\u306a\u60c5\u5831\u3092\u96c6\u3081\u308b\u3053\u3068\u304c\u52b9\u7387\u7684\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u5404\u8077\u5834\u306e\u696d\u52d9\u306b\u5fdc\u3058\u3001SlackAPI\u3092\u6d3b\u7528\u3057\u3066\u3001\u30dc\u30c3\u30c8\u958b\u767a\u3059\u308b\u4eba\u305f\u3061\u3082\u591a\u6570\u5b58\u5728\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u30e6\u30fc\u30b6\u30fc\u3092\u675f\u306d\u308b\u30e6\u30fc\u30b6\u30fc\u30b0\u30eb\u30fc\u30d7(\u6709\u6599\u7248Slack\u306e\u307f)<\/h2>\n<p>\u7121\u6599\u7248\u306eSlack\u306b\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u6709\u6599\u7248\u306b\u306f\u300c\u30e6\u30fc\u30b6\u30fc\u30b0\u30eb\u30fc\u30d7\u300d\u6a5f\u80fd\u304c\u642d\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30e6\u30fc\u30b6\u30fc\u30b0\u30eb\u30fc\u30d7\u3068\u3044\u3046\u306e\u306f\u540d\u524d\u306e\u901a\u308a\u3001Slack\u30e6\u30fc\u30b6\u30fc\u306e\u30b0\u30eb\u30fc\u30d7\u3092\u8868\u3057\u305f\u3082\u306e\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3746\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/06\/20210630_auto_002.jpg\" alt=\"\u6709\u6599\u7248Slack\u3067\u5229\u7528\u53ef\u80fd\u306aSlack\u306e\u30e6\u30fc\u30b6\u30fc\u3092\u675f\u306d\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u30e6\u30fc\u30b6\u30fc\u30b0\u30eb\u30fc\u30d7ID\u3092\" width=\"800\" height=\"441\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/06\/20210630_auto_002.jpg 800w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/06\/20210630_auto_002-300x165.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/06\/20210630_auto_002-768x423.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/06\/20210630_auto_002-530x292.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/06\/20210630_auto_002-565x311.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/06\/20210630_auto_002-710x391.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/06\/20210630_auto_002-725x400.jpg 725w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>\u30e1\u30fc\u30eb\u3067\u8a00\u3046\u3068\u3053\u308d\u306e\u3001\u90e8\u7f72\u3084\u30c1\u30fc\u30e0\u7528\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u30b0\u30eb\u30fc\u30d7(\u30c1\u30fc\u30e0\u7528\u30e1\u30fc\u30ea\u30f3\u30b0\u30ea\u30b9\u30c8)\u306b\u76f8\u5f53\u3057\u307e\u3059\u3002<\/p>\n<p>\u30e1\u30ea\u30c3\u30c8\u3068\u3057\u3066\u306f\u30e6\u30fc\u30b6\u30fc\u30b0\u30eb\u30fc\u30d7\u5b9b\u306b\u30e1\u30f3\u30b7\u30e7\u30f3\u4ed8\u304d\u306eSlack\u30c1\u30e3\u30f3\u30cd\u30eb\u4e0a\u3067\u6295\u7a3f\u3059\u308b\u3068\u3001\u30e6\u30fc\u30b6\u30fc\u30b0\u30eb\u30fc\u30d7\u306b\u542b\u307e\u308c\u308b\u500b\u3005\u306e\u30e6\u30fc\u30b6\u30fc\u306b\u901a\u77e5\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u500b\u4eba\u30e6\u30fc\u30b6\u30fc\u306e\u5834\u5408\u306f\u3001\u7570\u52d5\u304c\u767a\u751f\u3059\u308b\u3068\u62c5\u5f53\u304c\u5909\u308f\u308a\u3001\u5b9b\u5148\u3092\u5909\u66f4\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u30e6\u30fc\u30b6\u30fc\u30b0\u30eb\u30fc\u30d7\u306f\u7570\u52d5\u304c\u3042\u3063\u3066\u3082\u6240\u5c5e\u30e6\u30fc\u30b6\u30fc\u3092\u4fee\u6b63\u3059\u308c\u3070\u3088\u304f\u3001\u5b9b\u5148\u306f\u305d\u306e\u307e\u307e\u3067\u3059\u3002<\/p>\n<p>\u3053\u3046\u3057\u305f\u70b9\u3067\u306e\u5229\u4fbf\u6027\u304b\u3089\u3001\u6709\u6599\u7248Slack\u3092\u4f7f\u3063\u3066\u3044\u308b\u4f1a\u793e\u3084\u7d44\u7e54\u3067\u306f\u30e6\u30fc\u30b6\u30fc\u30b0\u30eb\u30fc\u30d7\u3092\u6d3b\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u30e6\u30fc\u30b6\u30fc\u30b0\u30eb\u30fc\u30d7\u306eID\u306f\u30a6\u30a7\u30d6\u3084\u30a2\u30d7\u30ea\u4e0a\u3067\u78ba\u8a8d\u4e0d\u53ef<\/h2>\n<p>\u524d\u8ff0\u3057\u305fSlack API\u3092\u5229\u7528\u3057\u305f\u30dc\u30c3\u30c8\u958b\u767a\u3067\u306f\u3001\u6709\u6599\u7248Slack\u3060\u3068\u3001\u30e6\u30fc\u30b6\u30fc\u30b0\u30eb\u30fc\u30d7\u5b9b\u306b\u30e1\u30f3\u30b7\u30e7\u30f3\u3092\u9001\u308b\u30dc\u30c3\u30c8\u3092\u4f5c\u6210\u3057\u305f\u3044\u30b1\u30fc\u30b9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u30e6\u30fc\u30b6\u30fc\u30b0\u30eb\u30fc\u30d7\u306fSlack\u306e\u30a6\u30a7\u30d6\u7ba1\u7406\u753b\u9762\u3084\u30a2\u30d7\u30ea\u4e0a\u3067\u3082\u3001ID\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>Slack\u3067\u306f\u30e6\u30fc\u30b6\u30fc\u306eID\u3084\u30c1\u30e3\u30f3\u30cd\u30eb\u306eID\u306f\u30a6\u30a7\u30d6\uff06\u30a2\u30d7\u30ea\u3067\u78ba\u8a8d\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"lR2QkdFjmS\"><p><a href=\"https:\/\/auto-worker.com\/blog\/?p=27\">Slack\u30ef\u30fc\u30af\u30b9\u30da\u30fc\u30b9\u306b\u5c5e\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u306e\u30e1\u30f3\u30d0\u30fcID\u3092\u8abf\u3079\u308b\u65b9\u6cd5\u30fb\u624b\u9806\u3092\u89e3\u8aac<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Slack\u30ef\u30fc\u30af\u30b9\u30da\u30fc\u30b9\u306b\u5c5e\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u306e\u30e1\u30f3\u30d0\u30fcID\u3092\u8abf\u3079\u308b\u65b9\u6cd5\u30fb\u624b\u9806\u3092\u89e3\u8aac&#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=27&#038;embed=true#?secret=TtDbWeAnVI#?secret=lR2QkdFjmS\" data-secret=\"lR2QkdFjmS\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"jt0wIuflH1\"><p><a href=\"https:\/\/auto-worker.com\/blog\/?p=132\">Slack\u306e\u30c1\u30e3\u30f3\u30cd\u30ebID\u3092\u8abf\u3079\u308b\u65b9\u6cd5(Web\u30d6\u30e9\u30a6\u30b6\u3068\u30a2\u30d7\u30ea\u3067\u78ba\u8a8d)<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Slack\u306e\u30c1\u30e3\u30f3\u30cd\u30ebID\u3092\u8abf\u3079\u308b\u65b9\u6cd5(Web\u30d6\u30e9\u30a6\u30b6\u3068\u30a2\u30d7\u30ea\u3067\u78ba\u8a8d)&#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=132&#038;embed=true#?secret=ai7p5frMBl#?secret=jt0wIuflH1\" data-secret=\"jt0wIuflH1\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>\u3057\u304b\u3057\u3001\u30e6\u30fc\u30b6\u30fc\u30b0\u30eb\u30fc\u30d7\u306eID\u306f\u3001\u4e0a\u8a18\u3067\u63d0\u793a\u3057\u305f\u30e6\u30fc\u30b6\u30fcID\u3084\u30c1\u30e3\u30f3\u30cd\u30ebID\u306e\u8abf\u3079\u65b9\u3092\u3057\u3066\u3082\u8868\u793a\u3055\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u5b9f\u306f\u6709\u6599\u7248Slack\u3067\u5229\u7528\u53ef\u80fd\u306a\u30e6\u30fc\u30b6\u30fc\u30b0\u30eb\u30fc\u30d7\u306f\u3001\u30a6\u30a7\u30d6\u3084\u30a2\u30d7\u30ea\u753b\u9762\u3067\u78ba\u8a8d\u3067\u304d\u306a\u3044\u4ed5\u69d8\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>Slack API\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u306e\u307f\u30e6\u30fc\u30b6\u30fc\u30b0\u30eb\u30fc\u30d7ID\u304c\u53d6\u5f97\u53ef\u80fd<\/h2>\n<p>\u3067\u306f\u3001Slack\u306e\u30e6\u30fc\u30b6\u30fc\u30b0\u30eb\u30fc\u30d7ID\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u3044\u306e\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u5b9f\u306fSlack\u306e\u30e6\u30fc\u30b6\u30fc\u30b0\u30eb\u30fc\u30d7ID\u306f\u3001Slack API\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3059\u308b\u3053\u3068\u3067\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>Slack API\u3067\u306f\u300chttps:\/\/slack.com\/api\/usergroups.list\u300d\u3068\u3044\u3046API\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u30e6\u30fc\u30b6\u30fc\u30b0\u30eb\u30fc\u30d7ID\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001\u30e6\u30fc\u30b6\u30fc\u30b0\u30eb\u30fc\u30d7\u306e\u8aad\u307f\u53d6\u308a\u306b\u306f\u30dc\u30c3\u30c8\u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3(\u6a29\u9650)\u3092\u4e8b\u524d\u306b\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>Slack API\u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u753b\u9762\u3067\u300cusergroups:read\u300d\u306e\u6a29\u9650\u3092\u8ffd\u52a0\u3057\u306a\u3044\u3068\u3001API\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u30a8\u30e9\u30fc\u3059\u308b\u306e\u3067\u6ce8\u610f\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u30e6\u30fc\u30b6\u30fc\u30b0\u30eb\u30fc\u30d7ID\u3092\u53d6\u5f97\u3059\u308b\u306b\u306fSlack API\u306b\u3088\u308b\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u307f\u304c\u6709\u52b9\u306a\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n<h2>GAS\u306b\u3088\u308bSlackAPI\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u30e6\u30fc\u30b6\u30fc\u30b0\u30eb\u30fc\u30d7ID\u78ba\u8a8d<\/h2>\n<p>Google Apps Script(GAS)\u3067SlackAPI\u306e\u300chttps:\/\/slack.com\/api\/usergroups.list\u300d\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u3066\u3001\u30e6\u30fc\u30b6\u30fc\u30b0\u30eb\u30fc\u30d7ID\u3092\u78ba\u8a8d\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>GAS\u306fGoogle\u304c\u63d0\u4f9b\u3059\u308bJavascript\u30e9\u30a4\u30af\u306a\u30b9\u30af\u30ea\u30d7\u30c8\u30b5\u30fc\u30d3\u30b9\u3067\u3059\u3002<\/p>\n<p>\u30b5\u30fc\u30d0\u30ec\u30b9\u3067\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u5b9f\u884c\u3084\u30c8\u30ea\u30ac\u30fc\u5b9f\u884c\u306a\u3069\u304c\u7121\u6599\u3067\u5229\u7528\u3067\u304d\u3001\u304a\u624b\u8efd\u306b\u4f7f\u3048\u3066\u3068\u3066\u3082\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u524d\u306b\u3001\u5f53\u8a72\u306eSlack\u30ef\u30fc\u30af\u30b9\u30da\u30fc\u30b9\u3067\u52d5\u4f5c\u3059\u308bSlackAPI\u306e\u30c8\u30fc\u30af\u30f3\u3092\u767a\u884c\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>GAS\u3067Slack API\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u3001\u30e6\u30fc\u30b6\u30fc\u30b0\u30eb\u30fc\u30d7ID\u3092\u30ed\u30b0\u51fa\u529b\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3745\" src=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/06\/20210630_auto_001.jpg\" alt=\"Google Apps Script(GAS)\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3067Slack\u306eAPI\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u3001\u30e6\u30fc\u30b6\u30fc\u30b0\u30eb\u30fc\u30d7ID\u3092\u30ed\u30b0\u51fa\u529b\u3057\u3066\u78ba\u8a8d\u3059\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\" width=\"1200\" height=\"614\" srcset=\"https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/06\/20210630_auto_001.jpg 1200w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/06\/20210630_auto_001-300x154.jpg 300w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/06\/20210630_auto_001-768x393.jpg 768w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/06\/20210630_auto_001-1024x524.jpg 1024w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/06\/20210630_auto_001-530x271.jpg 530w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/06\/20210630_auto_001-565x289.jpg 565w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/06\/20210630_auto_001-710x363.jpg 710w, https:\/\/auto-worker.com\/blog\/wp-content\/uploads\/2021\/06\/20210630_auto_001-725x371.jpg 725w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p><code>function getSlackUserList() {<br \/>\n\/\/SlackAPI\u306etoken\u3092\u8a2d\u5b9a<br \/>\nlet slack_taken = \"************************\";<br \/>\n\/\/usergroup\u306e\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308bAPI\u30ea\u30af\u30a8\u30b9\u30c8URL\u3092\u8a2d\u5b9a<br \/>\nlet url = \"https:\/\/slack.com\/api\/usergroups.list\";<br \/>\n\/\/API\u30ea\u30af\u30a8\u30b9\u30c8\u306ePOST\u3067\u5fc5\u9808\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3092JSON\u5f62\u5f0f\u3067\u6307\u5b9a<br \/>\nlet json = {<br \/>\n'token' : slack_taken<br \/>\n};<br \/>\n\/\/HTTP POST\u3092\u884c\u3046\u305f\u3081\u306e\u30e1\u30bd\u30c3\u30c9\u3068\u3001\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u8a2d\u5b9a<br \/>\nlet options = {<br \/>\n'method' : 'post',<br \/>\n'payload' : json<br \/>\n};<br \/>\n\/\/URL\u30d5\u30a7\u30c3\u30c1\u3092\u5b9f\u884c\u3057\u3001\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u3001\u30ed\u30b0\u51fa\u529b<br \/>\nlet response = UrlFetchApp.fetch(url,options).getContentText();<br \/>\nconsole.log(response);<br \/>\n}<\/code><\/p>\n<p>\u5b9f\u884c\u3059\u308b\u3068\u3001JSON\u5f62\u5f0f\u3067\u30e6\u30fc\u30b6\u30fc\u30b0\u30eb\u30fc\u30d7\u306e\u60c5\u5831\u3092\u53d6\u5f97\u3067\u304d\u3001\u305d\u306e\u4e2d\u306b\u30e6\u30fc\u30b6\u30fc\u30b0\u30eb\u30fc\u30d7ID\u304c\u683c\u7d0d\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<blockquote><p>{<br \/>\n&#8220;ok&#8221;: true,<br \/>\n&#8220;usergroups&#8221;: [<br \/>\n{<br \/>\n<span style=\"color: #ff0000;\"><strong>&#8220;id&#8221;: &#8220;S01T5*******&#8221;<\/strong><\/span>,<br \/>\n&#8220;team_id&#8221;: &#8220;\u30c1\u30fc\u30e0ID&#8221;,<br \/>\n},<br \/>\n{<br \/>\n<span style=\"color: #ff0000;\"><strong>&#8220;id&#8221;: &#8220;S01TU*******&#8221;,<\/strong><\/span><br \/>\n&#8220;team_id&#8221;: &#8220;\u30c1\u30fc\u30e0ID&#8221;,<br \/>\n},<br \/>\n&#8220;user_count&#8221;: 0,<br \/>\n&#8220;channel_count&#8221;: 0<br \/>\n}<br \/>\n]<br \/>\n}<\/p><\/blockquote>\n<p>\u203b\u4e0a\u8a18\u306eJSON\u306e\u8d64\u6587\u5b57\u90e8\u5206\u3002\u4e00\u90e8\u60c5\u5831\u3092\u5272\u611b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081\u30fb\u7d42\u308f\u308a\u306b<\/h2>\n<p>\u4eca\u56de\u3001Slack API\u3092\u5229\u7528\u3057\u3066\u3001\u6709\u6599\u7248Slack\u306e\u6a5f\u80fd\u3067\u3042\u308b\u30e6\u30fc\u30b6\u30fc\u30b0\u30eb\u30fc\u30d7\u306eID\u3092\u53d6\u5f97\u30fb\u78ba\u8a8d\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u30e6\u30fc\u30b6\u30fc\u30b0\u30eb\u30fc\u30d7\u306f\u6709\u6599\u7248Slack\u306e\u307f\u306e\u6a5f\u80fd\u306e\u305f\u3081\u3001\u5229\u7528\u3057\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u306f\u5c11\u306a\u3044\u3067\u3059\u304c\u3001\u30e1\u30fc\u30eb\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u30b0\u30eb\u30fc\u30d7\u306e\u3088\u3046\u306bSlack\u4e0a\u3067\u7ba1\u7406\u3067\u304d\u3066\u4fbf\u5229\u3067\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u6709\u6599\u7248Slack\u306e\u5229\u7528\u30e6\u30fc\u30b6\u30fc\u306e\u307f\u3057\u304b\u4f7f\u308f\u306a\u3044\u306e\u3067\u3001\u30cd\u30c3\u30c8\u4e0a\u3067\u306e\u60c5\u5831\u304c\u5c11\u306a\u3044\u72b6\u614b\u3067\u3057\u305f\u3002<\/p>\n<p>Slack\u306e\u30dc\u30c3\u30c8\u3067\u30e6\u30fc\u30b6\u30fc\u30b0\u30eb\u30fc\u30d7\u3092\u6d3b\u7528\u3059\u308b\u305f\u3081\u306b\u3001\u30e6\u30fc\u30b6\u30fc\u30b0\u30eb\u30fc\u30d7ID\u3092\u53d6\u5f97\u3059\u308bSlackAPI\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u65b9\u6cd5\u3092Google Apps Script(GAS)\u306e\u30b5\u30f3\u30d7\u30eb\u4ed8\u304d\u3067\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>GAS\u306a\u3089\u7121\u6599\u3067\u5229\u7528\u3067\u304d\u308b\u306e\u3067\u3001API\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3059\u308b\u306e\u306b\u3082\u6c17\u8efd\u306b\u5229\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u305c\u3072\u3001\u6709\u6599\u7248Slack\u306e\u30e6\u30fc\u30b6\u30fc\u30b0\u30eb\u30fc\u30d7\u306eID\u3092\u77e5\u308a\u305f\u3044\u5834\u5408\u306f\u3001\u4eca\u56de\u7d39\u4ecb\u3057\u305f\u65b9\u6cd5\u3092\u8a66\u3057\u3066\u307f\u3066\u4e0b\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Slack\u306e\u30dc\u30c3\u30c8\u3092\u958b\u767a\u3057\u3066\u3044\u308b\u3068\u3001\u30c1\u30e3\u30f3\u30cd\u30ebID\u306e\u4ed6\u306b\u6709\u6599\u7248\u3067\u5229\u7528\u53ef\u80fd\u306a\u30e6\u30fc\u30b6\u30fc\u30b0\u30eb\u30fc\u30d7\u306eID\u3092\u78ba\u8a8d\u3057\u305f\u3044\u30b1\u30fc\u30b9\u304c\u3042\u308a\u307e\u3059\u3002 \u305d\u3053\u3067\u3001SlackAPI\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u30e6\u30fc\u30b6\u30fc\u30b0\u30eb\u30fc\u30d7ID\u306e\u53d6\u5f97\u65b9\u6cd5\u3092Google Apps  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3745,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,2],"tags":[14,266,670],"class_list":["post-3598","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-api","category-gas","tag-gas","tag-slackapi","tag-id"],"_links":{"self":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3598","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=3598"}],"version-history":[{"count":4,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3598\/revisions"}],"predecessor-version":[{"id":3747,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3598\/revisions\/3747"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=\/wp\/v2\/media\/3745"}],"wp:attachment":[{"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3598"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3598"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/auto-worker.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3598"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}