📌  相关文章
📜  提供的 api 密钥链接到数据中心 'us5\" - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:21.553000             🧑  作者: Mango

代码示例1
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);
});