The 2sms HTTP API is used to send text messages by posting the message content and destination information in a HTTP GET command, using a query string to build up the information needed by 2sms in order to deliver an SMS message.
Customers can send over HTTP or HTTPS. We recommend HTTPS to ensure encryption of information sent to 2sms. Messages sent can be tracked on the web site or using our XML reporting services.
Note:
Customers wishing to use HTTP POST instead of HTTP GET command should choose our XML services in place of this solution.
Specifications
URL | https://gateway.2sms.us/xml/sendsms.aspx?username=$USERNAME&password=$PASSWORD&mobile=$PHONE&sms=$MESSAGE&api_id=action=sendmessage |
Username | 2sms issued username |
Password | 2sms issued password |
Phone | Destination mobile number |
Message | Simple text message |