SMS Gateway - Streetdata Mobile Messaging messaging servicetwo-way messagingcompany infocontact us
 message instructions 
 pricing 
 coverage 
 faq's 
 sign up and trial 
Member Login
messaging
two-way messaging http interface

The HTTP interface enables client-side applications to automatically download the SMS messages received by the Streetdata gateway under a Dedicated, Hosted or High-speed two-way messaging service plan. The logs are transferred in delimited text format, suitable for processing by means of scripting languages or for immediate import into most common spreadsheet or database programs.

Usage:

A client-side application can access the HTTP interface by sending a HTTP GET request to the URL:

            https://www.streetdata.com.au/admin/twpro.php
(http is also supported, but its use is discouraged for obvious security reasons)

The supported parameters are:

  • u (mandatory) - Your Streetdata UserID
  • p (mandatory) - Your Streetdata password
  • l (lowercase-L, optional) - Last read pointer, positive integer

The login parameters are self-explanatory. The "last read" pointer option is provided for the purpose of minimising download times by preventing multiple downloads of the same message, while avoiding the risk of missed messages due to accidental or unfinished reads. An application will typically supply the unique ID of the last successfully read message (see below) as the l parameter in order to request messages newer than the last read.

The output of the twpro.php script consists of delimited rows, one per message, with the following layout:

    ID,Date,Time,Term,From,SMSC,"Text"
where:
  • ID - a unique numeric (integer) ID assigned to each message
  • Date - message reception date, in YYYY-MM-DD format
  • Time - message reception time, in HH-mm-ss format
  • Term - terminal number, (only meaningful if more than one terminal)
  • From - message originating number
  • SMSC - Short Message Service Center number (for debugging purposes)
  • Text - Double-quote delimited message body text, special characters escaped with backslash symbols

Example query:

    GET https://www.streetdata.com.au/admin/twpro.php?u=7357&p=53cRe7&l=16000
Example output:
    16003,2003-01-01,00:01:02,01,61419286443,61418706721,"Hello World"
    16006,2003-01-01,00:02:03,01,61419286443,61418706721,"Hello Again, World"
(the next value for the l parameter will be 16006)

Download the complete HTTP interface documentation in PDF format.

See also:

 

messaging service | two-way messaging | company info | contact us
 

    

privacy principle, terms of use and the disclaimer

© 1999-present by streetdata pty ltd - all rights reserved