Dear Clients! for best customer support dial our customer care helpline number : 0304-111-8003

Bulk SMS [POST] Request

Use POST methos if you have to send message to large list of mobile numbers, its support 100000+ Numbers with single request.

Base URL : https://www.hajanaone.com/api/sendsms.php

Perameter Required Description
apikey Yes User API Key Get from your account Dashboard
phone Yes Recipient's Mobile number
sender Yes Registered Mask Name (Sender ID)
message yes Text Message content

PHP Code Sample :
    
<?php

$api    =   'AbCdEfGhIJkLmNoPqRsTuVwXyZ';            //  Hajana One account API
$number =   923001234567,923211234567,923451234567;  //  Comma Seperated Mobile Numbers Maximum 100000
$mask   =   'SmartSMS';                              //  Registered Mask Name
$text   =   'This is Test SMS';                      //  Message Content

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"https://www.hajanaone.com/api/sendsms.php");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,
            "apikey=".$api."&phone=".$number."&sender=".$mask."&message=".$text."&sendtp=Bulk-API");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);
curl_close ($ch);

if (preg_match( "/successfully/", $result )){
    echo 'Messages successfully Sent.';
}else{
    echo 'Messages Sending Failed.';
}

?>