Docstoc

HTTP_API

Document Sample
HTTP_API Powered By Docstoc
					      The API works on GET and POST METHOD, and the url to be used is
                   http://phoenixbulks ms.co.in/pushsms.php

The variables to be used are:
username : your_username
password : your_password
sender : Alphanumeric/Number SenderID for GSM Recipients
to : Recipient Number (one at a time)
message : Actual Message to be sent

Messaging API's
A sample HTTP API Call for Single Recipient would be: (Normal Route)
http://phoenixbulksms.co.in/pushsms.php?username=your_username&password=your_p
assword
&sender=mysenderid&to=myrecipient&message=Hello

A sample HTTP API Call for Single Recipient with Scheduling (4th January 2009 at
3:30 PM) would be: (Normal Route)
http://phoenixbulksms.co.in/pushsms.php?username=your_username&password=your_p
assword
&sender=mysenderid&to=myrecipient&message=Hello&shtime=04-01-2009-15-30

A sample HTTP API Call for Multiple Recipients would be: (Normal Route)
http://phoenixbulksms.co.in/pushsms.php?username=your_username&password=your_p
assword
&sender=mysenderid
&to=myrecipient1,myrecipient2,myrecipient3&message=Hello

A sample HTTP API Call for Single Recipient would be: (Priority Route)
http://phoenixbulksms.co.in/pushsms.php?username=your_username&password=your_p
assword
&sender=mysenderid&to=myrecipient&message=Hello&priority=2

A sample HTTP API Call for Multiple Recipients would be: (Priority Route)
http://phoenixbulksms.co.in/pushsms.php?username=your_username&password=your_p
assword
&sender=mysenderid
&to=myrecipient1,myrecipient2,myrecipient3&message=Hello&priority=2

A sample HTTP API Call for Sending UNICODE message would be:
http://phoenixbulksms.co.in/pushsms.php?username=your_username&password=your_p
assword
&sender=mysenderid
&to=myrecipient1,myrecipient2,myrecipient3&message=unicode message&unicode=1
A sample HTTP API Call for Sending FLASH message would be:
http://phoenixbulksms.co.in/pushsms.php?username=your_username&password=your_p
assword
&sender=mysenderid
&to=myrecipient1,myrecipient2,myrecipient3&message=message&flash=1

A sample HTTP API Call for Picture Messagese:
http://phoenixbulksms.co.in/pushsms.php?username=your_username&password=your_p
assword
&sender=mysenderid
&to=myrecipient&message=message&picture=1

Message would the hexcode of otb file (You should convert normal image file to otb file).

Example: http://domain/pushsms.php?username=username&password=password&send
er=sender&to=mobile_number&message=

3000000002010000481c010000000000000000000000000000
00000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000
000002200e0000000000008ee0060007e00000018660460001
300010018440c40001300030038441e4c30320c678028440cd
c583c168300484408ec902224c2007c4408c9e02378e2008cc
c18d980236066010cee1c9d90666527039ecc1998e0fc38c60
00000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000
00000000000000000000000000

&picture=1


The reply will be a message id, seperated by comma.

Other API's
To fetch Single DLR
http://phoenixbulksms.co.in/apis/getdlr.php?username=your_username&password=your_
password&msgid=message_id&month=month on which message was sent&year=year on
which message was sent

To fetch Multiple DLR's
http://phoenixbulksms.co.in/apis/getdlr.php?username=your_username&password=your_
password&msgid=message_id1,message_id2,message_id3&month=month on which
message was sent&year=year on which message was sent
Result will be in the form "message_id:DLR" seperated by commas.


A sample HTTP API Call for Normal Balance Check:
http://phoenixbulksms.co.in/balancecheck.php?username=your_username&password=yo
ur_password


A sample HTTP API Call for Priority Balance Check:
http://phoenixbulksms.co.in/balancecheck.php?username= your_username&password=yo
ur_password&priority=2


A sample HTTP API Call to Request Sender id:
http://phoenixbulksms.co.in/addsender.php?username= your_username&password=your_
password&sender=your_sender&type=(gsm or cdma)
Example: http://phoenixbulksms.co.in/addsender.php?username=your_username&passw
ord=your_password&sender=mysender&type=gsm


A sample HTTP API Call to delete scheduled messages:
http://phoenixbulksms.co.in/deleteshedule.php?username= your_username&password=yo
ur_password&msgid=MyId1,MyId2,MyId3
*MyId1,MyId2,MyId3.... are the message id's.


A sample HTTP API Call to get your Senderids:
http://phoenixbulksms.co.in/getsenderids.php?username= your_username&password=you
r_password

				
DOCUMENT INFO
Shared By:
Categories:
Stats:
views:6
posted:1/3/2011
language:English
pages:3