Key |
Value |
Description |
---|---|---|
voice_title (string)
|
|
|
voice_file (string)
|
|
REQUIRED voice_file URL or form_data file
|
curl --location --request POST 'https://obligr.io/api_v2/voice-call/voice_file_upload' \ --header 'Authorization: Bearer [YOUR_API_KEY]' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Cookie: [COOKIES]' \ --data-urlencode 'voice_title=TESTING' \ --data-urlencode 'voice_file=https://dl.prokerala.com/downloads/ringtones/files/mp3/tiktokpopularjokerringtone2019laylairemixfullbassdjbestjokerringtonefamousb-50918.mp3'
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://obligr.io/api_v2/voice-call/voice_file_upload",<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_POSTFIELDS => "voice_title=TESTING&voice_file=https%3A//dl.prokerala.com/downloads/ringtones/files/mp3/tiktokpopularjokerringtone2019laylairemixfullbassdjbestjokerringtonefamousb-50918.mp3", CURLOPT_HTTPHEADER => array( "Authorization: Bearer [YOUR_API_KEY]", "Content-Type: application/x-www-form-urlencoded", "Cookie: [COOKIES]" ), )); $response = curl_exec($curl); curl_close($curl); echo $response;
https://obligr.io/api_v2/voice-call/voice_file_upload?api_key=[YOUR_API_KEY]&voice_title=TESTING&voice_file=https://dl.prokerala.com/downloads/ringtones/files/mp3/tiktokpopularjokerringtone2019laylairemixfullbassdjbestjokerringtonefamousb-50918.mp3
var client = new RestClient("https://obligr.io/api_v2/voice-call/voice_file_upload"); client.Timeout = -1; var request = new RestRequest(Method.POST); request.AddHeader("Authorization", "Bearer [YOUR_API_KEY]"); request.AddHeader("Content-Type", "application/x-www-form-urlencoded"); request.AddHeader("Cookie", "[COOKIES]"); request.AddParameter("voice_title", "TESTING"); request.AddParameter("voice_file", "https://dl.prokerala.com/downloads/ringtones/files/mp3/tiktokpopularjokerringtone2019laylairemixfullbassdjbestjokerringtonefamousb-50918.mp3"); IRestResponse response = client.Execute(request); Console.WriteLine(response.Content);
import http.client import mimetypes conn = http.client.HTTPSConnection("obligr.io") payload = 'voice_title=TESTING&voice_file=https%3A//dl.prokerala.com/downloads/ringtones/files/mp3/tiktokpopularjokerringtone2019laylairemixfullbassdjbestjokerringtonefamousb-50918.mp3' headers = { 'Authorization': 'Bearer [YOUR_API_KEY]', 'Content-Type': 'application/x-www-form-urlencoded', 'Cookie': '[COOKIES]' } conn.request("POST", "/api_v2/voice-call/voice_file_upload", payload, headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8"))
OkHttpClient client = new OkHttpClient().newBuilder() .build(); MediaType mediaType = MediaType.parse("application/x-www-form-urlencoded"); RequestBody body = RequestBody.create(mediaType, "voice_title=TESTING&voice_file=https://dl.prokerala.com/downloads/ringtones/files/mp3/tiktokpopularjokerringtone2019laylairemixfullbassdjbestjokerringtonefamousb-50918.mp3"); Request request = new Request.Builder() .url("https://obligr.io/api_v2/voice-call/voice_file_upload") .method("POST", body) .addHeader("Authorization", "[YOUR_API_KEY]") .addHeader("Content-Type", "application/x-www-form-urlencoded") .addHeader("Cookie", "[COOKIES]") .build(); Response response = client.newCall(request).execute();
var axios = require('axios'); var qs = require('qs'); var data = qs.stringify({ 'voice_title': 'TESTING', 'voice_file': 'https://dl.prokerala.com/downloads/ringtones/files/mp3/tiktokpopularjokerringtone2019laylairemixfullbassdjbestjokerringtonefamousb-50918.mp3' }); var config = { method: 'post', url: 'https://obligr.io/api_v2/voice-call/voice_file_upload', headers: { 'Authorization': '[YOUR_API_KEY]', 'Content-Type': 'application/x-www-form-urlencoded', '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_upload", "method": "POST", "timeout": 0, "headers": { "Authorization": "[YOUR_API_KEY]", "Content-Type": "application/x-www-form-urlencoded", "Cookie": "[COOKIES]" }, "data": { "voice_title": "TESTING", "voice_file": "https://dl.prokerala.com/downloads/ringtones/files/mp3/tiktokpopularjokerringtone2019laylairemixfullbassdjbestjokerringtonefamousb-50918.mp3" } }; $.ajax(settings).done(function (response) { console.log(response); });
{
“success”: true,
“error”: null,
“data”: {
“title”: “202007311409099900886395626 2020-07-31 14:09:10 (54 sec : 2 Credit)”,
“voice_file”: “202007311409099900886395626.mp3”,
“duration”: 54
}
}