admin管理员组文章数量:1415099
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})
})
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})
})
Share
Improve this question
asked Sep 4, 2019 at 7:16
ProferProfer
64310 gold badges47 silver badges97 bronze badges
1 Answer
Reset to default 3You need to replace the /(id)/
part with your actual list id, following this official guide.
https://mailchimp./help/find-audience-id/
本文标签: javascriptError The requested resource could not be foundStack Overflow
版权声明:本文标题:javascript - Error: The requested resource could not be found - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745188939a2646816.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论