我平均有 100 - 1500 个电话号码要向其发送短信。我想在正文中包含与每个电话号码相关联的人名。我如何才能使用 Twilio 做到这一点?
client.notify.services(notifyServiceSid)
.notifications.create({
toBinding: JSON.stringify({
binding_type: 'sms', address: process.env.NUMBER_ONE,
binding_type: 'sms', address: process.env.NUMBER_TWO
}),
body: 'This should work!' //I want to dynamically change this per number.
})
.then(notification => console.log(notification.sid))
.catch(error => console.log(error));
富国沪深
相关分类