You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now there is no easy way to achieve creating custom email campaigns as described on the official Emarsys docs: https://dev.emarsys.com/suite/emails/email_create.html This is pretty helpful in many ways, such as creating custom content for dynamic newsletters.
I think it can be resolved as simple as this on the following file /api/endpoints/email/index.js adding this code:
/**
* new
* Creates a new email campaign with custom data
* customerId<String>: the customer id
* options<Object>: as seen on https://dev.emarsys.com/suite/emails/email_create.html
* returns: <Object>
* Example:
* {
* "replyCode": 0,
* "replyText": "OK",
* "data":
* {
* "id": 2140
* }
*}
*/
Email.prototype.new = function(customerId, options) {
logger.log('email_new');
return this._request.post(customerId, '/email', options);
};
The text was updated successfully, but these errors were encountered:
currently we are working on the v3 of the sdk, and will be done with that in a couple of days. After that feel free to fork the project and add this functionality. We are happy to merge it :)
Right now there is no easy way to achieve creating custom email campaigns as described on the official Emarsys docs: https://dev.emarsys.com/suite/emails/email_create.html This is pretty helpful in many ways, such as creating custom content for dynamic newsletters.
I think it can be resolved as simple as this on the following file /api/endpoints/email/index.js adding this code:
The text was updated successfully, but these errors were encountered: