まーぽんって誰がつけたの?

iOS→Scala→インフラなおじさん技術メモ

slackのweb api経由のchat.postMessageでattachmentsが送れない

JSON.stringifyする必要があった。

NG

"attachments": [{ "text": "hoge" }]

OK

"attachments": JSON.stringify([{ "text": "hoge" }])