-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1315 from Accenture/feature/1314-resolve-email-te…
…mplates Feature/1314 resolve email templates
- Loading branch information
Showing
14 changed files
with
739 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
85 changes: 85 additions & 0 deletions
85
test/resources/9999999/asset/retrieve-templatebasedemail-expected.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
{ | ||
"customerKey": "testExisting_asset_templatebasedemail", | ||
"contentType": "application/vnd.etmc.email.Message; kind=template", | ||
"assetType": { "name": "templatebasedemail", "displayName": "Template-Based Email" }, | ||
"name": " testExisting_asset_templatebasedemail", | ||
"owner": { "email": "joern.berkefeld@accenture.com", "name": "Jörn Berkefeld" }, | ||
"createdDate": "2024-04-22T06:36:03.117-06:00", | ||
"createdBy": { "email": "joern.berkefeld@accenture.com", "name": "Jörn Berkefeld" }, | ||
"modifiedDate": "2024-05-13T07:15:29.77-06:00", | ||
"modifiedBy": { "name": "IDE - joern.berkefeld app user" }, | ||
"memberId": 9999999, | ||
"status": { "name": "Draft" }, | ||
"views": { | ||
"subjectline": { | ||
"contentType": "application/vnd.etmc.email.View; kind=subjectline", | ||
"thumbnail": {}, | ||
"content": "my subject line", | ||
"availableViews": [], | ||
"data": { "email": { "options": { "generateFrom": null } } }, | ||
"modelVersion": 2 | ||
}, | ||
"preheader": { | ||
"contentType": "application/vnd.etmc.email.View; kind=preheader", | ||
"thumbnail": {}, | ||
"content": "my custom preheader text", | ||
"availableViews": [], | ||
"data": { "email": { "options": { "generateFrom": null } } }, | ||
"modelVersion": 2 | ||
}, | ||
"text": { | ||
"thumbnail": {}, | ||
"availableViews": [], | ||
"data": { "email": { "options": { "generateFrom": "html" } } }, | ||
"generateFrom": "html", | ||
"modelVersion": 2 | ||
}, | ||
"viewAsAWebPage": { | ||
"thumbnail": {}, | ||
"availableViews": [], | ||
"data": { "email": { "options": { "generateFrom": null } } }, | ||
"modelVersion": 2 | ||
}, | ||
"subscriptioncenter": { | ||
"thumbnail": {}, | ||
"availableViews": [], | ||
"data": { "email": { "options": { "generateFrom": null } } }, | ||
"modelVersion": 2 | ||
}, | ||
"forwardHTML": { | ||
"thumbnail": {}, | ||
"availableViews": [], | ||
"data": { "email": { "options": { "generateFrom": null } } }, | ||
"modelVersion": 2 | ||
}, | ||
"forwardText": { | ||
"thumbnail": {}, | ||
"availableViews": [], | ||
"data": { "email": { "options": { "generateFrom": null } } }, | ||
"modelVersion": 2 | ||
}, | ||
"html": { | ||
"thumbnail": {}, | ||
"availableViews": [], | ||
"template": { | ||
"meta": { "contentHash": -166410261 }, | ||
"r__assetTemplate_Key": "testExisting_asset_template" | ||
}, | ||
"data": { "email": { "options": { "generateFrom": null } } }, | ||
"modelVersion": 2 | ||
} | ||
}, | ||
"availableViews": [ | ||
"subjectline", | ||
"preheader", | ||
"text", | ||
"viewAsAWebPage", | ||
"subscriptioncenter", | ||
"forwardHTML", | ||
"forwardText", | ||
"html" | ||
], | ||
"data": { "email": { "options": { "characterEncoding": "utf-8" } } }, | ||
"modelVersion": 2, | ||
"r__folder_Path": "Content Builder" | ||
} |
48 changes: 48 additions & 0 deletions
48
test/resources/9999999/asset/v1/content/assets/5286/get-response.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"id": 5286, | ||
"customerKey": "testExisting_asset_template", | ||
"objectID": "50855339-3f87-47a7-8677-a8c63eb36a43", | ||
"assetType": { | ||
"id": 4, | ||
"name": "template", | ||
"displayName": "Template" | ||
}, | ||
"fileProperties": { | ||
"fileName": " testExisting_asset_template" | ||
}, | ||
"name": " testExisting_asset_template", | ||
"owner": { | ||
"id": 710411605, | ||
"email": "joern.berkefeld@accenture.com", | ||
"name": "Jörn Berkefeld", | ||
"userId": "710411605" | ||
}, | ||
"createdDate": "2024-04-22T03:33:08.253-06:00", | ||
"createdBy": { | ||
"id": 710411605, | ||
"email": "joern.berkefeld@accenture.com", | ||
"name": "Jörn Berkefeld", | ||
"userId": "710411605" | ||
}, | ||
"modifiedDate": "2024-05-13T07:12:13.117-06:00", | ||
"modifiedBy": { | ||
"id": 710420432, | ||
"name": "joern.berkefeld app user", | ||
"userId": "710420432" | ||
}, | ||
"enterpriseId": 510004860, | ||
"memberId": 510009653, | ||
"status": { | ||
"id": 1, | ||
"name": "Draft" | ||
}, | ||
"thumbnail": { | ||
"thumbnailUrl": "/v1/assets/5286/thumbnail" | ||
}, | ||
"category": { | ||
"id": 89397 | ||
}, | ||
"content": "<a href=\"%%ftaf_url%%\"\n ><img\n src=\"https://www.exacttarget.com/members/newsletters/gfx/forwardafriendicon.gif\"\n border=\"0\" /></a\n><a href=\"%%profile_center_url%%\" alias=\"Update Profile\">Update Profile</a>\n<table cellpadding=\"2\" cellspacing=\"0\" width=\"600\" id=\"Table5\" border=\"0\">\n <tr>\n <td>\n <font face=\"verdana\" size=\"1\" color=\"#444444\"\n >This email was sent by: <b>%%Member_Busname%%</b><br />%%Member_Addr%%\n %%Member_City%%, %%Member_State%%, %%Member_PostalCode%%, %%Member_Country%%<br /><br\n /></font>\n </td>\n </tr>\n</table>\n<a href=\"%%subscription_center_url%%\" alias=\"Manage Subscriptions\">Manage Subscriptions</a\n><img src=\"https://www.exacttarget.com/images/Powered_By_1206.jpg\" border=\"0\" /><custom\n name=\"opencounter\"\n type=\"tracking\"\n/>\n", | ||
"availableViews": [], | ||
"modelVersion": 2 | ||
} |
Oops, something went wrong.