Home / other / Web 4 Galaxy Bulk SMS API Guide

Web 4 Galaxy Bulk SMS API Guide

Note : If you submit large number of request, always use XML API for better performance
Parameter name Data type Description
authkey * alphanumeric Login authentication key (this key is unique for every user)
mobiles * integer Keep numbers in international format (with country code), multiple numbers should be separated by comma (,)
message * varchar Message content to send
sender * varchar Receiver will see this as sender’s ID.
route * varchar If your operator supports multiple routes then give one route name. Eg: route=1 for promotional, route=4 for transactional SMS.
country numeric 0 for international,1 for USA, 91 for India.
flash integer (0/1) flash=1 (for flash SMS)
unicode integer (0/1) unicode=1 (for unicode SMS)
schtime date and time When you want to schedule the SMS to be sent. Time format could be of your choice you can use Y-m-d h:i:s (2020-01-01 10:10:00) Or Y/m/d h:i:s (2020/01/01 10:10:00) Or you can send unix timestamp (1577873400)
afterminutes integer Time in minutes after which you want to send sms.
response varchar By default you will get response in string format but you want to receive in other format (json,xml) then set this parameter. for example: &response=json or &response=xml
campaign varchar Campaign name you wish to create.

Parameters with (*) are mandatory.

Encode your API

What is URL encoding?

URL encoding converts characters into a format that can be send through internet We should use URL encode for all GET parameters because POST parameters are automatically encoded.

Why URL encoding?

URLs often contain characters outside the ASCII set, the URL has to be converted into a valid ASCII format. URLs use some characters for special use in defining their syntax, when these characters are not used in their special role inside a URL, they need to be encoded. URL encoding is done to encode user input

Example:

GEThttp://sms.web4galaxy.com/api/sendhttp.php?authkey=YourAuthKey&mobiles=9999999999&message=test & new&mobile&sender=ABCDEF&route=4

In this api the message content “test & new” includes ‘&’ operator,due to which URL encoding is necessary, otherwise it will break your message content and an incomplete message will be sent

Click here to encode

Encoded API

GEThttp://sms.web4galaxy.com/api/sendhttp.php?authkey=YourAuthKey&mobiles=9999999999&message=test+%26+new&mobile&sender=ABCDEF&route=4

By encoding message content in api,complete message will be sent

Send message on multiple numbers

GEThttp://sms.web4galaxy.com/api/sendhttp.php?authkey=YourAuthKey&mobiles=9999999999,919999999999&message=test+%26+new&sender=ABCDEF&route=4

To send message on multiple numbers numbers should be comma separated

Send unicode message

GEThttp://sms.web4galaxy.com/api/sendhttp.php?authkey=YourAuthKey&mobiles=9999999999,919999999999&message=test+%26+new&sender=ABCDEF&route=4&unicode=1

To send unicode message one more parameter will be added i.e unicode and it’s value will be set to 1

Send flash message

GEThttp://sms.web4galaxy.com/api/sendhttp.php?authkey=YourAuthKey&mobiles=9999999999,919999999999&message=test+%26+new&sender=ABCDEF&route=4&flash=1

To send flash message one more parameter will be added i.e flash and it’s value will be set to 1

JSON response

GEThttp://sms.web4galaxy.com/api/sendhttp.php?authkey=YourAuthKey&mobiles=9999999999,919999999999&message=test+%26+new&sender=ABCDEF&route=4&response=json

To get response in json format one more parameter will be added i.e response and it’s value will be set to json

Send schedule message

GEThttp://sms.web4galaxy.com/api/sendhttp.php?authkey=YourAuthKey&mobiles=9999999999,919999999999&message=test+%26+new&sender=ABCDEF&route=4&schtime=2018-09-30 20:50:38

To schedule message i.e for future , one parameter will be added i.e schtime and it’s value should be equal to that date and time,at which message should be sent. Note: for scheduling, date and time are mandatory.

Schedule unicode message

GEThttp://sms.web4galaxy.com/api/sendhttp.php?authkey=YourAuthKey&mobiles=9999999999,919999999999&message=test+%26+new&sender=ABCDEF&route=4&schtime=2018-09-30 20:50:38&unicode=1

Send message on group

GEThttp://sms.web4galaxy.com/api/sendhttp.php?authkey=YourAuthKey&message=test+%26+new&sender=ABCDEF&route=4&group_id=groupid

While sending message on group that contains numbers saved by user, parameter to be set is group_id and it’s value should be equal to the existing group id

Leave a Reply

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