我正在尝试发送短信使用REST API在clickatell。我用邮递员测试过了。我将标题发送为
POST /rest/message HTTP/1.1
Host: api.clickatell.com
Accept: application/json
Content-Type: application/json
X-Version: 1
Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxx在主体中
{
"from": ["xxxxxxxxxx"],
"mo": "1",
"text": "Test Message ",
"to": ["xxxxxxxxx"]
}我得到的响应是
{
"data": {
"message": [
{
"accepted": true,
"to": "xxxxxxxxxxxxx",
"apiMessageId": "xxxxxxxxxxxxxxxxxxxxxxxxx"
}
]
}
}但是,当我检入clickatell帐户时,它显示消息未发送,并且存在路由错误。
只有在使用REST API时,我才会遇到这个错误。使用HTTP可以很好地工作。有人能帮帮忙吗?
发布于 2018-02-06 20:16:28
您正在使用设置为1的MO,因此这意味着您正在尝试从双向号码发送。确保您的双向号码链接到REST API集成。
https://stackoverflow.com/questions/48622442
复制相似问题