curl -X POST \ https://obligr.io/api_v2/user/balance \ -H 'authorization: Bearer [YOUR_API_KEY]' \ -H 'cache-control: no-cache' \ -H 'content-type: application/json'
<?php
$curl = curl_init();
curl_setopt_array($curl, array( CURLOPT_URL => "https://obligr.io/api_v2/user/balance", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_HTTPHEADER => array( "authorization: Bearer [YOUR_API_KEY]", "cache-control: no-cache", "content-type: application/json" ), )); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }
{ "success": true, "error": null, "data": { "sms_credit": 843813, "voice_credit": 311727 } }
Key |
Value |
Description |
---|---|---|
company_name (string)
|
alexander
|
REQUIRED
|
attn (string)
|
|
REQUIRED
|
address (string)
|
|
REQUIRED
|
pincode (number)
|
|
REQUIRED - 6 DIGIT
|
city (string)
|
|
REQUIRED
|
state (string)
|
|
REQUIRED
|
country (string)
|
India
|
REQUIRED
|
gst_code (number)
|
|
REQUIRED - 2 DIGIT
|
pan_number (string)
|
|
REQUIRED - 10 Characters
|
curl -X POST \ https://obligr.io/api_v2/user/billing_address \ -H 'authorization: Bearer [YOUR_API_KEY]' \ -H 'cache-control: no-cache' \ -H 'content-type: application/json' -d 'company_name=XXXX&attn=XXXX'
<?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 => array( 'company_name' => 'XXXX', 'attn' => 'XXXX', 'address' => 'XXXX', 'pincode' => '000000', 'city' => 'XXXX', 'state' => 'XXXX', 'country' => 'India', 'gst_number' => 'XXXX', 'gst_code' => '00', 'pan_number' => 'XXXX' ), CURLOPT_HTTPHEADER => array( "Authorization: Bearer [YOUR_API_KEY]", "Content-Type: application/json" ), )); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }
{ "success": true, "error": null, "data": "Billing Address Successfully Saved." }
Key |
Value |
Description |
||
---|---|---|---|---|
sender_id (string)
|
BLKSMS
|
REQUIRED -6 Character.
|
||
message (string)
|
|
REQUIRED
|
||
mobile_no (string)
|
98765XXXX,98766XXXX
|
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
|
||
country_coded (string)
|
eg.IN (default)
|
Select country if you want to send International SMS(Outside India).
|
||
|
|
Message Count
|
||
|
|
+267 - Botswana (+267)
|
||
|
|
+86 - China (+86)
|
||
|
|
+49 - Germany (Germany) (+49)
|
||
|
|
+30 - Greece (Greece) (+30)
|
||
|
|
+62 - Indonesia (Indonesia) (+62)
|
|
|
|
|
+964 - Iraq (+964)
|
||
|
|
+39 - Italy (+39)
|
||
|
|
+60 - Malaysia (Malaysia) (+60)
|
||
|
|
+960 - Maldives (Maldives) (+960)
|
||
|
|
+230 - Mauritius (Mauritius) (+230)
|
||
|
|
+52 - Mexico (Mexico) (+52)
|
||
|
|
+95 - Myanmar (Myanmar) (+95)
|
||
|
|
+977 - Nepal (Nepal) (+977)
|
||
|
|
+64 - New Zealand (New Zealand) (+64)
|
||
|
|
+234 - Nigeria (Nigeria) (+234)
|
||
|
|
+968 - Oman (Oman (+968)
|
||
|
|
+63 - Philippines (Philippines) (+63)
|
||
|
|
+7 - Russian Federation (Russian Federation) (+7)
|
||
|
|
+65 - Singapore (Singapore) (+65)
|
||
|
|
+66 - Thailand (+66)
|
||
|
|
+971 - United Arab Emirates (United Arab Emirates) (+971)
|
||
|
|
+44 - United Kingdom (United Kingdom) (+44)
|
||
|
|
+1 - United States (+1)
|