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)
|
curl -X POST \ https://obligr.io/api_v2/message/send \ -H 'authorization: Bearer [YOUR_API_KEY]' \ -H 'cache-control: no-cache' \ -H 'content-type: application/x-www-form-urlencoded' \ -d 'sender_id=BLKSMS&mobile_no=987654XXXX%2C987456321&message=YOUR_MESSAGE'
<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 => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => "sender_id=BLKSMS&message=YOUR_MESSAGE&mobile_no=987654XXXX%2C9874563211", CURLOPT_HTTPHEADER => array( "authorization: Bearer [YOUR_API_KEY]", "cache-control: no-cache", "content-type: application/x-www-form-urlencoded" ), )); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }