Sendgrid - 无法对 json 进行解组

Mar*_*cia 5 sendgrid sendgrid-api-v3

有人使用过Sendgrid 的v3/marketing/singlesends端点吗?此请求不适用于 POST 或 PUT。这个错误就像服务器错误有什么想法吗?

Client error: `POST https://api.sendgrid.com/v3/marketing/singlesends` resulted in a `400 BAD REQUEST` response:
{"errors":[{"field":"","message":"json could not be unmarshalled"}]}
Run Code Online (Sandbox Code Playgroud)

小智 0

当您提供错误的输入时会发生此错误。并且 api 已于 5 月 6 日更改

https://sendgrid.com/docs/for-developers/sending-email/single-sends-2020-update/