How do we integrate Bulk SMS API into your application using PHP Language??

HTTP API is most popular API. It is allows you to integrate SMS services into your own System/application for better functionality required by you.

Benefits of using Bulk SMS Gateway / HTTP API:

Bulk SMS Gateway India / HTTP API can send more than 100 messages at a time via any kind of application/portal.

You can check the balance of your account with expiry date via your application/portal.

You can check the Delivery status of your single or group SMS everything in a single places without login your web interface.

Unicode API allows you to send SMS in different languages (Tamil, Hindi, Telugu, Malayalam, Guajarati, and Marathi).

SMS

Image Source: Pixabay

How does it work?

A request to the Bulk SMS API is done by calling a URL with some required parameters (User Name, Password, Sender ID, Mobile Number, Message).When a request is made, the API along with all the parameters send to SMS Gateway server and SMS Gateway server process the request and generate response for the particular request immediately.

KAPSYSTEM provides the Bulk SMS Gateway  with HTTP API (HTTP) to be integrated in different programming language asp.net, php, Java

Sample code for php:

<?
php$workingkey=”xxxxxxxxxxxx”;
$dest_MobileNo=”xxxxxxxxx”;
$Message=”Test Message via http api”;
$SenderID=”xxxxxx”;
$sms_url=sprintf(“http://alerts.kapsystem.com/api/web2sms.php?workingkey=%s&to=%s&sender=%s&message=%s”, $workingkey, $dest_MobileNo,$SenderID, urlencode($Message));
openurl($sms_url);
function openurl($url)
{
$ch=curl_init();
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch,CURLOPT_POSTFIELDS,$postvars);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch,CURLOPT_TIMEOUT, ’3′);  $content = trim(curl_exec($ch));  curl_close($ch);
}
?>

For further assistance mail to [email protected] or call on +91 97380 10000

About Author
Nick is Tech blogger. He contributes to the Blogging, Gadgets, Social Media and Tech News section on TechAstro.