|
Post by Franky on Jun 30, 2020 14:48:16 GMT
Hi, Trying to interact with an external API (ex discord, but all other APIs work the same), I must have a content-type of application/json or multipart/form-data, but httpPost uses application/x-www-form-urlencoded which is not recognised.
|
|
|
Post by AnkuLua on Jul 1, 2020 7:47:34 GMT
Would you provide more data on what you want? Some examples are helpful.
|
|
|
Post by Franky on Jul 1, 2020 7:48:18 GMT
See the link to the discord API
|
|
|
Post by AnkuLua on Jul 1, 2020 7:53:48 GMT
|
|
|
Post by Franky on Jul 1, 2020 7:57:14 GMT
thanks, but the problem is not generating the json (pretty easy, it is just text) but sending it, discord (and many other apis) require a specific content-type
edit: and the body of the mail is a problem also, it shouldn't be formatted by Ankulua so we could control it
|
|