Twilio not sending status callbacks

馋奶兔 提交于 2019-12-02 12:22:37

问题


I'm trying to get status callbacks for various room events, but twilio is not sending any events to my callback URL, I've used the following code to create a room using the documentation i found here

app.get('/createRoom', function (req, res) {
    var client = new Twilio(twilioApiKey, twilioApiSecret, { 
          accountSid: twilioAccountSid 
    });
    client.video.rooms.create({
        uniqueName: myRoomName,
        statusCallback: 'myCallbackURL'
    }).then((room) => {
        //
    });
});

来源:https://stackoverflow.com/questions/46179234/twilio-not-sending-status-callbacks

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!