gpt4 book ai didi

Clickatell - Whatsapp 集成

转载 作者:行者123 更新时间:2023-12-05 00:44:40 27 4
gpt4 key购买 nike

我正在尝试使用 Whatsapp 发送测试消息,但收到此错误消息:
"error":{"code":27,"description":"Recipient not available on channel."}
我确实在这里找到了错误消息( https://www.clickatell.com/developers/api-documentation/one-api-error-messages/ ),但它没有提供有关错误的更多详细信息。

下面是我的 curl 请求。

curl -i -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "Authorization: (hidden)" -d '{"messages": [{ "channel": "whatsapp", "to": "1xxxxxxxxxx", "content": "Test WhatsApp Message Text", "From": "1xxxxxxxxxx"}]}' -s https://platform.clickatell.com/v1/message 

谁能让我更深入地了解此错误消息?

最佳答案

根据他们的文档 https://media.clickatell.com/OnlineBrochures/WhatsApp%20REST%20API%20%20Technical%20Documentation%20V4.8.pdf

POST/wa/messages

内容类型:应用程序/json

授权:MC2集成API KEY

JSON 请求

{
"messages": [
{
"to": "27999000001",
"content": "Here is an example message",
"clientMessageId": "2993b6b548000a80989a20549e7558a5"
}
]
}

关于Clickatell - Whatsapp 集成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59696770/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com