|
Key
|
Value
|
Description
|
|---|---|---|
|
message (string)
|
THIS IS A TEST MESSAGE
|
REQUIRED
|
|
unicode (boolean)
|
0
|
1 or 0
|
curl --location --request POST 'https://obligr.io/api_v2/message/count' \ --header 'Authorization: Bearer [YOUR_API_KEY]' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data-urlencode 'message=THIS IS A TEST MESSAGE' \ --data-urlencode 'unicode=0'
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://obligr.io/api_v2/message/count",
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 => "message=THIS%20IS%20A%20TEST%20MESSAGE&unicode=0", CURLOPT_HTTPHEADER => array( "Authorization: Bearer [YOUR_API_KEY]", "Content-Type: application/x-www-form-urlencoded" ), )); $response = curl_exec($curl); curl_close($curl); echo $response;
https://obligr.io/api_v2/message/count?api_key=[YOUR_API_KEY]&message=YOUR_MESSAGE&unicode=0
var client = new RestClient("https://obligr.io/api_v2/message/count");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "[YOUR_API_KEY]");
request.AddHeader("Content-Type", "application/x-www-form-urlencoded");
request.AddParameter("message", "THIS IS A TEST MESSAGE");
request.AddParameter("unicode", "0");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import http.client
import mimetypes
conn = http.client.HTTPSConnection("obligr.io")
payload = 'message=THIS%20IS%20A%20TEST%20MESSAGE&unicode=0'
headers = {
'Authorization': 'Bearer [YOUR_API_KEY]',
'Content-Type': 'application/x-www-form-urlencoded'
}
conn.request("POST", "/api_v2/message/count", 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, "message=THIS IS A TEST MESSAGE&unicode=0");
Request request = new Request.Builder()
.url("https://obligr.io/api_v2/message/count")
.method("POST", body)
.addHeader("Authorization", "Bearer [YOUR_API_KEY]")
.addHeader("Content-Type", "application/x-www-form-urlencoded")
.build();
Response response = client.newCall(request).execute();
var axios = require('axios');
var qs = require('qs');
var data = qs.stringify({
'message': 'THIS IS A TEST MESSAGE',
'unicode': '0'
});
var config = {
method: 'post',
url: 'https://obligr.io/api_v2/message/count',
headers: {
'Authorization': '[YOUR_API_KEY]',
'Content-Type': 'application/x-www-form-urlencoded'
},
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/count",
"method": "POST",
"timeout": 0,
"headers": {
"Authorization": "Bearer [YOUR_API_KEY]",
"Content-Type": "application/x-www-form-urlencoded"
},
"data": {
"message": "THIS IS A TEST MESSAGE",
"unicode": "0"
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
{
“success”: true,
“error”: null,
“data”: {
“msg_length”: 22,
“msg_count”: 1,
“unicode”: false
}}
|
Key
|
Value
|
Description
|
|---|---|---|
|
sender_id
|
OBLIGR
|
REQUIRED - 6 Character.
|
|
message (string)
|
THIS IS A TEST MESSAGE
|
REQUIRED
|
|
mobile_no (string)
|
8225838383
|
REQUIRED -comma separate multiple mobile no
|
|
schedule_date_time (datetime)
|
2020-05-20 13:44:43
|
User posting_time for Schedule SMS. Format : 'Y-m-d H:i:s'
|
|
unicode (boolean)
|
0
|
1 or 0 Unicode 1 SMS Count = 70 Characters
|
curl --location --request POST 'https://obligr.io/api_v2/message/send' \ --header 'Authorization: Bearer [YOUR_API_KEY]' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Cookie: [COOKIES]' \ --data-urlencode 'sender_id=OBLIGR' \ --data-urlencode 'message=THIS IS A TEST MESSAGE' \ --data-urlencode 'mobile_no=8225838383' \ --data-urlencode 'unicode=0
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://obligr.io/api_v2/message/send",
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 => "sender_id=OBLIGR&message=THIS%20IS%20A%20TEST%20MESSAGE&mobile_no=8225838383&unicode=0", 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/message/send?api_key=[YOUR_API_KEY]&sender_id=OBLIGR&message=THIS IS A TEST MESSAGE&mobile_no=8225838383&unicode =0
var client = new RestClient("https://obligr.io/api_v2/message/send");
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("sender_id", "OBLIGR");
request.AddParameter("message", "THIS IS A TEST MESSAGE");
request.AddParameter("mobile_no", "8225838383");
request.AddParameter("unicode", "0");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import http.client
import mimetypes
conn = http.client.HTTPSConnection("[YOUR_API_KEY]")
payload = 'sender_id=OBLIGR&message=THIS%20IS%20A%20TEST%20MESSAGE&mobile_no=8225838383&unicode%20=0'
headers = {
'Authorization': 'Bearer [YOUR_API_KEY]',
'Content-Type': 'application/x-www-form-urlencoded',
'Cookie': '[COOKIES]'
}
conn.request("POST", "/api_v2/message/send", 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, "sender_id=OBLIGR&message=THIS IS A TEST MESSAGE&mobile_no=8225838383&unicode =0");
Request request = new Request.Builder()
.url("https://obligr.io/api_v2/message/send")
.method("POST", body)
.addHeader("Authorization", "Bearer U[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({
'sender_id': 'OBLIGR',
'message': 'THIS IS A TEST MESSAGE',
'mobile_no': '8225838383',
'unicode ': '0'
});
var config = {
method: 'post',
url: 'https://obligr.io/api_v2/message/send',
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/message/send",
"method": "POST",
"timeout": 0,
"headers": {
"Authorization": "Bearer obligr.io",
"Content-Type": "application/x-www-form-urlencoded",
"Cookie": "[COOKIES]"
},
"data": {
"sender_id": "OBLIGR",
"message": "THIS IS A TEST MESSAGE",
"mobile_no": "8225838383",
"unicode ": "0"
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
|
Key
|
Value
|
Description
|
|---|---|---|
|
date_from (string)
|
2020-07-29 00:00:00
|
REQUIRED Y-m-d h:i:s Format
|
|
date_to
|
2020-07-29 23:59:59
|
REQUIRED Y-m-d h:i:s Format
|
|
sender_id (string)
|
OBLIGR
|
|
|
message (string)
|
THIS IS A TEST MESSAGE
|
|
|
job_id (number)
|
2984201
|
Note : if search by "job_id" then no need to enter date_from or date_to.
|
curl --location --request POST 'https://obligr.io/api_v2/message/report' \ --header 'Authorization: Bearer [YOUR_API_KEY]' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Cookie: [COOKIES]' \ --data-urlencode 'job_id=2984201'
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://obligr.io/api_v2/message/report",
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 => "job_id=2984201", 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/message/report?api_key=[YOUR_API_KEY]&date_from=2020-07-29 00:00:00&date_to=2020-07-29 23:59:59&sender_id=OBLIGR&message=THIS IS A TEST MESSAGE&job_id=2984201
"campaign_id": 2984201,
var client = new RestClient("https://obligr.io/api_v2/message/report");
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("job_id", "2984201");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import http.client
import mimetypes
conn = http.client.HTTPSConnection("obligr.io")
payload = 'date_from=2020-07-29%2000%3A00%3A00&date_to=2020-07-29%2023%3A59%3A59&sender_id=OBLIGR&message=THIS%20IS%20A%20TEST%20MESSAGE&job_id=2984201'
headers = {
'Authorization': 'Bearer [YOUR_API_KEY]',
'Content-Type': 'application/x-www-form-urlencoded',
'Cookie': '[COOKIES]'
}
conn.request("POST", "/api_v2/message/report", 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, "date_from=2020-07-29 00:00:00&date_to=2020-07-29 23:59:59&sender_id=OBLIGR&message=THIS IS A TEST MESSAGE&job_id=2984201");
Request request = new Request.Builder()
.url("https://obligr.io/api_v2/message/report")
.method("POST", body)
.addHeader("Authorization", "Bearer [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({
'date_from': '2020-07-29 00:00:00',
'date_to': '2020-07-29 23:59:59',
'sender_id': 'OBLIGR',
'message': 'THIS IS A TEST MESSAGE',
'job_id': '2984201'
});
var config = {
method: 'post',
url: 'https://obligr.io/api_v2/message/report',
headers: {
'Authorization': 'Bearer [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/message/report",
"method": "POST",
"timeout": 0,
"headers": {
"Authorization": "Bearer [YOUR_API_KEY]",
"Content-Type": "application/x-www-form-urlencoded",
"Cookie": "[COOKIES]"
},
"data": {
"date_from": "2020-07-29 00:00:00",
"date_to": "2020-07-29 23:59:59",
"sender_id": "OBLIGR",
"message": "THIS IS A TEST MESSAGE",
"job_id": "2984201"
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
{
“success”: true,
“error”: null,
“data”: [
{
“job_id”: 2984201,
“sender_id”: “OBLIGR”,
“total_number”: 1,
“total_messages”: 1,
“message”: “THIS IS A TEST MESSAGE”,
“date_submitted”: “2020-07-29 18:30:05”,
“unicode”: “”,
“status”: “Completed”,
“send_by”: “api”,
“parent_job_id”: null,
“re_schedule_time”: 0,
“re_schedule_status”: null
}]}
curl --location --request POST 'https://obligr.io/api_v2/message/report_details/2984201' \ --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/message/report_details/2984201",
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://obligr.io/api_v2/message/report_details/[JOB_ID]?api_key=[YOUR_API_KEY]
var client = new RestClient(“https://obligr.io/api_v2/message/report_details/2984201”);
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/report_details/2984201", 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/report_details/2984201")
.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/report_details/2984201',
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/report_details/2984201",
"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”: [
{
“mobile_no”: “8225838383”,
“status”: “DELIVRD”,
“message_id”: “005388383100162019500647619025731”
}]}
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”
}]}
|
Key
|
Value
|
Description
|
|---|---|---|
|
sender_id (string)
|
DEMOOO (string)
|
REQUIRED - 6 Character.
|
|
message (string)
|
THIS IS A TEST MESSAGE IT SHOULD BE ABOVE 160 CHARACTER PLEASE TYPE 160 CHARACTER FOR APPROVE THIS SENDER ID
|
REQUIRED sample message
|
curl -X POST \ https://obligr.io/api_v2/message/add_sender_id \ -H 'authorization: Bearer [YOUR_API_KEY]' \ -H 'cache-control: no-cache' \ -H 'content-type: application/x-www-form-urlencoded' \ -d 'sender_id=BLKSMS&message=YOUR_MESSAGE'
<?php$curl = curl_init();curl_setopt_array($curl, array(CURLOPT_URL => "https://obligr.io/api_v2/message/add_sender_id",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 => "sender_id=DEMOOO&message=THIS%20IS%20A%20TEST%20MESSAGE%20IT%20SHOULD%20BE%20ABOVE%20160%20CHARACTER%20PLEASE%20TYPE%20160%20CHARACTER%20FOR%20APPROVE%20THIS%20SENDER%20ID",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;
var client = new RestClient("https://obligr.io/api_v2/message/add_sender_id");
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("sender_id", "DEMOOO");
request.AddParameter("message", "THIS IS A TEST MESSAGE IT SHOULD BE ABOVE 160 CHARACTER PLEASE TYPE 160 CHARACTER FOR APPROVE THIS SENDER ID");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
import http.client
import mimetypes
conn = http.client.HTTPSConnection("obligr.io")
payload = 'sender_id=DEMOOO&message=THIS%20IS%20A%20TEST%20MESSAGE%20IT%20SHOULD%20BE%20ABOVE%20160%20CHARACTER%20PLEASE%20TYPE%20160%20CHARACTER%20FOR%20APPROVE%20THIS%20SENDER%20ID'
headers = {
'Authorization': 'Bearer [YOUR_API_KEY]',
'Content-Type': 'application/x-www-form-urlencoded',
'Cookie': '[COOKIES]'
}
conn.request("POST", "/api_v2/message/add_sender_id", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
OkHttpClientclient = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/x-www-form-urlencoded");
RequestBody body = RequestBody.create(mediaType, "sender_id=DEMOOO&message=THIS IS A TEST MESSAGE IT SHOULD BE ABOVE 160 CHARACTER PLEASE TYPE 160 CHARACTER FOR APPROVE THIS SENDER ID");
Request request = new Request.Builder()
.url("https://obligr.io/api_v2/message/add_sender_id")
.method("POST", body)
.addHeader("Authorization", "Bearer [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({
'sender_id': 'DEMOOO',
'message': 'THIS IS A TEST MESSAGE IT SHOULD BE ABOVE 160 CHARACTER PLEASE TYPE 160 CHARACTER FOR APPROVE THIS SENDER ID'
});
var config = {
method: 'post',
url: 'https://obligr.io/api_v2/message/add_sender_id',
headers: {
'Authorization': 'Bearer [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/message/add_sender_id",
"method": "POST",
"timeout": 0,
"headers": {
"Authorization": "Bearer [YOUR_API_KEY]",
"Content-Type": "application/x-www-form-urlencoded",
"Cookie": "[COOKIES]"
},
"data": {
"sender_id": "DEMOOO",
"message": "THIS IS A TEST MESSAGE IT SHOULD BE ABOVE 160 CHARACTER PLEASE TYPE 160 CHARACTER FOR APPROVE THIS SENDER ID"
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});
curl -X POST \
https://obligr.io/api_v2/message/delete_sender_id/{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/delete_sender_id/DEMOOO",<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/message/delete_sender_id/DEMOOO");
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/delete_sender_id/DEMOOO", 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/delete_sender_id/DEMOOO")
.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/delete_sender_id/DEMOOO',
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://demo.obligr.com/api_v2/message/delete_sender_id/DEMOOO",
"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”: “Sender ID DEMOOO Successfully Deleted.”
}