Bulk Sms Developer Api

Bulk SMS API Documentation for website / software integration



SEND SMS API REQUEST :


http://sms.shivstar.in/sms-panel/api/http/index.php?username=(username)&apikey=(apikey)&apirequest=Text&sender=(senderid)&mobile=MobileNumber &message=SMSMessage&route= RouteName&TemplateID=DLT-Template-ID&format=JSON




SEND UNICODE SMS API REQUEST :


http://sms.shivstar.in/sms-panel/api/http/index.php?username=(username)&apikey=(apikey)&apirequest=Unicode&sender=(senderid)&mobile=MobileNumber &message=SMSMessage&route= RouteName&TemplateID=DLT-Template-ID&format=JSON

CHECK CREDIT API REQUEST :


http://sms.shivstar.in/sms-panel/api/http/index.php?username=)username}&apikey=(apikey)&apirequest=CreditCheck &route=RouteName&format=JSON

DELIVERY REPORT API REQUEST :


http://sms.shivstar.in/sms-panel/api/http/index.php?username=(username)&apikey=(apikey)&apirequest=DeliveryReport &messageid=MessageID&format=JSON

PHP CODE

// Account details
$username = 'Your Username';
$apiKey = 'Your API Key';
$apiRequest = 'Text';
// Message details
$numbers = '9999999999,8999999989';
$sender = 'SIVSTR';
$message = 'This is your message';
$templateid = "DLT Template ID";
// Route details
$apiRoute = 'TRANS';
// Prepare data for POST request
$data = 'username='.$username. '&apikey='.$apiKey.'&apirequest=' .$apiRequest.'&route='.$apiRoute. '&mobile=
'.$numbers.'&sender=' .$sender."&TemplateID=".$templateid. "&message=".$message;
// Send the GET request with cURL
$url = 'http://www.hostname.com/sms-panel/api/http/index.php?'.$data;
$url = preg_replace("/ /", "%20", $url);
$response = file_get_contents($url);
// Process your response here
echo $response;
?>