Tag: plivo

在logging行动得到空的身体 – twilio

我的用例: 我的情况是,我正在制作一个收听播客的机器人,在这个播客中用户会打电话给twilio号码,机器人会问你想听什么types的播客,然后logging10秒钟 当录音完成时,它说用户请等待,而我们正在寻找播客 我想在我的webhook录音,所以我会弄清楚来电心情,并从我的数据库中find适当的播客MP3文件,并发挥给来电 问题我面临: 我在所有的webhook中都得到空的身体 我的代码: var express = require("express"); var bodyParser = require("body-parser"); var VoiceResponse = require('twilio').twiml.VoiceResponse; var app = express(); var port = (process.env.PORT || 4000); app.use(bodyParser.json()) // helper to append a new "Say" verb with alice voice function say(text, twimlRef) { twimlRef.say({ voice: 'alice' }, text); } // respond with the […]

使用nodejs发送一个otp到所需的手机号码

我正在使用Plivo向用户发送短信otpvalidation,我无法更新手机号码和消息参数为不同的用户,这里是我的代码 global.params = { 'src': 'xx-xxxx', // Sender's phone number with country code 'dst' : '91'+'xxxxxxxxxx', // Receiver's phone Number with country code 'text' : "Hi, message from Plivo", // Your SMS Text Message – English 'url' : "https://intense-brook-8241.herokuapp.com/report/", // The URL to which with the status of the message is sent 'method' : "GET" […]