【发布时间】:2018-05-11 10:59:58
【问题描述】:
我正在使用 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!'
)
);
?>
谁能帮忙,为什么我会收到这个错误?
【问题讨论】:
-
错误信息的哪一部分你不清楚?提供的号码不能用于向其发送短信。
-
它让我的电话号码无效。我正在使用印度国家代码 +91 的印度电话号码。我无法显示私人电话号码,所以我保留了 *!
标签: php twilio-api