Follow

Sending SMS Text Messages using HTTP SMS API

Text Messaging API or SMS API can enable an application to receive and send SMS text messages using SMS gateway API or Text Messaging API. We provide simple HTTP interface for clients to send and receive messages from mobile phone users. HTTP POST can be used in all modern programming languages including ASP, ASP.NET, C++, C#, PHP, VB, VB.NET, command lines, SSH & cURL.

HTTP URL

http://msgapi.wire2air.com/smsapi/submitsm.aspx

HTTP METHOD

POST or GET

HTTP Parameters

Required Parameters

*VERSION: 2.0
*USERID: YOUR_USERID; PROVIDED BY TXTIMPACT
*PASSWORD: YOUR_PASSWORD; PROVIDED BY TXTIMPACT
*VASID: YOUR_VASID; PROVIDED BY TXTIMPACT
*FROM: SHORT CODE NUMBER; PROVIDED BY TXTIMPACT
*TO: DESTINATION MOBILE NUMBER. [(country code) + mobile number] e.g 17220001111
*TEXT: The Text Message (160 characters)

Optional Parameters

DELIVERYDATETIME

Date and time for message delivery in UTC format.
Example: 07/14/1997 00:00:00; UTC date time. The following represents Sunday, July 13, 1997 at 8:00:00 PM in New York City. Default: Now, send immediately

REPLYPATH Your server application web address to receive replies from the users e.g http://[your_server]/smsreceiver?

 

RESPONSE FROM SERVER

After you submit the message request to TXTImpact server, the server will return a response in the following format:


For successful submission:

JOBID: [MOBILENUMBER]:[SMSID]

Failed submission:
ERR: 301: Failed authentication

ERR: 305: Not enough credits
….

Example

http://msgapi.wire2air.com/smsapi/submitsm.aspx?version=2.0&userid=USERID&password=PASSWORD&vasid=VASID&FROM=SHORTCODE&to=MOBILENUMER&text=YOUR_MESSAGE

Note

 

  • Values must be properly URL encoded
  • Message submitted longer than 160 characters will be rejected. For sending messages longer than 160 characters, contact sales.
  • You’ll be charged one credit for every 160 character message.
  • The list of allowed characters for messages and subjects is: a-z, A-Z, 0-9 and these special characters: .,:;!?()~=+-_\/@$#&%’”
  • For line break in a message, use \r\n; e.g Your class is scheduled on \r\n july 24th @ 7:00PM.
  • The following characters count as two characters: ~, @, #, %, +, =, /, \, \r\n
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk