How do I get a call recording url in twilio when p

2019-08-01 15:05发布

问题:

I am completely new to Twilio and I need the call recording url of multiple phone calls, made from one account but with different sub-accounts and with an authority token. How to go about it?

回答1:

Each recording has an ID, something like `RExxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'.

The url for MP3 format is

https://api.twilio.com/2010-04-01/Accounts/ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/Recordings/RExxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.mp3?Download=false

You can also get the url for WAV fromat

https://api.twilio.com/2010-04-01/Accounts/ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/Recordings/RExxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.wav?Download=false

Also, observe the Download=false query string parameter.