XML
The 2sms XML API enables you to send and receive SMS and eMail. You can integrate the enterprise messaging services into your IT infrastructure by sending XML requests to do all of the features.
How does it work?
Your system sends XML API call to 2sms requesting to send message, etc.
2sms receives XML API call and responds with MessageID and status
2sms sends message to each destination
2sms collects message status and replies
2sms sends you status and replies and stores it in database
Explore Fully Documented XML Schema for XML elements and attributes to jump start your enterprise messaging integration.
Two Way XML
What is ‘Two Way XML’?
Our ‘Two Way SMS’ product allows users who have been assigned a dedicated virtual SMS number to receive incoming messages using our system. These messages can be received in a number of ways: by forwarding to a chosen mobile phone, to an email address, or by a HTTP post to a URL of your choice. This section describes the form in which this information will be supplied if the XML option has been chosen.
What is the meaning of the information supplied in the Two Way XML?
The XML Elements have the following interpretations:
- Inboundnumber — is the shortcode or long SMS number associated with your account. This is the virtual number we allocated to you when you signed up for the Two Way SMS service, and to which the current Two Way SMS was sent.
- dateInsert — is the time at which our company received the message from the SMS network. This date is supplied in MM/DD/YYYY HH:MM:SS format
- inboundcli — is the number of the phone from which the Two Way SMS was sent. This number is in international format beginning with the country code (Example: ‘1’ for United States/Canada, ’44’ for UK, ’81’ to China, etc.).
- message — is the text that was sent in the current Two Way SMS message.