importplivoclient=plivo.RestClient(auth_id="<auth_id>",auth_token="<auth_token>")# Retrieve a Specific Tollfree Number
powerpack=client.powerpacks.get(uuid='<powerpack_uuid>')# Version 1
response=powerpack.find_tollfree('<tollfree_number>')# Version 2
response=powerpack.numberpool.tollfree.find('<tollfree_number>')print(response)
require'rubygems'require'plivo'includePlivoincludePlivo::Exceptionsapi=RestClient.new("<auth_id>","<auth_token>")begin# Retrieve a Specific Tollfree Numberpowerpack=api.powerpacks.get('<powerpack_uuid>')# Version 1response=powerpack.find_tollfree('<tollfree_number>')# Version 2response=powerpack.numberpool.tollfree.find('<tollfree_number>')puts(response)rescuePlivoRESTError=>eputs'Exception: '+e.messageend
1
2
3
4
5
6
7
8
9
10
11
12
13
letplivo=require('plivo');letclient=newplivo.Client('<auth_id>','<auth_token>');// Retrieve a Specific Tollfree Numberclient.powerpacks.get("<powerpack_uuid>").then(function(powerpack){returnpowerpack.find_tollfree("<tollfree>")// return powerpack.number_pool.tollfree.find("<tollfree>"); V2}).then(function(result){console.log(result)})
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?phprequire'vendor/autoload.php';usePlivo\RestClient;$client=newRestClient("<auth_id>","<auth_token>");$client->client->setTimeout(40);// Retrieve a Specific Tollfree Numbertry{$powerpack=$client->powerpacks->get("<powerpack_uuid>");// Version 1$response=$powerpack->find_tollfree('<tollfree_number>');// Version 2$response=$powerpack->number_pool->tollfree->find('<tollfree_number>');print_r($response);}catch(PlivoRestException$ex){print_r($ex);}
usingSystem;usingSystem.Collections.Generic;usingPlivo;usingPlivo.Exception;namespacePlivoExamples{classProgram{staticvoidMain(string[]args){varapi=newPlivoApi("<auth_id>","<auth_token>");// Retrieve a Specific Tollfree Numbertry{varpowerpack=api.Powerpacks.Get("<poerpack_uuid>");// Version 1varresponse=powerpack.Find_Tollfree("<tollfree_number>");// Version 2varresponse=powerpack.numberpool.tollfree.Find("<tollfree_number>");Console.WriteLine(response);}catch(PlivoRestExceptione){Console.WriteLine("Exception: "+e.Message);}}}}
packagemainimport("fmt"plivo"github.com/plivo/plivo-go/v7")funcmain(){client,err:=plivo.NewClient("<auth_id>","<auth_token>",&plivo.ClientOptions{})iferr!=nil{fmt.Print("Error",err.Error())return}// Retrieve a Specific Tollfree Numberpowerpack,err:=client.Powerpack.Get("<powerpack_uuid>")iferr!=nil{fmt.Print("Error",err.Error())return}response,err:=powerpack.Find_tollfree("<tollfree_number>")iferr!=nil{fmt.Print("Error",err.Error())return}fmt.Printf("Response: %#v\n",response)}
Example Request
1
2
3
4
5
6
7
8
9
10
importplivoclient=plivo.RestClient(auth_id="<auth_id>",auth_token="<auth_token>")# Retrieve a Specific Tollfree Number
powerpack=client.powerpacks.get(uuid='<powerpack_uuid>')# Version 1
response=powerpack.find_tollfree('<tollfree_number>')# Version 2
response=powerpack.numberpool.tollfree.find('<tollfree_number>')print(response)
require'rubygems'require'plivo'includePlivoincludePlivo::Exceptionsapi=RestClient.new("<auth_id>","<auth_token>")begin# Retrieve a Specific Tollfree Numberpowerpack=api.powerpacks.get('<powerpack_uuid>')# Version 1response=powerpack.find_tollfree('<tollfree_number>')# Version 2response=powerpack.numberpool.tollfree.find('<tollfree_number>')puts(response)rescuePlivoRESTError=>eputs'Exception: '+e.messageend
1
2
3
4
5
6
7
8
9
10
11
12
13
letplivo=require('plivo');letclient=newplivo.Client('<auth_id>','<auth_token>');// Retrieve a Specific Tollfree Numberclient.powerpacks.get("<powerpack_uuid>").then(function(powerpack){returnpowerpack.find_tollfree("<tollfree>")// return powerpack.number_pool.tollfree.find("<tollfree>"); V2}).then(function(result){console.log(result)})
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?phprequire'vendor/autoload.php';usePlivo\RestClient;$client=newRestClient("<auth_id>","<auth_token>");$client->client->setTimeout(40);// Retrieve a Specific Tollfree Numbertry{$powerpack=$client->powerpacks->get("<powerpack_uuid>");// Version 1$response=$powerpack->find_tollfree('<tollfree_number>');// Version 2$response=$powerpack->number_pool->tollfree->find('<tollfree_number>');print_r($response);}catch(PlivoRestException$ex){print_r($ex);}
usingSystem;usingSystem.Collections.Generic;usingPlivo;usingPlivo.Exception;namespacePlivoExamples{classProgram{staticvoidMain(string[]args){varapi=newPlivoApi("<auth_id>","<auth_token>");// Retrieve a Specific Tollfree Numbertry{varpowerpack=api.Powerpacks.Get("<poerpack_uuid>");// Version 1varresponse=powerpack.Find_Tollfree("<tollfree_number>");// Version 2varresponse=powerpack.numberpool.tollfree.Find("<tollfree_number>");Console.WriteLine(response);}catch(PlivoRestExceptione){Console.WriteLine("Exception: "+e.Message);}}}}
packagemainimport("fmt"plivo"github.com/plivo/plivo-go/v7")funcmain(){client,err:=plivo.NewClient("<auth_id>","<auth_token>",&plivo.ClientOptions{})iferr!=nil{fmt.Print("Error",err.Error())return}// Retrieve a Specific Tollfree Numberpowerpack,err:=client.Powerpack.Get("<powerpack_uuid>")iferr!=nil{fmt.Print("Error",err.Error())return}response,err:=powerpack.Find_tollfree("<tollfree_number>")iferr!=nil{fmt.Print("Error",err.Error())return}fmt.Printf("Response: %#v\n",response)}
Rate this page
🥳 Thank you! It means a lot to us!
×
Help Us Improve
Thank you so much for rating the page, we would like to get your input
for further improvements!