0

我是 node.js 的新手。考虑实现一个系统,将文本发送到给定的号码。请帮我。谢谢你。

4

1 回答 1

2

要从 Node.js 发送 SMS 消息,请尝试 Twilio:http: //www.twilio.com/docs/node/install

// Your accountSid and authToken from twilio.com/user/account
var accountSid = 'AC32a3c49700934481addd5ce1659f04d2';
var authToken = "";
var client = require('twilio')(accountSid, authToken);

client.sms.messages.create({
    body: "Jenny please?! I love you <3",
    to: "+14159352345",
    from: "+14158141829"
}, function(err, message) {
    process.stdout.write(message.sid);
});
于 2013-10-25T10:07:25.127 回答