Login to your account: Login 

Posted on June 2nd, 2009 by Nick.
Categories: All SMS Gateway Documentation, PHP Classes
Tags: , , , ,

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 that is shown in your account. To find your  delivery report directory, log into your system click the menu heading “Reports” then select “Delivery Reporting”, you will see a green icon, roll over this and you can find the directory name at the bottom.

If you have sent a message greater than 160 characters you will find multiple entries for that particular number . For instance if your message was 200 characters you will find 2 reports for that number. A message is built from 160 chunks

Download the PHP 5 Delivery Report Class

Example of use

<?

$reports = new ProcessDeliveryReport ( "Kt65CZMtxlIiEU328ilCBgC38" ); // your delivery report directory
if ($reports->setReportDate ( "20-05-09" )) print_r ( $reports->findNumber ( "44777777777", "r" ) ); // print the array of results
else echo "Not found";

?>

Popularity: 5%






Related posts:

  1. Using the SMS Gateway API, Automating Delivery Report Collection
    This blog post has been superseded with our website documentation Introduction If you are using the API / Gateway to send bulk SMS...
  2. 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...
  3. SMS Gateway API – Specification
    This blog post has been superseded with our website documentation It is recommended that you use the  RESTful version of the API which has largely superseded this document...
  4. 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...
  5. How to use an SMS Gateway
    Our SMS Gateway is extremely powerful indeed. It allows companies to connect to our systems and send out messages 1...
  6. Is there such a thing as ‘quality’ in Bulk SMS?
    There are a vast number of different ‘gateways’ that bulk sms service providers can use to connect to the UK...

The service provided by Text Marketer Ltd must be used for solicited marketing only. All marketing messages sent must be delivered to devices/numbers that have positively opted into receiving SMS messages. To protect the privacy of recipients there is also an opt-out option included on every account, i.e “STOP”. We adhere fully to all best practices as set out by the Government’s Information Commissioner’s Office. For further information please follow this link. www.ico.org.uk/for_the_public/topic_specific_guides/marketing/texts

Copyright © 2012 Text Marketer Ltd | All Rights Reserved

Specialists in Mobile Marketing, Bulk SMS, SMS Marketing, SMS Gateway & Shortcode SMS