LoginSignup
0
0

More than 5 years have passed since last update.

Incoming WebhooksをOutgoing Webhooksから呼ぶことはできないという話

Posted at

目的

あるチャンネルでポストした内容をそのまま別のチャンネルBでもポストする

やったこと

Incoming WebhooksのAPIをOutgoing Webhooksで叩くようにした

期待する挙動

Outgoing Webhooksが拾ったテキストをIncoming Webhooksが吐き出す

実際の挙動

Incoming Webhooksがだんまり

原因

おそらくmimetypeの違い

  • Outgoing Webhooksが送信するmimetype: application/x-www-form-urlencoded
  • Incoming Webhooksが受信するmimetype: applocation/json

感想

両アプリのjsonのスキーマは一致していたので惜しい

{text: hoge}
0
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
0
0