« Back to Documentation Overviewget_message_contents
Section: Messages
Version: 1.5.0
Get message contents (parts).
Hint: Result may be empty (draft messages from web interface do not require content) or contain only plain, only html or both.
Hint: All merge-words in contents are GetResponse Dynamic Content syntax.
Parameters
|
---|
string | API_KEY |
object | |
Return Value
|
---|
string | plain | Hello there |
string | html | <h1>Hello</h1>there |
Example Request JSON
[
"API_KEY",
{
"message": "MESSAGE_ID"
}
]
Example Response JSON
{
"plain": "Hello there",
"html": "<h1>Hello<\/h1>there"
}
Example Error Response JSON
{
"code": -1,
"message": "Missing message"
}
Method-specific Errors
|
---|
Missing message |
API-wide Errors
|
---|
API key verification failed
| API key verification failed |
API client IP not allowed
| API client IP not allowed |
Invalid params
| Attribute params must be reference to hash |