The criteria
object specifies what messaging
information is returned and how the returned information is sorted.
The criteria
object has three main properties: Type
, Filter
,
and Sort
. These are described in the following table.
Properties enclosed in brackets are optional.
Property |
Description |
Type |
Value |
---|---|---|---|
|
Specifies the type of messaging objects to retrieve. |
string |
Possible values:
|
|
Specifies how the information to be retrieved is filtered. |
object |
Object with the properties specified below |
|
Specifies the type or types of messages to retrieve. |
array of strings |
Possible values:
Note: The current implementation only recognizes SMS and MMS. Other types
of messages are |
|
Specifies the unique ID of the message to retrieve. If |
number |
|
|
Specifies the message recipients. Only messages sent to these recipients are retrieved. |
array of strings |
|
|
Specifies the message subjects. Only messages with these subjects are retrieved. Note: SMS does not support subject. This property is only valid for MMS. |
string |
|
|
If only If both If |
date object |
|
|
If only If both If |
date object |
|
|
Specifies how the returned list of information is sorted. |
object |
Object with the properties specified below |
|
Specifies the value to sort by. Note: By default, sorting is done in ascending order based on |
string |
Possible values:
|
|
Specifies the sort order. |
string |
Possible values:
|