Example of JS nms.subscription.RecipientSubscribe()
Hi,
I couldn't find any working example of the following method:
XML confirmationIds = RecipientSubscribe ( XML recipientList, XML serviceList, Boolean subscribe, XML sendConfirmation )
Could you please show how it works?
I tried, without the success, the following:
var serviceXml = {service: {_key: "name", name: 'myServiceInternalName'}};
var recipientXml = {recipient: {_key: "email", email: 'my-recipient@yopmail.com'}};
var sendConfirmationXml = {sendConfirmation:{sendConfirmation:'true'}}; // what to use here???
var subscribe = true;
var confirmationIds = nms.subscription.RecipientSubscribe (
recipientXml,
serviceXml,
subscribe,
sendConfirmationXml
);
logInfo(confirmationIds);
Thank you
Florian