node-sparkpost
node-sparkpost copied to clipboard
update recipientLists example code out of date
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]' } } ]
})