Key |
Value |
Description |
---|---|---|
username (string)
|
DEMOABCD
|
REQUIRED
|
company_name (string)
|
OBLIGR INDIA PVT LTD
|
REQUIRED
|
attn (string)
|
OBLIGR
|
REQUIRED
|
address (string)
|
20/3 SAJAN NAGAR
|
REQUIRED
|
pincode (number)
|
452001
|
REQUIRED - 6 DIGIT
|
city (string)
|
INDORE
|
REQUIRED
|
state (string)
|
MADHYA PRADESH
|
REQUIRED
|
country (string)
|
INDIA
|
REQUIRED
|
gst_number (string)
|
23AACC06906C1ZV
|
REQUIRED - 15 Characters
|
gst_code (number)
|
23
|
REQUIRED - 2 DIGIT
|
pan_number (string)
|
AACC06906C
|
REQUIRED - 10 Characters
|
curl --location --request POST 'https://obligr.io/api_v2/user/billing_address' \ --header 'Authorization: Bearer [YOUR_API_KEY]' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data-urlencode 'username=DEMOABCD' \ --data-urlencode 'company_name=OBLIGR INDIA PVT LTD' \ --data-urlencode 'attn=OBLIGR' \ --data-urlencode 'address=20/3 SAJAN NAGAR' \ --data-urlencode 'pincode=452001' \ --data-urlencode 'city=INDORE' \ --data-urlencode 'state=MADHYA PRADESH' \ --data-urlencode 'country=INDIA' \ --data-urlencode 'gst_number=23AACC06906C1ZV' \ --data-urlencode 'gst_code=23' \ --data-urlencode 'pan_number=AACC06906C'
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://obligr.io/api_v2/user/billing_address",
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 => "username=DEMOABCD&company_name=OBLIGR%20INDIA%20PVT%20LTD&attn=OBLIGR&address=20/3%20SAJAN%20NAGAR&pincode=452001&city=INDORE&state=MADHYA%20PRADESH&country=INDIA&gst_number=23AACC06906C1ZV&gst_code=23&pan_number=AACC06906C", CURLOPT_HTTPHEADER => array( "Authorization: Bearer [YOUR_API_KEY]", "Content-Type: application/x-www-form-urlencoded" ), )); $response = curl_exec($curl); curl_close($curl); echo $response;
var client = new RestClient("https://obligr.io/api_v2/user/billing_address"); 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.AddParameter("username", "DEMOABCD"); request.AddParameter("company_name", "OBLIGR INDIA PVT LTD"); request.AddParameter("attn", "OBLIGR"); request.AddParameter("address", "20/3 SAJAN NAGAR"); request.AddParameter("pincode", "452001"); request.AddParameter("city", "INDORE"); request.AddParameter("state", "MADHYA PRADESH"); request.AddParameter("country", "INDIA"); request.AddParameter("gst_number", "23AACC06906C1ZV"); request.AddParameter("gst_code", "23"); request.AddParameter("pan_number", "AACC06906C"); IRestResponse response = client.Execute(request); Console.WriteLine(response.Content);
import http.client import mimetypes conn = http.client.HTTPSConnection("obligr.io") payload = 'username=DEMOABCD&company_name=OBLIGR%20INDIA%20PVT%20LTD&attn=OBLIGR&address=20/3%20SAJAN%20NAGAR&pincode=452001&city=INDORE&state=MADHYA%20PRADESH&country=INDIA&gst_number=23AACC06906C1ZV&gst_code=23&pan_number=AACC06906C' headers = { 'Authorization': 'Bearer [YOUR_API_KEY]', 'Content-Type': 'application/x-www-form-urlencoded' } conn.request("POST", "/api_v2/user/billing_address", 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, "username=DEMOABCD&company_name=OBLIGR INDIA PVT LTD&attn=OBLIGR&address=20/3 SAJAN NAGAR&pincode=452001&city=INDORE&state=MADHYA PRADESH&country=INDIA&gst_number=23AACC06906C1ZV&gst_code=23&pan_number=AACC06906C"); Request request = new Request.Builder() .url("https://obligr.io/api_v2/user/billing_address") .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({ 'username': 'DEMOABCD', 'company_name': 'OBLIGR INDIA PVT LTD', 'attn': 'OBLIGR', 'address': '20/3 SAJAN NAGAR', 'pincode': '452001', 'city': 'INDORE', 'state': 'MADHYA PRADESH', 'country': 'INDIA', 'gst_number': '23AACC06906C1ZV', 'gst_code': '23', 'pan_number': 'AACC06906C' }); var config = { method: 'post', url: 'https://obligr.io/api_v2/user/billing_address', headers: { 'Authorization': 'Bearer [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/user/billing_address", "method": "POST", "timeout": 0, "headers": { "Authorization": "Bearer [YOUR_API_KEY]", "Content-Type": "application/x-www-form-urlencoded" }, "data": { "username": "DEMOABCD", "company_name": "OBLIGR INDIA PVT LTD", "attn": "OBLIGR", "address": "20/3 SAJAN NAGAR", "pincode": "452001", "city": "INDORE", "state": "MADHYA PRADESH", "country": "INDIA", "gst_number": "23AACC06906C1ZV", "gst_code": "23", "pan_number": "AACC06906C" } }; $.ajax(settings).done(function (response) { console.log(response); });
{
“success”: true,
“error”: null,
“data”: “Billing Address Successfully Saved.”
}
Key |
Value |
Description |
---|---|---|
name (string)
|
DEMOABCD
|
REQUIRED
|
username (string) Only characters or number, not space or special characters
|
DEMOABCD
|
REQUIRED
|
email (string)
|
REQUIRED
|
|
mobile_no (number) 10 Digit only
|
0000012345
|
REQUIRED
|
curl --location --request POST 'https://obligr.io/api_v2/user/signup' \ --header 'Authorization: Bearer [YOUR_API_KEY]' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Cookie: [COOKIES]' \ --data-urlencode 'name=DEMOABCD' \ --data-urlencode 'username=DEMOABCD' \ --data-urlencode '[email protected]' \ --data-urlencode 'mobile_no=0000012345'
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://obligr.io/api_v2/user/signup", 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 => "name=DEMOABCD&username=DEMOABCD&[email protected]&mobile_no=0000012345", 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://demo.obligr.com/api_v2/user/signup/?api_key=[YOUR_API_KEY]&name=DEMOABCD&username=DEMOABCD&[email protected]&mobile_no=0000012345
var client = new RestClient("https://obligr.io/api_v2/user/signup"); 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("name", "DEMOABCD"); request.AddParameter("username", "DEMOABCD"); request.AddParameter("email", "[email protected]"); request.AddParameter("mobile_no", "0000012345"); IRestResponse response = client.Execute(request); Console.WriteLine(response.Content);
import http.client import mimetypes conn = http.client.HTTPSConnection("obligr.io") payload = 'name=DEMOABCD&username=DEMOABCD&[email protected]&mobile_no=0000012345' headers = { 'Authorization': 'Bearer [YOUR_API_KEY]', 'Content-Type': 'application/x-www-form-urlencoded', 'Cookie': '[COOKIES]' } conn.request("POST", "/api_v2/user/signup", 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, "name=DEMOABCD&username=DEMOABCD&[email protected]&mobile_no=0000012345"); Request request = new Request.Builder() .url("https://obligr.io/api_v2/user/signup") .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({ 'name': 'DEMOABCD', 'username': 'DEMOABCD', 'email': '[email protected]', 'mobile_no': '0000012345' }); var config = { method: 'post', url: 'https://obligr.io/api_v2/user/signup', 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/user/signup", "method": "POST", "timeout": 0, "headers": { "Authorization": "Bearer [YOUR_API_KEY]", "Content-Type": "application/x-www-form-urlencoded", "Cookie": "[COOKIES] " }, "data": { "name": "DEMOABCD", "username": "DEMOABCD", "email": "[email protected]", "mobile_no": "0000012345" } }; $.ajax(settings).done(function (response) { console.log(response); });
{
“success”: true,
“error”: null,
“data”: “User `DEMOABCD` created success. Password sent on email or mobile.”
}
Key |
Value |
Description |
---|---|---|
username (string)
|
DEMOABCD
|
REQUIRED
|
credit_type (string)
|
sms
|
REQUIRED sms , voice
|
credit (number)
|
20
|
REQUIRED
|
service_type (string)
|
Transactional
|
REQUIRED Transactional,Promotional,open_dnd,voice_call
|
price_per_credit (number)
|
0.20
|
REQUIRED
|
curl --location --request POST 'https://obligr.io/api_v2/user/credit' \ --header 'Authorization: Bearer [YOUR_API_KEY]' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Cookie: [COOKIES]' \ --data-urlencode 'username=DEMOABCD' \ --data-urlencode 'credit_type=sms' \ --data-urlencode 'credit=20' \ --data-urlencode 'service_type=Transactional' \ --data-urlencode 'price_per_credit=0.20'
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://obligr.io/api_v2/user/credit", 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 => "username=DEMOABCD&credit_type=sms&credit=20&service_type=Transactional&price_per_credit=0.20", 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/user/credit?api_key=[YOUR_API_KEY]&username=DEMOABCD&credit_type=sms&credit=20&service_type=Transactional&price_per_credit=0.20
var client = new RestClient("https://obligr.io/api_v2/user/credit"); 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.AddParameter("username ", "DEMOABCD"); request.AddParameter("credit_type", "sms"); request.AddParameter("credit ", "20"); request.AddParameter("service_type", "Transactional"); request.AddParameter("price_per_credit", "0.20"); IRestResponse response = client.Execute(request); Console.WriteLine(response.Content);
import http.client import mimetypes conn = http.client.HTTPSConnection("obligr.io") payload = 'username%20=DEMOABCD&credit_type=sms&credit%20=20&service_type=Transactional&price_per_credit=0.20' headers = { 'Authorization': 'Bearer [YOUR_API_KEY]', 'Content-Type': 'application/x-www-form-urlencoded' } conn.request("POST", "/api_v2/user/credit", 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, "username =DEMOABCD&credit_type=sms&credit =20&service_type=Transactional&price_per_credit=0.20"); Request request = new Request.Builder() .url("https://obligr.io/api_v2/user/credit") .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({ 'username ': 'DEMOABCD', 'credit_type': 'sms', 'credit ': '20', 'service_type': 'Transactional', 'price_per_credit': '0.20' }); var config = { method: 'post', url: 'https://obligr.io/api_v2/user/credit', headers: { 'Authorization': 'Bearer [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/user/credit", "method": "POST", "timeout": 0, "headers": { "Authorization": "Bearer [YOUR_API_KEY]", "Content-Type": "application/x-www-form-urlencoded" }, "data": { "username ": "DEMOABCD", "credit_type": "sms", "credit ": "20", "service_type": "Transactional", "price_per_credit": "0.20" } }; $.ajax(settings).done(function (response) { console.log(response); });
{
“success”: false,
“error”: “Validation error”,
“data”: {
“username”: [
“Username cannot be blank.”
],
“credit”: [
“Credit cannot be blank.”
]
}
}
curl --location --request POST 'https://obligr.io/api_v2/user/list' \ --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/user/list",
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/user/list/?api_key=[YOUR_API_KEY]
var client = new RestClient("https://obligr.io/api_v2/user/list"); 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/user/list", 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/user/list") .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/user/list', 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/user/list", "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”: [ {
“username”: “DEMOABCD”,
“name”: “DEMOABCD”,
“email”: “[email protected]”,
“mobile”: “0000012345”,
“status”: “active”,
“type”: “User”,
“sms_credit”: 25,
“voice_credit”: 5
}]}
Key |
Value |
Description |
---|---|---|
username (string)
|
DEMOABCD
|
REQUIRED
|
curl --location --request POST 'https://obligr.io/api_v2/user/detail' \ --header 'Authorization: Bearer [YOUR_API_KEY]' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Cookie: [COOKIES]' \ --data-urlencode 'username=DEMOABCD'
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://obligr.io/api_v2/user/detail",
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 => "username=DEMOABCD", 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/user/detail/?api_key=[YOUR_API_KEY]&username=DEMOABCD
var client = new RestClient("https://obligr.io/api_v2/user/detail"); 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("username", "DEMOABCD"); IRestResponse response = client.Execute(request); Console.WriteLine(response.Content);
import http.client import mimetypes conn = http.client.HTTPSConnection("obligr.io") payload = 'username=DEMOABCD' headers = { 'Authorization': 'Bearer [YOUR_API_KEY]', 'Content-Type': 'application/x-www-form-urlencoded' } conn.request("POST", "/api_v2/user/detail", 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, "username=DEMOABCD"); Request request = new Request.Builder() .url("https://obligr.io/api_v2/user/detail") .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({ 'username': 'DEMOABCD' }); var config = { method: 'post', url: 'https://obligr.io/api_v2/user/detail', headers: { 'Authorization': 'Bearer [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/user/detail", "method": "POST", "timeout": 0, "headers": { "Authorization": "Bearer [YOUR_API_KEY]", "Content-Type": "application/x-www-form-urlencoded" }, "data": { "username": "DEMOABCD" } }; $.ajax(settings).done(function (response) { console.log(response); });
{
“success”: true,
“error”: null,
“data”: {
“username”: “DEMOABCD”,
“name”: “DEMOABCD”,
“email”: “[email protected]”,
“mobile”: “0000012345”,
“status”: “active”,
“type”: “User”,
“sms_credit”: 25,
“voice_credit”: 5
}}
Key |
Value |
Description |
---|---|---|
mobile_number (string)(string)
|
08225838383,918225848484,+918225838383
|
REQUIRED
|
curl --location --request POST 'https://obligr.io/api_v2/contact/filter_number' \ --header 'Authorization: Bearer [YOUR_API_KEY]' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Cookie: [COOKIES]' \ --data-urlencode 'mobile_number=08225838383,918225848484,+918225838383'
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://obligr.io/api_v2/contact/filter_number",?
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 => "mobile_number=08225838383%2C918225848484%2C+918225838383", 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/contact/filter_number?api_key=[YOUR_API_KEY]&mobile_number=08225838383,918225848484,+918225838383
import http.client import mimetypes conn = http.client.HTTPSConnection("obligr.io") payload = 'mobile_number=08225838383%2C918225848484%2C+918225838383' headers = { 'Authorization': 'Bearer [YOUR_API_KEY]', 'Content-Type': 'application/x-www-form-urlencoded' } conn.request("POST", "/api_v2/contact/filter_number", 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, "mobile_number=08225838383,918225848484,+918225838383"); Request request = new Request.Builder() .url("https://obligr.io/api_v2/contact/filter_number") .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({ 'mobile_number': '08225838383,918225848484,+918225838383' }); var config = { method: 'post', url: 'https://obligr.io/api_v2/contact/filter_number', 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/contact/filter_number", "method": "POST", "timeout": 0, "headers": { "Authorization": "Bearer [YOUR_API_KEY]", "Content-Type": "application/x-www-form-urlencoded" }, "data": { "mobile_number": "08225838383,918225848484,+918225838383" } }; $.ajax(settings).done(function (response) { console.log(response); });
{
“success”: true,
“error”: null,
“data”: {
“valid_number”: [
“8225838383”,
“8225848484”
],
“invalid_number”: [],
“duplicate_number”: [
“8225838383”
] } }