baseUrl = "https://api.twilio.com/2010-04-01/Accounts/" & accountID & "/Calls/" & callSID & "/Recordings"
'response.write remoteURL Set http = Server.CreateObject("MSXML2.ServerXMLHTTP") http.open "GET", baseUrl, False, accountID, passwordString http.setRequestHeader "Content-Type", "application/x-www-form-urlencoded" http.send displayReturn = http.responSetext 'Get Twilio Response Set fn_xml = Server.CreateObject("msxml2.DOMDocument.6.0") fn_xml.async = False fn_xml.loadxml (displayReturn) on error resume next url = (fn_xml.selectSingleNode("//TwilioResponse/Recordings/Recording/Uri").text) recordingDuration = (fn_xml.selectSingleNode("//TwilioResponse/Recordings/Recording/Duration").text) recordingURL = "https://api.twilio.com" & url & ".mp3" on error goto 0 set fn_xml = nothing Set http = Nothing
0 Comments
Your comment will be posted after it is approved.
Leave a Reply. |
2016-17 WorkExamples of my new work in 2016 and 2017 Archives
January 2018
Categories |