CellTrust 2 Way SMS Gateway API (HTTP)
CellTrust HTTP Gateway
HTTP Gateway is the most popular way for our small business customers to connect to the CellTrust SMS Gateway. It supports two way messaging and connects to any application, including static websites with HTML pages. Only one line of HTML code is required to send messages once you register and obtain a username. After a brief 10 minute integration and secure protocol (https) support process, our plug and play message templates make it very easy to integrate SMS functionality as a new feature into your existing applications.Sample Code
Note: This is a very simple example, and it is recommended that you set your account (MyGateway->Account Module Server Validation Section)to use the server validation settings, this ensures that it is only your web server which is allowed to connect to our gateway.The following image, depicts two very simple examples. The first, Example 1, shows the use of the HTTP Gateway API without the XMLResponse parameter, as you can see the gateway servers response is "Message accepted for delivery." The second example uses the XMLResponse parameter, this causes the gateway to return an XML response. The status node contains the status of the gateway call, the MessageId node, contains the unique identifier CellTrust associates with the message, this ID can be used to query the Reporting service as to the delivery status of the message.
Note: URLs are case sensitive, Web Service Names/Folders/Parameters are case sensitive. In these examples, you must replace the values for PhoneDestination, Message and CustomerNickname.
Simple Response Example 1:
https://www.primemessage.net/TxTNotify/TxTNotify?PhoneDestination=12345678900&Message=Test+Message&CustomerNickname=YOURNICKNAME
(server response)
Message accepted for delivery.
(server response)
Message accepted for delivery.
XML Response Example 2:
https://www.primemessage.net/TxTNotify/TxTNotify?Username=YOURUSERNAME&Password=YOURPASSWORD&CustomerNickname=YOURNICKNAME&PhoneDestination=14806430361&Message=test&XMLResponse=true
(server response)
ACCEPTED
AAXF2089299048PM5157
(server response)