Hi - I am trying to add a Member to a list with the node.js sdk, however I got the following error :
profiles is a required parameter
I copy-paste exactly the opts of the docs, see my code below :
var opts = {
profiles: [
{
email: "george.washington@klaviyo.com",
},
],
};
console.log(opts);
var newsletter_id = "WUxgjT";
var data = await klaviyo_client.ListsSegments.addMembers(
newsletter_id,
opts
);
Is there any encoding we need to do on the opts ?
Thank you