documentation icon indicating copy to clipboard operation
documentation copied to clipboard

Node.js example for multiple tags is wrong

Open shimopus opened this issue 8 years ago • 0 comments

Current example is var data = { from: 'Excited User <[email protected]>', to: 'alice@example', subject: 'Tagged', text: 'Testing some Mailgun awesomeness!', "o:tag" : 'newsletters', "o:tag" : 'September newsletter' };

Which is wrong as javascript object could not have two properties with the same name.

The right example is: var data = { from: 'Excited User <[email protected]>', to: 'alice@example', subject: 'Tagged', text: 'Testing some Mailgun awesomeness!', "o:tag" : ['newsletters', 'September newsletter'] };

shimopus avatar Oct 21 '17 15:10 shimopus