LoginSignup
1
0

More than 5 years have passed since last update.

SlackのincomingWebhooksを使う(投稿編)

Posted at

前提条件

  • IncomingWebhooks用のURLを発行していること。
  • curlを使用できること。

改行コード

  • 改行コードを表すには\nを使用します。
curl -X POST -H 'Content-type: application/json' \
--data '{"text":"あいうえお\nかきくけこ\nさしすせそ\nなにぬねの"}' \
<IncomingWebhooksのURLを貼る>

[結果]
02_1.png

絵文字

  • 使用したい絵文字を以下より参照(Qiitaでも使えます)

https://www.webfx.com/tools/emoji-cheat-sheet/

  • とりあえず、:sunny::umbrella::cloud::snowman:を使ってみる。
curl -X POST -H 'Content-type: application/json' \
--data '{"text":"あいうえお:sunny:\nかきくけこ:umbrella:\nさしすせそ:cloud:\nなにぬねの:snowman:"}' \
<IncomingWebhooksのURLを貼る>

[結果]
02_2.png

メンション

  • @を使用しても正しいメンションとなりません。以下に解決策が載せられています。

SlackのIncoming Webhooksでメンションを飛ばす方法

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