The Transaction model acts as a container for messages sent through the API. It is a member of the Response model.
Transaction Members
The unique identifier for the transaction
An integer representing the type of transaction. This can be one of the following:
SMS
Wap Push
Trigger
Status
A collection of Message Models
The following example is a segment of the XML response from
Send SMS
. For the purposes of this
example the
messages element has been
shortened.
<transaction type="1"> <id>118</id> <messages/> </transaction>
The following example is a segment the JSON
Send SMS
. For the purposes of this
example the
messages array has been
emptied.
"transaction": {
"id":118,
"type": 1,
"messages":[]
}
The following is an example of the Plain response. It is a
single line containing the text
TRANSACTION followed by the
Transaction Identifer. It will be followed by the Plain contents of
the
Messages
model.
TRANSACTION 123