getMessage method
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.unisender.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:
Пример: {"result":[ { "id":"3771225", "sub_user_login":null, "list_id":"910533", "last_update":"2013-09-02 07:35:17", "service_type":"email", "lang_code":"ru", "active_version_id":null, "message_format":"raw_html", "wrap_type":"left", "images_behavior":"only_links", "sender_email":"test@unisender.com", "sender_name":"UniSender", "subject":"Message Subject", "body":"<p>Message body</p>", "text_body":"Message body" } ] } |