I'm trying to follow the instructions shown on this page: https://www.twilio.com/docs/api/rest/outgoing-caller-ids to verify
a number and add that number to my twilio account as a caller ID
.
However, when I open my PHP page in the browser, I don't see any ValidationCode
in my page to be able to enter it via the phone!
My account is a full account and has credits in it so the issue is not that.
also, when I open my PHP Page, the phone number provided rings but as I stated above, I don't see any verification Code in my php page to be able to use it to verify the number!
This is the code I am using from the pag above:
<?php
// Get the PHP helper library from twilio.com/docs/php/install
require_once('path/to/Services/Twilio.php'); // Loads the library
// Your Account Sid and Auth Token from twilio.com/user/account
$sid = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
$token = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
$client = new Services_Twilio($sid, $token);
$caller_id = $client->account->outgoing_caller_ids->create("+44myphonenumber", array(
"FriendlyName" => "Michelle"
));
echo $caller_id->sid;
?>
Could someone please advise on this issue?
这是twilio支持告诉我在我的php代码底部使用的内容,它工作正常:
echo $caller_id->validation_code;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.