Website Hosting Service in Bangladesh

Enterprise Hosting Solutions in Bangladesh

BD: +88 09613-250250 US: +1 786-766-8505
অতিরিক্ত চার্জ ছাড়া, রেগুলার কল রেটে কথা বলুন
Support Payment Options Office Locations

Bulk SMS API in Bangladesh

SMS enable your software applications and websites with Alpha Net's Easy to use SMS Gateway API. OTP, Account Verifications, Notifications & Reminders are some ways applications could utilize SMS Gateway and API. Alpha SMS API provides a powerful and easy to send SMS Capability to your projects. Add  SMS functionality to School Management Software, Small Business SMS marketing, ISP, Corporates & NGO in Bangladesh. For a Trial Account, please call us +88 09613 250 250 or contact us online.

How to Send SMS Through API

Alpha SMS API can be used by both GET and POST Method.

You can send SMS from your software or application by integrating Alpha SMS API. Just follow the code samples below to send SMS API from your applications. To obtain your API Key, please login to your SMS Panel & goto "My account" > "User configuration" you will get your api access token (Webservices token) here. Now you have to follow the instructions below.

API URL

http://alphasms.biz/index.php?app=ws

Send SMS (Example)

Example GET Method:

http://alphasms.biz/index.php?app=ws&u=username&h=a45a02791b2fe2fedb078c39fd83637a&op=pv&to=01979547393&msg=test+only

When succeeded Server will returns OK status message in JSON format:

{'data':[{'status':'OK','error':'0','smslog_id':'30','queue':'afb5f34575e30ec4efe4471cf5d1bee4','to':'01979547393'}],'error_string':null}

SMS API Codes samples in popular languages.

We have included code samples for sending SMS in PHP, C#, ASP.Net, Android, VB.NET etc. Choose your choice of Language from the tabs below to view SMS API Code samples.

  • PHP
  • C#
  • ASP.NET
  • ANDROID
  • VB.NET
   
 
    $username = "YourUserNameHere";
    $hash = "YourTokenCodeHere"; //generate token from the control panel
    $numbers = "017xxxxxxxx,018xxxxxxxx"; //Recipient Phone Number multiple number must be separated by comma
    $message = "Simple text message.";


    $params = array('app'=>'ws', 'u'=>$username, 'h'=>$hash, 'op'=>'pv', 'unicode'=>'1','to'=>$numbers, 'msg'=>$message);

    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, "http://alphasms.biz/index.php?".http_build_query($params, '', '&'));
    curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type:application/json", "Accept:application/json"));
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);

    $response = curl_exec($ch);
    curl_close ($ch);


SMS API Parameters

Listed in below are the API parameters available for individual tasks.

Name Description
h Hash token, configured from User Configuration menu
u Username
op Operation or type of action (example: op=pv for Send SMS)
to Destination numbers, username or #groupcode, may use commas
nofooter Remove SMS footer (nofooter=1 will remove SMS footer.)
msg Message (+ or %20 for spaces, urlencode for non ascii chars)
schedule Schedule message delivery, format: YYYY-MM-DD hh:mm:ss
unicode Whether message unicode or not (1=unicode, 0=not unicode)

ENTERPRISE HOSTING SOLUTIONS IN BANGLADESH

Help Line

+88 09613 250 250

Newsletter Subscription

Sign up for special offers and discounts