## Example for Recording Get#require'rubygems'require'plivo'includePlivoincludePlivo::Exceptionsapi=RestClient.new("<auth_id>","<auth_token>")beginresponse=api.recordings.get('c2186400-1c8c-1124-a664-0026b945b522')putsresponserescuePlivoRESTError=>eputs'Exception: '+e.messageend
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Example for Recording getvarplivo=require('plivo');(functionmain(){'use strict';// If auth id and auth token are not specified, Plivo will fetch them from the environment variables.varclient=newplivo.Client("<auth_id>","<auth_token>");client.recordings.get("c2186400-1c8c-1124-a664-0026b945b522",// recording id).then(function(response){console.log(response);},function(err){console.error(err);});})();
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php/**
* Example for Recording get
*/require'vendor/autoload.php';usePlivo\RestClient;usePlivo\Exceptions\PlivoRestException;$client=newRestClient("<auth_id>","<auth_token>");try{$response=$client->recordings->get('c2186400-1c8c-1124-a664-0026b945b522');print_r($response);}catch(PlivoRestException$ex){print_r($ex);}
packagecom.plivo.api.samples.recording;importjava.io.IOException;importcom.plivo.api.Plivo;importcom.plivo.api.exceptions.PlivoRestException;importcom.plivo.api.models.recording.Recording;importcom.plivo.api.models.recording.Recording;/**
* Example for Recording get
*/classRecordingGet{publicstaticvoidmain(String[]args){Plivo.init("<auth_id>","<auth_token>");try{Recordingresponse=Recording.getter("c2186400-1c8c-1124-a664-0026b945b522").get();System.out.println(response);}catch(PlivoRestException|IOExceptione){e.printStackTrace();}}}
/**
* Example for Recording Get
*/usingSystem;usingSystem.Collections.Generic;usingPlivo;usingPlivo.Exception;namespacePlivoExamples{internalclassProgram{publicstaticvoidMain(string[]args){varapi=newPlivoApi("<auth_id>","<auth_token>");try{varresponse=api.Recording.Get(recordingId:"3ebae784-54fd-11e7-975a-024cb8ab2db9");Console.WriteLine(response);}catch(PlivoRestExceptione){Console.WriteLine("Exception: "+e.Message);}}}}
// Example for Recording getpackagemainimport("fmt""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}response,err:=client.Recordings.Get("c2186400-1c8c-1124-a664-0026b945b522",)iferr!=nil{fmt.Print("Error",err.Error())return}fmt.Printf("Response: %#v\n",response)}
usingSystem;usingSystem.Collections.Generic;usingRestSharp;usingPlivo.API;namespaceget_a_recording{publicclassProgram{publicstaticvoidMain(string[]args){RestAPIplivo=newRestAPI("Your AUTH_ID","Your AUTH_TOKEN");IRestResponse<Recording>resp=plivo.get_recording(newDictionary<string,string>(){{"recording_id","c2186400-1c8c-11e4-a664-0026b945b52x"}});//Prints the responseConsole.Write(resp.Content);Console.ReadLine();}}}