curl --location --request POST 'https://obligr.io/api_v2/voice-call/voice_file' \ --header 'Authorization: Bearer [YOUR_API_KEY]' \ --header 'Cookie: [COOKIES]'
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://obligr.io/api_v2/voice-call/voice_file",<br ?--> CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_HTTPHEADER => array( "Authorization: Bearer [YOUR_API_KEY]", "Cookie: [COOKIES]" ), )); $response = curl_exec($curl); curl_close($curl); echo $response;
var client = new RestClient("https://obligr.io/api_v2/voice-call/voice_file"); client.Timeout = -1; var request = new RestRequest(Method.POST); request.AddHeader("Authorization", "Bearer [YOUR_API_KEY]"); request.AddHeader("Cookie", "[COOKIES]"); IRestResponse response = client.Execute(request); Console.WriteLine(response.Content);
import http.client import mimetypes conn = http.client.HTTPSConnection("obligr.io") payload = '' headers = { 'Authorization': 'Bearer [YOUR_API_KEY]', 'Cookie': '[COOKIES]' } conn.request("POST", "/api_v2/voice-call/voice_file", payload, headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8"))
OkHttpClient client = new OkHttpClient().newBuilder() .build(); MediaType mediaType = MediaType.parse("text/plain"); RequestBody body = RequestBody.create(mediaType, ""); Request request = new Request.Builder() .url("https://obligr.io/api_v2/voice-call/voice_file") .method("POST", body) .addHeader("Authorization", "Bearer [YOUR_API_KEY]") .addHeader("Cookie", "[YOUR_API_KEY]") .build(); Response response = client.newCall(request).execute();
var axios = require('axios'); var qs = require('qs'); var data = qs.stringify({ }); var config = { method: 'post', url: 'https://obligr.io/api_v2/voice-call/voice_file', headers: { 'Authorization': 'Bearer [YOUR_API_KEY]', 'Cookie': '[COOKIES] ' }, data : data }; axios(config) .then(function (response) { console.log(JSON.stringify(response.data)); }) .catch(function (error) { console.log(error); });
var settings = { "url": "https://obligr.io/api_v2/voice-call/voice_file", "method": "POST", "timeout": 0, "headers": { "Authorization": "[YOUR_API_KEY]", "Cookie": "[COOKIES]" }, }; $.ajax(settings).done(function (response) { console.log(response); });
{
“success”: true,
“error”: null,
“data”: [
{
“title”: “lr_20200617113021_3466 2020-07-31 17:33:42”,
“voice_file_name”: “202007311733429900921610003.mp3”,
“voice_file_url”: “http://demo.obligr.com/frontend/web/media/recording/9900/202007311733429900921610003.mp3”,
“duration”: 20,
“date_created”: “2020-07-31 17:33:42”,
“add_by”: “panel”
}
]
}