很抱歉,本页面中文版尚未完成,正在由Emarsys本地化团队努力筹备中。
Returns the list of email personalization fields with alternative values and shows if personalization is omitted.
Endpoint
GET https://api.emarsys.net/api/v2/email/<campaign_id>/personalization
Parameters
Name | Type | Description | Comments |
---|---|---|---|
email_id | int | ID of the email, part of the URI |
Result Example
{ "replyCode": 0, "replyText": "OK", "data": [ { "element": "1", "omitUser": "n", "defaultValue": "all" }, { "element": "3", "omitUser": "n", "defaultValue": "youraddress@domain.com" } ] }
Where:
Name | Type | Description | Comments |
---|---|---|---|
element | int | Field number of the personalized elements. | |
omitUser | enumerator | Personalization is omitted if it is "y". | |
defaultValue | string | Alternative values specified for the personalization fields. |
Errors
HTTP Code | Reply Code | Message | Description |
---|---|---|---|
400 | 10001 | Invalid action: personalization | No email ID was provided. |
400 | 10001 | Invalid action: <string> | A string was provided, but the email ID must be an integer. |
404 | 6025 | No such campaign exists. | There is no campaign with the given ID. |