2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

AlphabetAdvent Calendar 2022

Day 9

【I】IFTTTでTwitter→Discordをwebhookでやろうとしたら400 Errorがでた人へ

Last updated at Posted at 2022-12-08

JSONを送るときingredientはエスケープしよう、改行とかでjson解析エラーがでるぞ

解決策

{{〇〇}}を全部<<< >>>で囲む

<<<{{〇〇}}>>>こういうことです。
これでJSON解析を超えられるようになるっぽいです。なんで??

備考

公式ドキュメント、よく見たらあった

If you are using ingredients in the Body field of the webhook action, surround them with <<< >>>
訳:WebhookアクションのBodyフィールドにingredient(要素?)を使用する場合は、<<< >>>で囲んでください。

2
1
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
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?