Archive for the "All SMS Gateway Documentation" category

 

PHP and SMS

 

PHP is the very popular web scripting language, to make things easy for the PHP programmer we have provided some (almost!) plug and play  PHP code that easily integrates PHP with our SMS Gateway.
Simple Example of sending SMS with PHP
This class allows you to send SMS using PHP,  please feel free to modify at will. [...]

Continue reading

 
 

Using our short code and gateway APIs to create a game

 

The Concept
To create an interactive game using Text Messaging and to show how easy it is to create interactive experiences using your Text Marketer Account. The example uses both our short code API (to receive the customer responses) and then our  gateway API to send out the ‘answer’.
The Game

Guess the number of sweets in a [...]

Continue reading

 
 

.NET Examples

 

Example of a .NET Bulk SMS Gateway / API integration
For more information regarding the bulk sending API click here.
A simple example for sending SMS via a .NET method
Here’s a stand-alone .Net method:
private static string SendSms(string p_userName, string p_password, string p_orig, string p_number, string p_message, bool p_respondInXml) {
StringBuilder requestUrl = new StringBuilder();
requestUrl.Append(“http://www.textmarketer.biz/gateway/“);
requestUrl.Append(“?username=”).Append(HttpUtility.UrlEncode(p_userName));
requestUrl.Append(“&password=”).Append(HttpUtility.UrlEncode(p_password));
requestUrl.Append(“&orig=”).Append(HttpUtility.UrlEncode(p_orig));
requestUrl.Append(“&number=”).Append(p_number);
requestUrl.Append(“&message=”).Append(HttpUtility.UrlEncode(p_message));
if (p_respondInXml) {
requestUrl.Append(“&option=”).Append(“xml”);
}
WebRequest webRequest = [...]

Continue reading

 
 

Supported and Unsupported characters in Text Messages - GSM Character Set

 

When constructing the message for your SMS Marketing campaign you should be aware that not all characters are supported by the GSM networks. They have a specific character set that they work to. It shouldn’t be a mjor concern to 99%+ of people as almost all common characters are supported.
For your information here are a [...]

Continue reading

 
 

Bulk SMS API ASP Help

 

Using standard ASP libraries
<%
url=”http://www.textmarketer.biz/gateway/?username=#&password=#&number=#&message=msg&orig=nameORnumber&option=xml”

Set objXMLDoc = CreateObject(”Microsoft.XMLDOM”)

objXMLDoc.async = False
objXMLDoc.load(url)

status = objXMLDoc.documentElement.selectSingleNode(”//response”).getAttribute(”status”)

if status = “success”  then
response.write “Status ” & status & ” Credits ” & objXMLDoc.documentElement.selectSingleNode(”//response/credits”).Text
else
response.write “Status ” & status & ” Reason ” & objXMLDoc.documentElement.selectSingleNode(”//response/reason”).Text
end if
%>
Put that into an ASP page and [...]

Continue reading

 
 

PHP 5 Simple SMS send Class

 

2 classes available in php 5, SendSMS and SendSMSXML (recommended)
Class Name: SendSMS (depreciated)
This class is a nice and easy way to start sending SMS’s with the Text Marketer system, please feel free to modify at will. You just need the username and password from your account login as the constructor arguments.
Download the PHP 5 SMS [...]

Continue reading

 
 

PHP 5 Delivery Report Helper Class for our SMS Gateway

 

Class Name: ProcessDeliveryReport
This class enables you to access your delivery reports in a nice simplified way. You can search for the outcome of a message for a given number, specify the outcome and the number, download all the data for the given date or parse the reports line by line.
The constructor requires the delivery report directory [...]

Continue reading

 
 

PHP 5 SMS Send Class implementing listeners on our SMS Gateway

 

Class Name: SendSMSNotifier
This class is designed around the FREE Text Marketer SMS API, you need to sign up here to use it.
SendSMSNotifier is a singleton class design, incorporating listeners. Your class must include the following public functions: creditAlert($credits_remaining) and failureAlert($error,$number,$message,$error).
Download the class from here
Example of use
class MyTestClass
{
/// [...]

Continue reading

 
 

Using the SMS Gateway API, Automating Delivery Report Collection

 

Introduction
If you are using the API / Gateway to send bulk SMS you can collect your delivery reports from the server, which is a good way of removing bad numbers from your data.
Delivery Reports and the API
It is important to understand the difference between getting a “failure”  (or success) message at the API/Gateway and a [...]

Continue reading

 
 

Text Marketer short code API options

 

Introduction
Text Marketer owns the 88802 short code, this short code can be used to “route” incoming texts via a keyword to your account and optionally respond with a message “thanks for entering our competition” etc, (this form of communication is known as text response).  You can also configure your account to trigger a response when [...]

Continue reading

 
 

How to integrate our SMS Gateway API into your systems

 

Introduction
Adding SMS as a communication method to a system is often very useful, for instance you don’t have issues with spam filtering, it doesn’t require the person to make an immediate response like a phone call, so it’s great for alerts and triggers. Another good application for SMS (text messaging) which is often over looked [...]

Continue reading

 
 

SMS Gateway API - Specification

 

SMS Gateway API - Specification
When you create a free account you can also use the Text Marketer API (sometimes known as a gateway). The API uses simple HTTP GET requests to communicate with the Text Marketer gateway server. The requests allow you to send SMS’s through the system, you can also retrieve delivery reports discussed here.
HTTP [...]

Continue reading