It is a method to get information about SMS or email message.
Principle of use
| Syntax and URL to call the method |
| getMessage (int id) |
https://api.selzy.com/en/api/getMessage?id=ID&api_key=KEY |
| Arguments | |
| id * | id — 31-bit positive integer, message identifier. Such identifiers are returned using the createEmailMessage and createSmsMessage methods. The id can be transferred as a single number or as an array to receive several letters (see the example below). |
| api_key * | API access key |
| Return value |
JSON array, each array element is an object of the letter with the following fields:
Example: {"result":[
{
"id":"3771225",
"sub_user_login":null,
"list_id":"910533",
"created": "2010-02-23 13:29:51",
"last_update":"2013-09-02 07:35:17",
"service_type":"email",
"lang_code":"en",
"active_version_id":null,
"message_format":"raw_html",
"wrap_type":"left",
"images_behavior":"only_links",
"sender_email":"test@selzy.com",
"sender_name":"Selzy",
"subject":"Message Subject",
"body":"<p>Message body</p>",
"text_body":"Message body"
}
]
}
|