dav*_*ave 4 sms alphanumeric twilio
I am trying to send an SMS with Twilio using the alphanumeric 'from' address. I'm in Australia, sending to an Australian mobile number. My cURL request looks like this:
curl -X POST 'https://api.twilio.com/2010-04-01/Accounts/<Account SID>/Messages.json' \
--data-urlencode 'To=+614XXXXXXXX' \
--data-urlencode 'From=Test' \
--data-urlencode 'Body=Test' \
-u <Account SID>:<Auth Token>
Run Code Online (Sandbox Code Playgroud)
The response I am receiving is:
{
"code": 21212,
"message": "The 'From' number Test is not a valid phone number, shortcode, or alphanumeric sender ID.",
"more_info": "https://www.twilio.com/docs/errors/21212",
"status": 400
}
Run Code Online (Sandbox Code Playgroud)
I've tried a number of different alphanumeric sender IDs and none have been successful. My sender ID does appear to meet the [a-zA-Z0-9 ] with max length 11 and at least 1 alpha character requirement. I've double checked my Account SID and Auth Token as well as the ability to send Alphanumeric SMS within Australia. I've also verified I'm not accidentally using my Test code incase that would have any effect. My account also does have credit on it.
Thanks in advance for any insight you can offer :)
Twilio 开发人员布道者在这里。
对于使用字母数字发件人 ID 发送消息,您所做的一切都是正确的。但是,为了设置您的帐户以发送这些消息,您需要联系支持人员并请求您的帐户能够使用字母数字发件人 ID。
让我知道这是否有帮助。
| 归档时间: |
|
| 查看次数: |
3766 次 |
| 最近记录: |