Msgclub

Bulk SMS Service

Bulk SMS PHP API to send SMS via PHP API code

Along with developer and technocrats, you can also do API Integration into your software easily.

With the help of ready to use Bulk SMS PHP API  and source code, you can send information in few Minutes. We have ready PHP code for all kind of customer's requirement like -

1. Send SMS HTTP PHP source code or API - Send single number or less than 100-200 numbers with same content.

2. Bulk SMS XML PHP source code or API - Send more than 200 numbers in a single click with same content.

3. JSON PHP source code or Send SMS API - Send more than 200 numbers in single click with different content.


The Web based  Bulk SMS software enables to take any of API that belongs to its software.


PHP HTTP Send SMS API is here for HTTP users 

PHP Sample API code in HTTP →

<?php




function sendsmsGET($mobileNumber,$senderId,$routeId,$message,$serverUrl,$authKey)

{


   $getData = 'mobileNos='.$mobileNumber.'&message='.urlencode($message).'&senderId='.$senderId.'&routeId='.

$routeId;


   //API URL

   $url="http://".$serverUrl."/rest/services/sendSMS/sendGroupSms?AUTH_KEY=".$authKey."&".$getData;



   // init the resource

   $ch = curl_init();

   curl_setopt_array($ch, array(

       CURLOPT_URL => $url,

       CURLOPT_RETURNTRANSFER => true,

       CURLOPT_SSL_VERIFYHOST => 0,

       CURLOPT_SSL_VERIFYPEER => 0


   ));



   //get response

   $output = curl_exec($ch);


   //Print error if any

   if(curl_errno($ch))

   {

       echo 'error:' . curl_error($ch);

   }


   curl_close($ch);


   return $output;

}







function sendsmsPOST($mobileNumber,$senderId,$routeId,$message,$serverUrl,$authKey)

{


  

  

   //Prepare you post parameters

   $postData = array(

       

     

       'mobileNumbers' => $mobileNumber,        

       'smsContent' => $message,

       'senderId' => $senderId,

       'routeId' => $routeId,       

       "smsContentType" =>'english'

   );



   $data_json = json_encode($postData);



   $url="http://".$serverUrl."/rest/services/sendSMS/sendGroupSms?AUTH_KEY=".$authKey;



   // init the resource

   $ch = curl_init();


   


   curl_setopt_array($ch, array(

       CURLOPT_URL => $url,

       CURLOPT_HTTPHEADER => array('Content-Type: application/json','Content-Length: ' . strlen($data_json)),

       CURLOPT_RETURNTRANSFER => true,

       CURLOPT_POST => true,

       CURLOPT_POSTFIELDS => $data_json,

       CURLOPT_SSL_VERIFYHOST => 0,

       CURLOPT_SSL_VERIFYPEER => 0

   ));


   //get response

   $output = curl_exec($ch);


   //Print error if any

   if(curl_errno($ch))

   {

       echo 'error:' . curl_error($ch);

   }

   curl_close($ch);

   return $output;

}




?>


PHP XML Bulk SMS API is here for XML users

http://msg.msgclub.net/rest/services/sendSMS/sendGroupSmsXmlApi


<Sms>

<AUTH_KEY>yourAuthKey</AUTH_KEY>

<smsContent>hello how are you</smsContent>

<senderId>SMSTST</senderId>

<routeId>2</routeId>

<mobileNumbers>8888888888,9999999999</mobileNumbers>

<smsContentType>english</smsContentType>

<groupName>nid,a,groupA</groupName>

<signature>abcde</signature>

<scheduleddate>12/05/2015 12:00</scheduleddate>                                                            

</Sms>                                                                                                                                        


PHP Sample  API code in XML  

<?php




function sendsmsGET($mobileNumber,$senderId,$routeId,$message,$serverUrl,$authKey)

{


   $getData = 'mobileNos='.$mobileNumber.'&message='.urlencode($message).'&senderId='.$senderId.'&routeId='.

$routeId;


   //API URL

   $url="http://".$serverUrl."/rest/services/sendSMS/sendGroupSms?AUTH_KEY=".$authKey."&".$getData;



   // init the resource

   $ch = curl_init();

   curl_setopt_array($ch, array(

       CURLOPT_URL => $url,

       CURLOPT_RETURNTRANSFER => true,

       CURLOPT_SSL_VERIFYHOST => 0,

       CURLOPT_SSL_VERIFYPEER => 0


   ));



   //get response

   $output = curl_exec($ch);


   //Print error if any

   if(curl_errno($ch))

   {

       echo 'error:' . curl_error($ch);

   }


   curl_close($ch);


   return $output;

}







function sendsmsPOST($mobileNumber,$senderId,$routeId,$message,$serverUrl,$authKey)

{


  

  

   //Prepare you post parameters

   $postData = array(

       

     

       'mobileNumbers' => $mobileNumber,        

       'smsContent' => $message,

       'senderId' => $senderId,

       'routeId' => $routeId,       

       "smsContentType" =>'english'

   );



   $data_json = json_encode($postData);



   $url="http://".$serverUrl."/rest/services/sendSMS/sendGroupSms?AUTH_KEY=".$authKey;



   // init the resource

   $ch = curl_init();


   


   curl_setopt_array($ch, array(

       CURLOPT_URL => $url,

       CURLOPT_HTTPHEADER => array('Content-Type: application/json','Content-Length: ' . strlen($data_json)),

       CURLOPT_RETURNTRANSFER => true,

       CURLOPT_POST => true,

       CURLOPT_POSTFIELDS => $data_json,

       CURLOPT_SSL_VERIFYHOST => 0,

       CURLOPT_SSL_VERIFYPEER => 0

   ));


   //get response

   $output = curl_exec($ch);


   //Print error if any

   if(curl_errno($ch))

   {

       echo 'error:' . curl_error($ch);

   }

   curl_close($ch);

   return $output;

}




