Php Twilio向另一部手机发送回复信息

Php Twilio向另一部手机发送回复信息,php,Php,我正在尝试向twilio发送消息或将消息复制到其他号码,但它似乎不起作用 接收器:+12345678 斜纹布编号:+987654321 header('Content-Type: text/html'); ?> <Response> <Message to="<?=$_REQUEST['+987654321']?>"> <?=htmlspecialchars(substr($_REQUEST['From'] . ": " . $_REQUEST

我正在尝试向twilio发送消息或将消息复制到其他号码,但它似乎不起作用

接收器:+12345678

斜纹布编号:+987654321

header('Content-Type: text/html');
?>
<Response>
  <Message to="<?=$_REQUEST['+987654321']?>">
<?=htmlspecialchars(substr($_REQUEST['From'] . ": " . $_REQUEST['Body'], 0, 1600))?>
  </Message>
</Response>
参考文献


有什么想法吗?

我能想到的唯一一件事就是仔细检查你的号码格式,特别是如果你正在使用

您可以使用旋度检查它们,如下例所示:

curl -XGET "https://lookups.twilio.com/v1/PhoneNumbers/55-11-5525-6325?Type=carrier&Type=caller-name" -u "{AccountSid}:{AuthToken}" 

我唯一能想到的就是仔细检查你的号码格式,特别是如果你正在使用

您可以使用旋度检查它们,如下例所示:

curl -XGET "https://lookups.twilio.com/v1/PhoneNumbers/55-11-5525-6325?Type=carrier&Type=caller-name" -u "{AccountSid}:{AuthToken}"