Sorces Code
Bulk SMS API (GET)
Hajana One SMS API Support both GET method and POST method.You can integrate it easily and use for your Business.The below guide lines will help you.
Base URL
http://www.hajanaone.com/api/sendsms.php
Important Parameters
Follow the following parameters during SMS API Integration.
Parameters | Requeired | Where it |
---|---|---|
apikey | Yes | Get your api key from your Dashboard. |
phone | Yes | Add Comma (,) sapreted Phone Number with country code. EX: 923354788113,923457894544,923596848544 |
sender | Yes | Enter your Mask name OR sender. |
message | Yes | Enter your message content here. |
oprater id | Optional | You can add oprater id. |
Sample Code
<?php
$apikey = "ZJN*****vB";
$sender = "Hajana One";
$mobile = "923001234567,923457658965";
$message = "Test SMS From Hajana One";
//Sending SMS
$url='https://www.hajanaone.com/api/sendsms.php?apikey='.api$key.'&phone='.$mobile.'&sender='.urlencode($sender).'&message='.urlencode($message);
$ch=curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_HEADER, 0);
$result = curl_exec ($ch);
echo $result;
?>
Complete API URL
http://www.hajanaone.com/api/sendsms.php?apikey=e35******vt6&phone=92******465,92****56,92***45,92****46&sender=XYZ&message=Test.