javascript - Error: The requested resource could not be found - Stack Overflow

I am trying to implement mailchimp v3. And for that this is the code I am using to get this work. But I

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
Add a ment  | 

1 Answer 1

Reset to default 3

You need to replace the /(id)/ part with your actual list id, following this official guide.

https://mailchimp./help/find-audience-id/

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745188939a4615769.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信