Once the PHP API has been integrated into your software, these protocols will allow for automated SMS messages to be sent from your application.
API is the HTTP to SMS API. This is a restful API that uses simple query parameters via URLs, however, we encourage our clients to use POST requests when submitting a request to our server.
<?php
//Enter your login username
$username="xxxxxxx";
//Enter your login password
$password="";
//Enter your text message
$message="hello";
//Enter your Sender ID
$sender="";
//Enter your receiver mobile number
$mobile_number="XXXXXXXXXXX";
//Don't change below code use as it is
$url="https://www.bulksmsgateway.in/sendmessage.php?user=".urlencode($username)."&password=".urlencode($password)."&
mobile=".urlencode($mobile_number)."&message=".urlencode($message)."&sender=".urlencode($sender)."&type=".urlencode('3');
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$curl_scraped_page = curl_exec($ch);
curl_close($ch);
?>
Please note that some of the above code has been supplied to Bulk SMS Gateway
by clients. As such, accuracy is not guaranteed by Bulk SMS Gateway.