SMS Gateway HTTP/S API – Simple HTML How-to

November 27, 2009

Aiming to use the HTTP/S API to connect with your customers, employees, suppliers or friends through an SMS gateway, but don’t know how? You might be surprised to find that it takes a few lines of HTML to get it done.

This article is aimed at developers familiar with HTML, who are interested in using the HTTP/S API.

Getting Started

The example form below will send the basic parameters for sending a message to the API.  The HTTP/S API does support GET and POST.

<form method="GET" action="http://api.clickatell.com/http/sendmsg?";
API_ID:        <input type="text" name="api_id">               <br/>
Username:      <input type="text" name="user">                 <br/>
Password:      <input type="password" name="password">         <br/>
Mobile Number: <input type="text" name="to">                   <br/>
Message Text:  <textarea name="text"></textarea>               <br/>
<input type="submit" value="Send SMS">
</form>

When the form is submitted, you will have a URL, such as:

http://api.clickatell.com/http/sendmsg?user=xxxxx&password=xxxxx&api_id=xxxxx&to=448311234567&text=My+message+text

API Response

Once you submit the form, the API response will contain either an error code with an error message, or an apimsgid (tracking code for your message).

Example API response:

ID: f5be1b5eb7229e08fb45428600d5f36d

In this example we used only a few parameters (for authentication, message text and destination mobile number). There are many more optional parameters that give you more flexibility – more information on this is available in the HTTP/S API technical documentation.

We recommend you view the API documentation on the HTTP/S API page for more information on other optional parameters.

Related posts:

  1. SMS Gateway HTTP/S API – Simple HTML & PHP How-to Integrating with the HTTP/S API to communicate with the SMS...
  2. SMS Gateway HTTP/S API – Simple PHP How-to There's a communications solution for everyone, even if you have...
  3. International SMS Scripts and API’s Use these SMS scripts to enable your business or international...
  4. Easy Mobile Messaging with SMTP Just the thought of transforming in-house communication systems with email...
  5. SMS Gateway Customers Hold Competitive Advantage – Part 3 UK financial institutions are using SMS gateway connections to offer...

Related posts brought to you by Yet Another Related Posts Plugin.

Tags: , , , , , , , ,

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

One Comment On This Post

  1. [...]  SMS Gateway HTTP/S API – Simple HTML From How-to 2.    SMS Gateway HTTP/S API – Simple PHP Script [...]

Join the Discussion

Subscribe via RSS or