Twilio - The requested resource not found error. while transferring number between sub accounts -


i using sample code transfer number 1 sub account sub account. (https://www.twilio.com/docs/api/rest/subaccounts)

// account sid , auth token twilio.com/user/account $sid = "acmastersid";  $token = "mastertoken";  $client = new services_twilio($sid, $token);  // object sid. if not have sid, // check out list resource examples on page $number = $client->account->incoming_phone_numbers-  >get("pn2xxxxxxxxxxxxxxxx"); $number->update(array(     "accountsid" => "ac00000000000000000000000000000002" )); echo $number->phone_number; 

i getting error:

the requested resource /2010-04-01/accounts/acxxxxxxxx/incomingphonenumbers/pnxxxxxxxxxxx.json not found

it not clear issue code.

any appreciated.

thanks.

the following code works fine. need phone number object account moving , update account sid.

// account sid , auth token twilio.com/user/account $sid = "acmastersid";  $token = "mastertoken";  $client = new services_twilio($sid, $token);  $account = $client->accounts->get( "ac00000000000000000000000000000001"); $number = $account->incoming_phone_numbers->get($phonesid); $number->update(array( "accountsid" => "ac00000000000000000000000000000002")); echo $number->phone_number; 

Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -