node-sparkpost icon indicating copy to clipboard operation
node-sparkpost copied to clipboard

update recipientLists example code out of date

Open mattbarnicle opened this issue 3 years ago • 0 comments

the example code for updating recipientLists seems to be done against an older version. the example code looks something like this:

client.recipientLists.update({
    id: 'EXISTING_TEST_ID',
    recipients: [ { address: { email: '[email protected]' } } ]
})

but this argument list fails. after inspecting the code, i found that this is the argument list that's expected, and works:

client.recipientLists.update('EXISTING_TEST_ID', {
    recipients: [ { address: { email: '[email protected]' } } ]
})

mattbarnicle avatar Jun 28 '22 15:06 mattbarnicle