Our API Documentation2 PDF
Our API Documentation2 PDF
Login>Developers
msg SMS body N.B: Please use url encoding to send some special characters like &, $, @ etc
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.
$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; }