php - Twilio SMS 网关中的电话号码无效
问题描述
我正在使用 Twilio SMS 网关。我正在使用印度国家代码 +91 和我的印度电话号码。我收到一个错误,如屏幕截图所示。
这是我的代码:
<?php
require __DIR__ . '/vendor/autoload.php';
use Twilio\Rest\Client;
$account_sid = '#######################';
$auth_token = '#######################';
$twilio_number = '+91**********';
$client = new Client($account_sid, $auth_token);
$client->messages->create(
// Where to send a text message (your cell phone?)
'+91**********',
array(
'from' => $twilio_number,
'body' => 'I sent this message in under 10 minutes!'
)
);
?>
谁能帮忙,为什么我会收到这个错误?
解决方案
如果您的项目仍处于试用模式,您需要将目标电话号码添加到您的 twillio 帐户仪表板中的已验证来电显示
推荐阅读
- rest - HTTP rest api xml颤振认证
- html - 让一个 div 的箭头进入另一个
- python - 将 libsvm 文件重新格式化为 pandas 或 python 中的制表符分隔格式
- python - 有没有一种简单的方法可以使用 Python 访问记录在具有特定块高度的比特币块中的所有交易?
- c - 尝试编译时的预期标识符
- javascript - 机器人播放音乐时出现随机错误 [ERR_INVALID_ARG_TYPE]
- deep-learning - 为什么我预训练的 resnet-152 模型的准确率这么低?
- angular - 已发送静默登录请求,但没有用户登录并收到错误代码 AADSTS50058
- java - 如何在数组元素中找到已经值
- javascript - 在第 10 个字符之前的空白处拆分数组中的字符串