2016-08-12 70 views
-1

想象一下,我創建與REST API一個新的呼叫,並設置這樣的參數:顯示在twilio調用REST API不同數量的創建呼叫

$client->account->calls->create("+15017250604", "+14155551212", $urlCallback); 

當電話鈴聲響起,我不想秀作爲調用者的+15017250604,但我想顯示不同的數字。我怎樣才能做到這一點?

+0

所以要說謊? – 2016-08-12 01:07:16

+0

這不是一個謊言,它只是在最終的用戶界面中的一點點修復。我打這個電話給賣方男子被重定向到一個客戶,所以他應該看到客戶端數量,而不是twillio數量,你知道嗎? –

回答

0

退房的FAQ添加驗證傳出的來電顯示。

要使用REST API,發佈您的電話號碼給Outgoing Caller IDs list resource

下面是一個例子,在PHP中添加一個新的本機號碼:

<?php 
// Get the PHP helper library from twilio.com/docs/php/install 
require_once('/path/to/twilio-php/Services/Twilio.php'); // Loads the library 

// Your Account Sid and Auth Token from twilio.com/user/account 
$sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; 
$token = "your_auth_token"; 
$client = new Services_Twilio($sid, $token); 

$caller_id = $client->account->outgoing_caller_ids->create("+14158675309", array(
     "FriendlyName" => "My Home Phone Number" 
    )); 
echo $caller_id->validation_code; 
+0

的問題是,「到」參數是不是在我的twilio帳戶註冊。那麼,我將如何改變這一點? –