/
Query Using HTTP Get

Query Using HTTP Get

This method is only an http get method and returns a simple flat text file this is easy to parse for organisations not wishing to use webservices

URL

[https://primary.smartmessagingservices.net:8843/gateway/querySms?username=[]&password=[]&documentid=[]

Attribute

Description

Parameter username

Valid messagecore username

Parameter password

Password for username

Parameter documentid

Document id returned when using either "send" "sendSingle" or 'senddocument" method


Returns

Flat Text with 4 columns that are space delimited and one line per message sent from the original send method.


Return Columns


Column

Data

Format

1

Sent to Phone Number

Text

2

State

Text

3

Date

YYYY-MM-DD

4

Time

hh:mm:ss


YYYY = four-digit year

MM   = two-digit month (01=January, etc.)

DD   = two-digit day of month (01 through 31)

hh   = two digits of hour (00 through 23) (am/pm NOT allowed)

mm   = two digits of minute (00 through 59)

ss   = two digits of second (00 through 59)

s    = one or more digits representing a decimal fraction of a second


Eg


61423282862 DELIVERED 2009-02-15 14:19:30

61424582268 DELIVERED 2009-02-17 12:15:30