Whatsapp 消息 API - 消息类型文本

Whatsapp Message API - Message type text

提问人:user22781586 提问时间:10/22/2023 更新时间:10/22/2023 访问量:31

问:

我在通过 curl 调用 Meta 的 Whatsapp 消息传递 API 时遇到问题。

我正在尝试从 Facebook/Wahtsapp 调用消息 API

在我看来,我正在做他们在这里展示的 https://developers.facebook.com/docs/whatsapp/cloud-api/reference/messages#text-object

通过此调用

curl -i -X POST
https://graph.facebook.com/v18.0/XXXXX/messages -H '授权:持有者 XYZ' -H '内容类型:application/json'


-d '{ “messaging_product”: “whatsapp”, “recipient_type”: “individual”, “to”: “我的实际号码”, “type”: “text”, “text”: { “body”: “这是我的消息”, “preview_url”: false} }'

而且我一直在得到

{“error”:{“message”:“(#100) 参数messaging_product为必填项”,“type”:“OAuthException”,“code”:100,“fbtrace_id”:“ANYeVdITMw5XHnkTDVf_aO4”}}%

卷曲 消息 WhatsApp

评论


答: 暂无答案