LoginSignup
1
0

More than 1 year has passed since last update.

[Slack] Slack APIで特定のチャンネルにメッセージを送る方法

Last updated at Posted at 2021-02-26

はじめに

Slack APIで特定のチャンネルにメッセージを送る方法を紹介致します。

Slack APIで特定のチャンネルにメッセージを送る方法

①チャンネルを生成する。
1.png

②APIのアプリケーションを開き、「Create New App」をクリックする。
https://api.slack.com/apps
2.png

③アプリケーションの名前を記載し、「Create App」をクリックする。
3.png

④「Incoming Webhooks」を選択する。
4.png

⑤Incoming Webhooksを活性化し、「Add New Webhooks to Workspace」をクリックする。
5.png

⑥メッセージを受け取るチャンネルを選択し、「Allow」をクリックする。
6.png

⑦サンプルコードをコピーする。
7.png

⑧サンプルコードを実行し、メッセージを確認する。
8.png

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0