The number object for that campaign. The status in the phone_numbers tuple indicates the status of the linking request. The phone_numbers tuple contains a status that can take the values
<?php# Available in versions >= 4.29.0 (https://github.com/plivo/plivo-php/releases/tag/v4.29.0)require'/etc/plivo-php/vendor/autoload.php';usePlivo\RestClient;$client=newRestClient("<auth_id>","<auth_token>");$client->client->setTimeout(60);try{$res=$client->campaign->listNumber("<campaign_id>");print_r($res);}catch(PlivoRestException$ex){print_r($ex);}?>
packagecom.plivo.examples;importcom.plivo.api.Plivo;importcom.plivo.api.models.campaign.CampaignNumbers;publicclassPlivoTest{publicstaticvoidmain(String[]args){Plivo.init("<auth_id>","<auth_token>");// List all Campaign Numberstry{CampaignNumbersresponse=CampaignNumbers.getNumbers("<Camapign_ID>").limit(2).offset(0).get();System.out.println(response);}catch(Exceptione){e.printStackTrace();}}}
usingSystem;usingSystem.Collections.Generic;usingPlivo;usingPlivo.Exception;namespacedotnet_project{classTen_dlc{staticvoidMain(string[]args){varapi=newPlivoApi("<auth_id>","<auth_token>");// Get all Campaign NumbersConsole.WriteLine("Get all Campaign Numbers");try{varresponse=api.Campaign.ListNumber("<campaign_id>");Console.WriteLine(response);}catch(PlivoRestExceptione){Console.WriteLine("Exception: "+e.Message);}}}}
<?php# Available in versions >= 4.29.0 (https://github.com/plivo/plivo-php/releases/tag/v4.29.0)require'/etc/plivo-php/vendor/autoload.php';usePlivo\RestClient;$client=newRestClient("<auth_id>","<auth_token>");$client->client->setTimeout(60);try{$res=$client->campaign->listNumber("<campaign_id>");print_r($res);}catch(PlivoRestException$ex){print_r($ex);}?>
packagecom.plivo.examples;importcom.plivo.api.Plivo;importcom.plivo.api.models.campaign.CampaignNumbers;publicclassPlivoTest{publicstaticvoidmain(String[]args){Plivo.init("<auth_id>","<auth_token>");// List all Campaign Numberstry{CampaignNumbersresponse=CampaignNumbers.getNumbers("<Camapign_ID>").limit(2).offset(0).get();System.out.println(response);}catch(Exceptione){e.printStackTrace();}}}
usingSystem;usingSystem.Collections.Generic;usingPlivo;usingPlivo.Exception;namespacedotnet_project{classTen_dlc{staticvoidMain(string[]args){varapi=newPlivoApi("<auth_id>","<auth_token>");// Get all Campaign NumbersConsole.WriteLine("Get all Campaign Numbers");try{varresponse=api.Campaign.ListNumber("<campaign_id>");Console.WriteLine(response);}catch(PlivoRestExceptione){Console.WriteLine("Exception: "+e.Message);}}}}