Answers for "the api key provided is linked to datacenter 'us5\""

0

the api key provided is linked to datacenter 'us5\"

request.post({
  url: 'https://usXX.api.mailchimp.com/3.0/lists/xxxxxxx/members',
  headers: {
    'Content-Type': 'application/json',
    'Authorization': 'Basic xxxxxxxxxxxxxxxxxxxxxxxxx-usXX'
  },
  form: JSON.stringify({
    email_address: req.body.email,
    status: 'subscribed',
    interests: { 'xxxxxxx': true } // Interest Group
  })
}, function(err, httpResponse, body) {
  res.send(body);
});
Posted by: Guest on February-04-2021

Code answers related to "the api key provided is linked to datacenter 'us5\""

Code answers related to "Javascript"

Browse Popular Code Answers by Language