const campaign = {
type: 'regular',
recipients: {
list_id: '11a07e4453'
},
settings: {
subject_line: 'New Blog Post: TITLE',
from_name: 'YOUR_NAME',
reply_to: 'YOUR_EMAIL'
},
content: {
type: 'template',
template: {
id: '31036'
}
}
};
mailchimp.campaigns.create(campaign)
.then(response => console.log(response))
.catch(error => console.error(error));
async function run() {
const response = await mailchimp.ping.get();
console.log('lets seeeeeeee', response);
}
run();
ping 方法成功运行但我似乎无法工作 mailchimp.campaigns.create(campaign).
我不知道缺少什么,但这给了我错误
Error: Bad Request