I am trying to implement mailchimp v3. And for that this is the code I am using to get this work. But I don't know what is /lists/id/members
and from where I can get that. And thus I am getting this error
Error: The requested resource could not be found.
at Request._callback (/mailchimp-api-v3/index.js:515:30)
Here is my code
const Mailchimp = require('mailchimp-api-v3')
const mailchimp = new Mailchimp('XXXX-XXXX-XXXX');
mailchimp.post('/lists/id/members', {
email_address : 'myEmailId',
status : 'subscribed'
})
.then(function(results) {
console.log({results})
})
.catch(function (err) {
console.log({err})
})
You need to replace the /(id)/
part with your actual list id, following this official guide.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.