{"id":4019,"date":"2023-11-10T20:43:32","date_gmt":"2023-11-10T11:43:32","guid":{"rendered":"https:\/\/blog.since2020.jp\/?p=4019"},"modified":"2023-11-10T20:45:03","modified_gmt":"2023-11-10T11:45:03","slug":"slackxpython%e7%b0%a1%e6%98%93%e7%89%88%ef%bc%9apython%e3%81%a7slack%e3%81%ab%e3%83%a1%e3%83%83%e3%82%bb%e3%83%bc%e3%82%b8%e9%80%81%e4%bf%a1%ef%bc%81","status":"publish","type":"post","link":"https:\/\/since2020.jp\/media\/slackxpython%e7%b0%a1%e6%98%93%e7%89%88%ef%bc%9apython%e3%81%a7slack%e3%81%ab%e3%83%a1%e3%83%83%e3%82%bb%e3%83%bc%e3%82%b8%e9%80%81%e4%bf%a1%ef%bc%81\/","title":{"rendered":"[Slack\u00d7Python]\u7c21\u6613\u7248\uff1aPython\u3067Slack\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u9001\u4fe1\uff01"},"content":{"rendered":"\n<p>Slack API\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u30d7\u30ed\u30bb\u30b9\u306e\u5b8c\u4e86\u3092\u30e1\u30c3\u30bb\u30fc\u30b8\u9001\u4fe1\u3092\u7528\u3044\u3066\u901a\u77e5\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002\r\n\r\n\u30c7\u30d7\u30ed\u30a4\u306a\u3069\u306e\u6642\u9593\u304c\u304b\u304b\u308b\u51e6\u7406\u306e\u5f85\u3061\u6642\u9593\u3092\u30d1\u30bd\u30b3\u30f3\u306e\u524d\u3067\u5f85\u6a5f\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u81ea\u7531\u6642\u9593\u3068\u3057\u3066\u4f7f\u3044\u307e\u3057\u3087\u3046\uff01\uff01<\/p>\n\n\n<h2>\u306f\u3058\u3081\u306b<\/h2>\n\u3053\u308c\u306fSlack\u306eAPI\u3092\u7528\u3044\u3066\u3001\u7c21\u6613\u7684\u306bSlack\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u9001\u4fe1\u3059\u308b\u305f\u3081\u306e\u4e00\u9023\u306e\u30d5\u30ed\u30fc\u3067\u3059\u3002\n\n<h2>\u306a\u305c\u3084\u308b\u306e\u304b<\/h2>\n\u6a5f\u68b0\u5b66\u7fd2\u3084\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c7\u30d7\u30ed\u30a4\u306f\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3084\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u304c\u5927\u898f\u6a21\u306b\u306a\u308c\u3070\u306a\u308b\u307b\u3069\u3001\u5b9f\u884c\u304b\u3089\u5b8c\u4e86\u307e\u3067\u6642\u9593\u304c\u304b\u304b\u308a\u307e\u3059\u3002\u5b9f\u969b\u3001\u6df1\u5c64\u5b66\u7fd2\u306a\u3069\u3001\u5b8c\u4e86\u307e\u3067\u306b\u6570\u6642\u9593\u304b\u304b\u308b\u306a\u3069\u30b6\u30e9\u3067\u3059\u3002\u305d\u3053\u3067\u3001Slack API\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u30d7\u30ed\u30bb\u30b9\u306e\u5b8c\u4e86\u3092\u30e1\u30c3\u30bb\u30fc\u30b8\u9001\u4fe1\u3092\u7528\u3044\u3066\u901a\u77e5\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002Slack API\u3092\u7528\u3044\u3066\u5c11\u3057\u3067\u3082\u30a8\u30f3\u30b8\u30cb\u30a2QOL\u3092\u5411\u4e0a\u3055\u305b\u307e\u3057\u3087\u3046\uff01\uff01\n\n<h2>\u624b\u9806<\/h2>\n<p><span style=\"font-family: arial, helvetica, sans-serif\">\u307e\u305a\u4e0b\u8a18\u306e\u30ea\u30f3\u30af\u306b\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<\/span><\/p>\r\n<p>[blogcard url=&#8221;https:\/\/api.slack.com\/&#8221;]<\/p>\r\n\r\n<strong>\u30da\u30fc\u30b8\u53f3\u4e0a\u306e[Your apps]\u3092\u30af\u30ea\u30c3\u30af<\/strong>\r\n\r\n<img decoding=\"async\" src=\"https:\/\/since2020.jp\/media\/wp-content\/uploads\/2023\/11\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-11-01-10.42.53.jpg\" alt=\"\" \/>\r\n\r\n<strong>\u753b\u9762\u771f\u3093\u4e2d\u306e[Create an App]\u3092\u30af\u30ea\u30c3\u30af\u5f8c<\/strong>\r\n\r\n<img decoding=\"async\" src=\"https:\/\/since2020.jp\/media\/wp-content\/uploads\/2023\/11\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-11-01-10.46.23.png\" alt=\"\" \/>\r\n\r\n<strong>[Form scratch]\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059<\/strong>\r\n\r\n<img decoding=\"async\" src=\"https:\/\/since2020.jp\/media\/wp-content\/uploads\/2023\/11\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-11-01-10.47.58.png\" alt=\"\" \/>\r\n\r\n<strong>[App Name]\u306b\u3053\u306e\u30b7\u30b9\u30c6\u30e0\u306e\u540d\u524d\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002\r\n\u203b\u3053\u306e[App Name]\u306f\u5f8c\u307b\u3069\u5909\u3048\u3089\u308c\u308b\u306e\u3067\u5fc3\u914d\u3057\u306a\u3044\u3067\u304f\u3060\u3055\u3044\uff01\r\n[Pick a workspace to develop your app in:]\u3053\u3061\u3089\u3067\u3053\u306eApp\u3092\u901a\u3057\u3066\u901a\u77e5\u3092\u9001\u4fe1\u3057\u305f\u3044Slack\u306eworkspace\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\r\n\u203b\u3053\u306e[Pick a workspace to develop your app in:]\u306f\u5f8c\u307b\u3069\u5909\u3048\u3089\u308c\u306a\u3044\u306e\u3067\u614e\u91cd\u306b\u9078\u3093\u3067\u304f\u3060\u3055\u3044\uff01<\/strong>\r\n\r\n<strong>\u8a2d\u5b9a\u5f8c[Create App]\u3092\u30af\u30ea\u30c3\u30af<\/strong>\r\n\r\n<img decoding=\"async\" src=\"https:\/\/since2020.jp\/media\/wp-content\/uploads\/2023\/11\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-11-01-10.50.46.png\" alt=\"\" \/>\r\n\r\n<strong>[Off]\u306b\u306a\u3063\u3066\u3044\u308b\u9805\u76ee\u3092[On]\u306b\u3059\u308b\u3068\u4e0b\u8a18\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067<\/strong>\r\n\r\n<img decoding=\"async\" src=\"https:\/\/since2020.jp\/media\/wp-content\/uploads\/2023\/11\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-11-01-11.04.38.png\" alt=\"\" \/>\r\n\r\n<strong>[Add New Webhook to Workspace]\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066<\/strong>\r\n\r\n<img decoding=\"async\" src=\"https:\/\/since2020.jp\/media\/wp-content\/uploads\/2023\/11\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-11-01-11.05.46.png\" alt=\"\" \/>\r\n\r\n<strong>\u3053\u306eApp\u3068\u3057\u3066\u6295\u7a3f\u3059\u308b\u3053\u3068\u306e\u3067\u304d\u308b\u6295\u7a3f\u5148\u30c1\u30e3\u30f3\u30cd\u30eb\u3092\u9078\u3073\u307e\u3059\u3002\r\n\u305d\u306e\u5f8c\u3001\u81ea\u5206\u304c\u9078\u629e\u3057\u305f[Channel]\u3067\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u305f\u4e0a\u3067\u3001[Webhook URL]\u3092\u30b3\u30d4\u30fc\u3057\u307e\u3057\u3087\u3046\u3002\r\n\u203b\u540c\u3058App\u3092\u7528\u3044\u3066\u4ed6\u306e\u30c1\u30e3\u30f3\u30cd\u30eb\u306b\u3082\u9001\u4fe1\u3057\u305f\u3044\u3068\u304d\u306f\u540c\u3058[Add New Webhook to Workspace]\u306b\u3066\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/strong>\r\n\r\n<img decoding=\"async\" src=\"https:\/\/since2020.jp\/media\/wp-content\/uploads\/2023\/11\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-11-01-11.07.17.png\" alt=\"\" \/>\r\n\r\n<strong>\u30b3\u30d4\u30fc\u3057\u305f[Webhook URL]\u3092\u3057\u305f\u306e[webhook_url]\u306b\u30da\u30fc\u30b9\u30c8\u3057\u3066\u95a2\u6570\u3092\u52d5\u304b\u305b\u3070\u3001Python\u4e0a\u3067Slack\u306b\u9001\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\uff01<\/strong>\r\n\r\n<img decoding=\"async\" src=\"https:\/\/since2020.jp\/media\/wp-content\/uploads\/2023\/11\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-11-10-20.39.54.png\" alt=\"\" \/>\r\n<img decoding=\"async\" src=\"https:\/\/since2020.jp\/media\/wp-content\/uploads\/2023\/11\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-11-01-11.30.15.png\" alt=\"\" \/>\r\n\n\n<h2>\u7d42\u308f\u308a\u306b<\/h2>\n\u4eca\u56de\u3001Slack\u306eAPI\u3092\u5229\u7528\u3057\u3001WebHooks\u3092\u4f7f\u7528\u3057\u3001\u81ea\u5206\u306e\u4f5c\u6210\u3057\u305fapp\u304b\u3089Slack\u3078\u306e\u901a\u77e5\u3092\u884c\u3046\u30b7\u30f3\u30d7\u30eb\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u3068\u4e00\u9023\u306e\u30d5\u30ed\u30fc\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u3002\r\nWebHooks\u306e\u5229\u70b9\u306f\u3001\u624b\u8efd\u306b\u5b9f\u88c5\u3067\u304d\u308b\u70b9\u3067\u3059\u304c\u3001\u305d\u306e\u53cd\u9762\u3001\u62e1\u5f35\u6027\u304c\u4f4e\u3044\u3067\u3059\u3002\u3057\u304b\u3057\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u7121\u4e8b\u306b\u5b8c\u4e86\u3057\u305f\u969b\u306e\u901a\u77e5\u306a\u3069\u3001\u7c21\u5358\u306a\u304a\u77e5\u3089\u305b\u306e\u7528\u9014\u306b\u306f\u975e\u5e38\u306b\u9069\u3057\u3066\u3044\u307e\u3059\u3002\r\n\u4e00\u65b9\u3001Slack bot\u306e\u3088\u3046\u306a\u9ad8\u5ea6\u306a\u6a5f\u80fd\u3092\u6301\u3063\u305f\u30a2\u30d7\u30ea\u3092\u4f5c\u6210\u3059\u308b\u969b\u306b\u306f\u3001Slack bot\u306b\u5fc5\u8981\u306a\u6a29\u9650\u3092\u4e0e\u3048\u308b\u624b\u7d9a\u304d\u304c\u5fc5\u8981\u3067\u3059\u3002\u305d\u306e\u8a73\u3057\u3044\u5b9f\u88c5\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306f\u3001\u5f8c\u65e5\u516c\u958b\u4e88\u5b9a\u3057\u307e\u3059\uff01\uff01","protected":false},"excerpt":{"rendered":"<p>Slack API\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u30d7\u30ed\u30bb\u30b9\u306e\u5b8c\u4e86\u3092\u30e1\u30c3\u30bb\u30fc\u30b8\u9001\u4fe1\u3092\u7528\u3044\u3066\u901a\u77e5\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002 \u30c7\u30d7\u30ed\u30a4\u306a\u3069\u306e\u6642\u9593\u304c\u304b\u304b\u308b\u51e6\u7406\u306e\u5f85\u3061\u6642\u9593\u3092\u30d1\u30bd\u30b3\u30f3\u306e\u524d\u3067\u5f85\u6a5f\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u81ea\u7531\u6642\u9593\u3068\u3057\u3066\u4f7f\u3044\u307e\u3057\u3087\u3046\uff01\uff01 \u306f\u3058\u3081\u306b \u3053\u308c\u306fS [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":4020,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"content-type":"","swell_btn_cv_data":"","footnotes":"","_wp_rev_ctl_limit":""},"categories":[1249],"tags":[331,218,28,30,35],"class_list":["post-4019","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-knowledge","tag-python","tag-slack","tag-28","tag-30","tag-35"],"_links":{"self":[{"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/posts\/4019","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/comments?post=4019"}],"version-history":[{"count":0,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/posts\/4019\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/media\/4020"}],"wp:attachment":[{"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/media?parent=4019"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/categories?post=4019"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/tags?post=4019"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}