?>



PHP JSON  Bulk SMS API is here use

http://msg.msgclub.net/rest/services/sendSMS/sendGroupSms?AUTH_KEY=YourAuthKey


English -

{"smsContent":"Hello Test SMS","groupId":"0","routeId":"1","mobileNumbers":"9999999999","senderId":

"SMSTST","signature":"signature","smsContentType":"english"}




Unicode -

{"smsContent":"हैलो टेस्ट एसएमएस","groupId":"0","routeId":"1","mobileNumbers":"9999999999","senderId":

"SMSTST","signature":"signature","smsContentType":"unicode"},"


PHP Sample API code in JSON

<?php

function sendsmsGET($mobileNumber,$senderId,$routeId,$message,$serverUrl,$authKey)

{

    $getData = 'mobileNos='.$mobileNumber.'&message='.urlencode($message).'&senderId='.$senderId.'&routeId='.

$routeId;

    //API URL

    $url="http://".$serverUrl."/rest/services/sendSMS/sendGroupSms?AUTH_KEY=".$authKey."&".$getData;

    // init the resource

    $ch = curl_init();

    curl_setopt_array($ch, array(

       CURLOPT_URL => $url,

       CURLOPT_RETURNTRANSFER => true,

       CURLOPT_SSL_VERIFYHOST => 0,

       CURLOPT_SSL_VERIFYPEER => 0

    ));

    //get response

    $output = curl_exec($ch);

    //Print error if any

    if(curl_errno($ch))

    {

       echo 'error:' . curl_error($ch);

    }

    curl_close($ch);

    return $output;

}

function sendsmsPOST($mobileNumber,$senderId,$routeId,$message,$serverUrl,$authKey)

{

   

   

    //Prepare you post parameters

    $postData = array(

      

    

       'mobileNumbers' => $mobileNumber,       

       'smsContent' => $message,

       'senderId' => $senderId,

       'routeId' => $routeId,      

       "smsContentType" =>'english'

    );

    $data_json = json_encode($postData);

    $url="http://".$serverUrl."/rest/services/sendSMS/sendGroupSms?AUTH_KEY=".$authKey;

    // init the resource

    $ch = curl_init();

   

    curl_setopt_array($ch, array(

       CURLOPT_URL => $url,

       CURLOPT_HTTPHEADER => array('Content-Type: application/json','Content-Length: ' . strlen($data_json)),

       CURLOPT_RETURNTRANSFER => true,

       CURLOPT_POST => true,

       CURLOPT_POSTFIELDS => $data_json,

       CURLOPT_SSL_VERIFYHOST => 0,

       CURLOPT_SSL_VERIFYPEER => 0

    ));

    //get response

    $output = curl_exec($ch);

    //Print error if any

    if(curl_errno($ch))

    {

       echo 'error:' . curl_error($ch);

    }

    curl_close($ch);

    return $output;

}

?>


Just Integrate API easily into any software. We offer these Send SMS API in PHP in free of cost to Send SMS directly from website or software. Only you have to pay the small amount for the send SMS services. For more details, you can Contact us.

Send SMS via Bulk SMS VB.NET API and Sample Code

Do you want to Send SMS from your software/application?

Are you searching for Bulk SMS VB.NET API with source code in VB.NET?

And You don’t want to spend time and money in writing codes.


Then you are at right place, Use our ready to use scripts, in order to send SMS from your own software or application.Yes, we provide you Send SMS API and source code in VB.NET, so you can send SMS by doing API integration into your software or application and start sending SMS in minutes.


We also provide you schedule SMS API, Get balance API and Add balance API with the source code in VB.NET and much more.  



Bulk SMS  API -


Scheduled Bulk SMS VB.NET API -    

http://msg.msgclub.net/rest/services/sendSMS/sendGroupSms?AUTH_KEY=YourAuthKey&message=

message&senderId=dddddd&routeId=1&mobileNos=9999999999,9999999999&smsContentType=

english&scheduleddate=26/08/2015 17:00


Get Balance VB.NET API -   


Add balance VB.NET API -  


Sample / Source Code for VB.NET →

Module Module1

Sub Main()

   

   Dim sendsmscall As New SendSMSVBDotNet.SendSms

   Dim url As String

   Dim url1 As String

   Dim yourAuthKey As String

   Dim message As String

   Dim senderid As String

   Dim routeid As String

   Dim mobileNo As String

   Dim smsType As String

   Dim scheduleTime As String

   Dim signature As String

   Dim groupName As String

   Dim builder As New StringBuilder


      url = "Sample URL for Post and Get"    ' URL = "Sample"  'eg-- www.abc.com       

      yourAuthKey = "Sample Auth key" 'eg -- 16 digits alphanumeric

      message = "Sample message to sent" '"Hello this is test"

      senderid = "Sample Sender Id" '"Sample" 'eg -- Testin'

      routeid = "Sampe route Id" 'eg 1

      mobileNo = "Sample Mobile No" 'eg-- '99999999xx,99999998xx

      smsType = "english" 'eg - english or unicode  

      scheduleTime = "Sample Schedule time"