Which API is most suitable, POST API or GET API

A Big question that arise in the mind of developers that which API should be used for sending SMS. If you want to send SMS on more than 100 numbers in single request then you have to use POST API else GET API. But here are some facts you need to know about GET and POST API. There are two ways by which client can send information through SMS. 1. The GET Method 2. The POST Method

When to use GET API  for sending SMS?

Keep these points in mind, while Sending SMS from GET API →

  1. GET has limits on the amount of information to send. The limitation is about 1024 characters.
  2. Through GET SMS you can send 2 to 4 KB data.
  3. Information sent from the GET method is visible to everyone i.e (all variable names and values are displayed in the URL). 
  4. You can use this GET API  to send SMS from your softwares like shopping, billing, CRM, marketing, content management, accounting, Human resource management or you want to send informations like One Time Password, Forget Password information, Signup information, Lead generation information, transaction information etc.

GET API for Sending SMS →

http://msg.msgclub.net/rest/services/sendSMS/sendGroupSms?AUTH_KEY=YourAuthKey&message=message&senderId=dddddd&routeId=1&mobileNos=9999999999&smsContentType=english

When to use POST API for sending SMS ?

Keep these points in mind, while sending SMS from POST API →

  1. Information sent from the POST method is invisible to others (all names/values are embedded within the body of the XML or json request).
  2. And is limitless on the amount of information to send (data size) or we can say POST requests have no restrictions on data length.
  3. The data sent by POST method goes through header, so security depends on protocol. By using secure you can make sure that your information is safe.
  4. POST supports advanced functionality such as support for ASCII and multi-part binary input while uploading files to server.
  5. POST requests remain in the browser history. The variables are not displayed in the URL, it is not possible to bookmark the page.
  6. If data is more than 4 KB then use POST API. For sending SMS through POST API send unlimited SMS on unlimited numbers.

POST API to Send Group SMS 

http://msg.msgclub.net/rest/services/sendSMS/sendGroupSms?AUTH_KEY=YourAuthKey                                         
Request Data
Unicode:-        {“smsContent”:”हैलो                                            
टेस्ट एसएमएस”,”groupId”:”0″,”routeId”:”1″,”mobileNumbers”:”9999999999″,”senderId”:”SMSTST”,”signature”:”signature”,”smsContentType”:”unicode”},”
English:-
{“smsContent”:”Hello                                             Test SMS”,”groupId”:”0″,”routeId”:”1″,”mobileNumbers”:”9999999999″,”senderId”:”SMSTST”,”signature”:”signature”,”smsContentType”:”english”}                                        

Use API according to your need and requirement, Just keep the above information in your mind while Sending SMS.          

For more details Contact us.