Archive for the "PHP Classes" category

 

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

 
 

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