HTTP API


  HTTP API



1. API single message to single recipient

Variable

Value

Explanation

username

LoginId

This is the userId which you select at the time of registration

password

Password

Password

sender

SenderId

You may have multiple senderIds at website but you need to choose one

sendto

919xxxxx

Please write mobile numbers with 91 as prefixed

message

The text you want to send

The text you want to send.



NOTE : Method of Post should always be "GET"

for examble try to send this string from web browser

http://sms.datagenit.com/api.php?username=xxxx&password=xxxx&sender=senderId&sendto=919xxxx&message=hello  

 


2. API single message to multiple recipient

Variable

Value

Explanation

username

LoginId

This is the userId which you select at the time of registration

password

Password

Password

sender

SenderId

You may have multiple senderIds at website but you need to choose one

sendto

919xxxxx,919yyyyyyy,919zzzzz

write comma separated mobile numbers with 91 as prefixed You can send at the most 200 numbers in one go.

message

The text you want to send

The text you want to send.



NOTE : Method of Post should always be "GET"

for examble try to send this string from web browser

http://sms.datagenit.com/api.php?username=xxxx&password=xxxx&sender=senderId&sendto=919xxxx,919xxxx&message=hello  

 

3. To get the LIVE delivery report

Variable

Value

Explanation

username

LoginId

This is the userId which you select at the time of registration

password

Password

Password

sender

SenderId

You may have multiple senderIds at website but you need to choose one

sendto

919xxxxx,919yyyyyyy,919zzzzz

write comma separated mobile numbers with 91 as prefixed You can send at the most 200 numbers in one go.

message

The text you want to send

The text you want to send.

dlrUrl

The Url where you want to receive the delivery reports

http://yourServer_Url?logID=$logID$%26phNo=$phNO$%26result=$result$



Explanation of the dlrUrl variable

server_Url : is the URL where u want to receive the report
This URL is create by you on your website.

The Text after (?) (the queryString) wll remain same for all.

Finally the complete url to send SMS with delivery report will look something like :

http://sms.datagenit.com/api.php?username=xxxx&password=xxxx&sender=senderId&sendto=919xxxx,919xxxx&message=hello&dlrUrl=http://yourServer_Url?logID=$logID$%26phNo=$phNO$%26result=$result$  

 


4. Check Balance

Variable

Value

Explanation

username

LoginId

This is the userId which you select at the time of registration

password

Password

Password

Post the above variables to http://sms.datagenit.com/api.php

NOTE : Method of Post should always be "GET"

for examble try to send this string from web browser

http://sms.datagenit.com/api.php?username=xxxx&password=xxxx  

 

Get Your SMS API Account Free 50 SMS Credit

vector

Subscribte to our news letter

© 2013-2018 Datagen Internet Services Pvt. Ltd. | All Rights Reserved.