Twilio not sending status callbacks

2019-02-28 11:05发布

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) => {
        //
    });
});

0条回答
登录 后发表回答