require'rubygems'require'plivo'includePlivoAUTH_ID='<auth_id>'AUTH_TOKEN='<auth_token>'client=Phlo.new(AUTH_ID,AUTH_TOKEN)# if credentials are stored in the PLIVO_AUTH_ID and the PLIVO_AUTH_TOKEN environment variables# then initialize client as:# client = Phlo.new# provide the phlo_id in paramsbeginphlo=client.phlo.get('<phlo_id>')putsphlorescuePlivoRESTError=>eputs'Exception: '+e.messageend
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
varplivo=require('plivo');varPhloClient=plivo.PhloClient;varauthId='auth-id';varauthToken='auth-token';varphloId='PHLO_ID';varphloClient=phlo=null;//Get Phlo details by phlo idphloClient=newPhloClient(authId,authToken);phloClient.phlo.get(phloId).then(function(result){console.log('phlo details =>',result);}).catch(function(err){console.log('Failed to fetch phlo details',err);});;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php/**
* Example for API Request
*/require'vendor/autoload.php';usePlivo\Resources\PHLO\PhloRestClient;usePlivo\Exceptions\PlivoRestException;$client=newPhloRestClient("<auth_id>","<auth_token>");try{$response=$client->phlo->getPhlo("<phlo_id>");print_r($response);}catch(PlivoRestException$ex){print_r($ex);}?>
packagemainimport("fmt""plivo-go")// Initialize the following params with corresponding values to trigger resourcesconstauthId="<auth_id>"constauthToken="<auth_token>"constphloId="<phlo_id>"funcmain(){testPhloGet()}functestPhloGet(){phloClient,err:=plivo.NewPhloClient(authId,authToken,&plivo.ClientOptions{})iferr!=nil{fmt.Print("Error",err.Error())return}response,err:=phloClient.Phlos.Get(phloId)iferr!=nil{fmt.Print("Error",err.Error())return}fmt.Printf("Response: %#v\n",response)}
require'rubygems'require'plivo'includePlivoAUTH_ID='<auth_id>'AUTH_TOKEN='<auth_token>'client=Phlo.new(AUTH_ID,AUTH_TOKEN)# if credentials are stored in the PLIVO_AUTH_ID and the PLIVO_AUTH_TOKEN environment variables# then initialize client as:# client = Phlo.new# provide the phlo_id in paramsbeginphlo=client.phlo.get('<phlo_id>')putsphlorescuePlivoRESTError=>eputs'Exception: '+e.messageend
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
varplivo=require('plivo');varPhloClient=plivo.PhloClient;varauthId='auth-id';varauthToken='auth-token';varphloId='PHLO_ID';varphloClient=phlo=null;//Get Phlo details by phlo idphloClient=newPhloClient(authId,authToken);phloClient.phlo.get(phloId).then(function(result){console.log('phlo details =>',result);}).catch(function(err){console.log('Failed to fetch phlo details',err);});;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php/**
* Example for API Request
*/require'vendor/autoload.php';usePlivo\Resources\PHLO\PhloRestClient;usePlivo\Exceptions\PlivoRestException;$client=newPhloRestClient("<auth_id>","<auth_token>");try{$response=$client->phlo->getPhlo("<phlo_id>");print_r($response);}catch(PlivoRestException$ex){print_r($ex);}?>
packagemainimport("fmt""plivo-go")// Initialize the following params with corresponding values to trigger resourcesconstauthId="<auth_id>"constauthToken="<auth_token>"constphloId="<phlo_id>"funcmain(){testPhloGet()}functestPhloGet(){phloClient,err:=plivo.NewPhloClient(authId,authToken,&plivo.ClientOptions{})iferr!=nil{fmt.Print("Error",err.Error())return}response,err:=phloClient.Phlos.Get(phloId)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!