Versions Compared

Key

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

 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.

Code Examples for sending SMS

Get started instantly. You can copy & paste the code examples below for use with our SMS API Gateway.

Warning

Our example code is an illustration of how you might integrate with our systems and is not certified for production environments. You are responsible for testing and QA.

 

 

Localtab Group
JavaCode Example for sending SMS - JavaDJangojava

 

 

PHPCode Example for sending SMS - PHPDJangophpC#/.NetCode Example for sending SMS - C#/.NETDJangoc#C++/CLICode Example for sending SMS - C++DJangocppCCode Example for sending SMS - CDJangocppVB.NETCode Example for sending SMS - VB.NETDJangovbASPCode Example for sending SMS - ASPDJangoactionscript3RUBYCode Example for sending SMS - RUBYDJangoruby

Code Examples for sending SMS

Get started instantly. You can copy & paste the code examples below for use with our SMS API Gateway.

Warning

Our example code is an illustration of how you might integrate with our systems and is not certified for production environments. You are responsible for testing and QA.