BLOG

Integrating SMS API in your PHP Web Application

API stands for “Application programming interface”. It is a software intermediary that allows two applications to talk to each other. SMS APIs are used to allow web applications to easily send and receive text messages through logic written for standard web frameworks.

How to integrate SMS API in your PHP Web Application

We provide two types of API :

  • HTTP API
  • XML API

HTTP API

How can I use the API to send SMS ?
How can I send multiple messages through API ?
http://smsserver9.creativepoint.in/api.php?username=xxxx&password=xxxx&to=xxxxxxxxx,xxxxxxxxx,xxxxxxxxxx&from=xxxxxxxx&message=xxxxxxxxxxxx  Response: Provides MessageID for future reference. Note: Multiple mobile numbers should be seperated by “,”.
How can I send Flash Message through API ?
http://smsserver9.creativepoint.in/api.php?username=xxxx&password=xxxx&to=xxxxxxxxx,xxxxxxxxx,xxxxxxxxxx&from=xxxxxxxx&message=xxxxxxxxxxxx &flash=true  Response: Provides MessageID for future reference. Note: Multiple mobile numbers should be seperated by “;”.
How can I get Delivery Reports through API?
http://smsserver9.creativepoint.in/api.php?username=xxxx&password=xxxx&msgid=417a3b098442ba35 Response:  +919XXXXXXXXX-Submitted; +919XXXXXXXXX-Successfully Deliverd; +919XXXXXXXXX-Message Failed; +919XXXXXXXXX-Message Invalid;
How can I find Credit balance through API ?
http://smsserver9.creativepoint.in/api.php?username=xxxx&password=xxxx  Response: Returns No of Credits.
How can I use API in PHP coding ?
 

 

XML API

How can I use the XML API to send SMS ?
What are the Different xml Tags used in Api ?
S.No Parameter Values Description
1 username password username : demo password : demo Account Username & Password
2 to 9292929292, 8888888888 Mobile numbers seperated by comma ( ,)
3 text This is message context message to be sent
4 senderid SENDER Approved senderid
5 schedule DDMMYYYYHHMM this is for sendering schedule sms , if needed sent the date and time in the format mentioned . time should be 24 hour format
6 flash Y/N Flash message
What is the Response You Get ?
if all the details mentioned are correc then you will get the response in the following format 98XXXXXXXX3215651DELIVERED85XXXXXXXX3215652SUBMITTED
What is the Description Of Response Tags ?
S.No Parameter Name Parameter Value Description
1 to 98XXXXXXX Mobile Number for which u sent message
2 msgid XXXXXXX System Generated Message id
3 status DELIVERED Status of message

Note:If multiple sms are sent the response xml will divide each number

How to use Xml Api in php?

Leave a Reply

Your email address will not be published. Required fields are marked *







SUBSCRIBE TO OUR NEWSLETTER TO GET THE LATEST UPDATES