• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question For SMS

#1
How integration SMS APIs with codeigniter, The API am used as below :

http://demowebsite/demo.cfm?numbers=962770692825&senderid=sendername&AccName=myusername&AccPass=mypassword&msg=texthere&requesttimeout=5000000
Reply

#2
I use sendmode.com and its as simple as this:
$url = 'http://api.sendmode.com/httppost.aspx?Type=sendparam&username='.urlencode($this->sms_cfg['user'])
               .'&password='.urlencode($this->sms_cfg['pword']).'&numto='.urlencode($sms_sendto).'&data1='.urlencode($sms_text).'&senderid='.urlencode($sms_sendfrom);
           $reply = strtolower(file_get_contents($url));
           /*
            * $reply is a string: "<httppost_result><call_result><result>True</result><error></error></call_result></httppost_result>"
            * this breaks down into
            *  <httppost_result>
            *      <call_result>
            *          <result>
            *              True
            *          </result>
            *          <error>
            *          </error>
            *      </call_result>
            *  </httppost_result>
            */
           return array($this->xml_extract($reply,'result')=='true', $this->xml_extract($reply,'error'));
Reply

#3
curl can be used.
Here is a quick tutorial.
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.