curl -X POST \ https://obligr.io/api_v2/message/sender_id \ -H 'authorization: Bearer [YOUR_API_KEY]' \ -H 'cache-control: no-cache' \ -H 'content-type: application/x-www-form-urlencoded' \
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://obligr.io/api_v2/message/sender_id",<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;
https://demo.obligr.com/api_v2/message/sender_id?api_key=UU-V5BS9_UWd3wRdWdEpTw4av5TR29SOYabzxpsb9RcHPX1P_-XXcvp6qifTnTzA
var client = new RestClient("https://obligr.io/api_v2/message/sender_id");
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/message/sender_id", 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/message/sender_id")
.method("POST", body)
.addHeader("Authorization", "Bearer [YOUR_API_KEY]")
.addHeader("Cookie", "[COOKIES]")
.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/message/sender_id',
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/message/sender_id",
"method": "POST",
"timeout": 0,
"headers": {
"Authorization": "Bearer [YOUR_API_KEY]",
"Cookie": "[COOKIES]"
},
};
$.ajax(settings).done(function (response) {
console.log(response);
});
{
“success”: true,
“error”: null,
“data”: [
{
“name”: “DEMOOO”,
“status”: “Active”,
“is_default”: 0,
“date_created”: “2020-07-30 18:51:56”
}]}