Get Message

Get Message Information by Message ID.


Function

  • getMessage()

Url

  • POST: /PuresendService/v1/getMessage

Parameters

  • messageId: int
    • the message id to be retrieved.

Return

  • Message:
    • Message detailed information object.

Exception

  • PuresendException

Documentation

  • Retrieves Message details for specified message id and includes rendered data.

Examples

{
    "contentId": 12345
}
{
    "id": 12345,
    "categoryId": -1,
    "name": "Test message",
    "htmlContent": "<html>\n <head>\n  <meta http-equiv=\"Cache-Control\" content=\"no-cache, no-store, must-revalidate\">\n  <meta http-equiv=\"Pragma\" content=\"no-cache\">\n  <meta http-equiv=\"Expires\" content=\"0\">\n </head>\n <body>\n$RETURNRECEIPT$\n\n  Test HTML\n </body>\n</html>",
    "textContent": null,
    "mobileContent": null,
    "htmlContentRendered": "<html>\n <head>\n  <meta http-equiv=\"Cache-Control\" content=\"no-cache, no-store, must-revalidate\">\n  <meta http-equiv=\"Pragma\" content=\"no-cache\">\n  <meta http-equiv=\"Expires\" content=\"0\">\n </head>\n <body>\n<IMG SRC=\"http://f.psend-dev.com/psen/3755Gy-GGc7yg98xGmvoG7r2x/b.gif\" WIDTH=1 HEIGHT=1>\n\n  Test HTML\n </body>\n</html>",
    "textContentRendered": null,
    "mobileContentRendered": null
}