Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The API uses HTTP GET requests to communicate with the Text Marketer gateway server. The requests allow you to send SMS’s through the system to the end user.
This guide provides a one-stop reference for the Simple API. It assumes the reader has a basic understanding of HTTP GET and some basic level in a development language such as PHP, .Net etc.


You may wish to use are more comprehensive and feature rich REST API, you need to know the diference between POST and GET requests, and be familiar with the principles of XML. 

Tip

You can get code examples for interacting with the API using your preferred programming language here.

First you need to create a free account with us.

This will allow you to confgure some aspects of the account. Once you have logged in the menu option you will need is “Account Settings” => “Api Confg tab” this will give you the username and password you need plus an example url.

In your preferred programming language all you need to do is generate a GET request like this:

Status
subtletrue
colourGreen
titlehttps://api.textmarketer.co.uk/gateway/?username=u&password=p&to=4477777777&message=test+message&orig=my_script

If you want to send to multiple numbers, use a comma delimited list. Here is an example:

Status
subtletrue
colourGreen
titlehttps://api.textmarketer.co.uk/gateway/?username=u&password=p&to=4477777777,4477777778,4477777779&message=test+message&orig=my_script

Beware that, due to limitations on the HTTP protocol, sending to multiple numbers is limited to 500 recipients. So, if you want to send the same SMS to more than 500 recipients, e.g. 750 recipients, you'll have to send it in two batches: 500 + 250.