0% found this document useful (0 votes)
234 views

Our API Documentation2 PDF

1. The document provides API documentation for sending SMS through Elitbuzz Technologies Limited, including API URLs, parameters, and error codes. 2. It describes how to construct API URLs for sending SMS, getting delivery reports, and retrieving the API key with different parameters and endpoints. 3. Examples of PHP source code are given to illustrate how to call the SMS sending API to dynamically send SMS with the API key, contacts, sender ID, and message.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
234 views

Our API Documentation2 PDF

1. The document provides API documentation for sending SMS through Elitbuzz Technologies Limited, including API URLs, parameters, and error codes. 2. It describes how to construct API URLs for sending SMS, getting delivery reports, and retrieving the API key with different parameters and endpoints. 3. Examples of PHP source code are given to illustrate how to call the SMS sending API to dynamically send SMS with the API key, contacts, sender ID, and message.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Elitbuzz Technologies Limited

Our API Documentation is as follows:


Your API Key : See your Developers Option

Login>Developers

API URL (GET & POST) :


http://bangladeshsms.com/smsapi?api_key=APIKEY&type=text&contacts=NUMBER&senderid=
Approved Sender ID&msg=Message Content

Parameter Name Meaning/Value Description

api_key API Key Your API Key ()

type text/unicode text for normal SMS/unicode for Bangla SMS

contacts mobile number Exp: 88017XXXXXXXX+88018XXXXXXXX+88019XXXXXXXX...

msg SMS body N.B: Please use url encoding to send some special characters like &, $, @ etc

Delivery Report API

API URL: http://bangladeshsms.com/miscapi/(API Key )/getDLR/getAll

API URL : Your API Key ()

Chunk per Call: 100

SMS Shoot ID Enter the SMS ID returned when submitted SMS via API. It will return an array
having mobile numbers and their DLR status.

API URL: http://bangladeshsms.com/miscapi/(API Key )/getDLR/(SMS SHOOT ID)

API Key Retrieval


API URL: http://bangladeshsms.com/getkey/(username)/( password)
Username : Your account User ID used to login.
Password: Account password that you use to login.
Error Code & Meaning
Error Code Meaning

1002 Sender Id/Masking Not Found

1003 API Not Found

1004 SPAM Detected

1005 Internal Error

1006 Internal Error

1007 Balance Insufficient

1008 Message is empty

1009 Message Type Not Set (text/Unicode)

1010 Invalid User & Password

1011 Invalid User Id

Php Source Code:

$api_key = "your api_key";


$contacts = 'mobile variable dynamically';
$senderid = 'Your Sender name';
$sms = 'SMS Text';

$URL =
"http://bangladeshsms.com/smsapi?api_key=".urlencode($api_key)."&type=text&contacts=".urlenc
ode($contacts)."&senderid=".urlencode($senderid)."&msg=".urlencode($sms);

function SendSMS($URL)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$URL);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_POST, 0);
try{
$output = $content=curl_exec($ch);
print_r($output);
}catch(Exception $ex){
$output = "-100";
}
return $output; }

You might also like