Knowledge Base

Client-API Interaction

Sub-categories

  1. SMS API 2.0
    Our industry-leading interface for server-to-server integration.
  2. SMS API 2.1
    The upcoming version of our SMS API.

 

Specifications

Articles

Tutorials

  • How to execute a Client-API routine.

Tutorial

How to execute a Client-API routine.

Step 1

Construct a query string which combines the pre-defined mandatory/optional parameters belonging to the routine along with their URL encoded values, for example:

param1=value1¶m2=value2¶m3=value3

It is only the values that should be URL encoded and *not* the entire string.

Step 2

Pass the query string, in the form of an HTTP request, to either of the following URLs:

  • http://www.tm4b.com/client/api/http.php
  • https://www.tm4b.com/client/api/http.php

For most Client-API routines, the HTTP requests can either use the POST or GET method. However, in the case of MT SMS being sent to multiple recipients as part of the broadcast routine, only POST can be used.

Step 3

Ensure that the routine was executed successfully and capture the body of our HTTP response which will include the result of the routine.