【发布时间】:2013-12-23 09:05:49
【问题描述】:
当我通过 twilio 购买电话号码时,我可以为电话号码设置各种属性,如下所示:
$sid = 'AC...';
$token = '8...';
$number = '+12345678901';
$client = new Services_Twilio($sid, $token);
$response = $client->account->incoming_phone_numbers->create(
array(
"PhoneNumber" => $number,
"FriendlyName" => "My Company Line",
"VoiceUrl" => "http://testsite.com-callback-url-1.xml",
"VoiceMethod" => "GET"
)
);
如何编辑现有号码详情?
例如,我想将号码详细信息更改为其他内容。说FriendlyName 到My Personal Line,Voice_url 到http://testsite.com-callback-url-2.xml 和VoiceMethod 到POST。
【问题讨论】:
-
只需在数组中更改它们
-
你的意思是我只是用现有的电话号码再次调用
create()函数? -
一开始我误解了你的问题,看看我贴的答案