

XmlDoc = parser.parseFromString(ajax_response, "text/xml") Parse the AJAX response and get the captions.

catch(err => alert('No Channel By THat Name')) SignoutButton.onclick = handleSignouClick Ĭonst channelData = document.getElementById('channel-data') Ĭonst channel = UpdateSigninStatus(().isSignedIn.get()) ĪuthorizeButton.onclick = handleAuthClick ().isSignedIn.listen(updateSigninStatus) Init API client library and set up sing in listeners Here is my js file: const CLIENT_ID = 'My_Client_ID' Ĭonst authorizeButton = document.getElementById('enter-button') Ĭonst signoutButton = document.getElementById('exit-button') Ĭonst content = document.getElementById('content') Ĭonst defaultChannel = 'googledevelopers' The auth 2.0 works fine, I run my app in a local web server everything is fine, the problem is that when I run the request I have the error 403: cb=gapi.loaded_0:164 GET 403 I have not found any solution here in StackOverflow. I have built a javascript code to be able to read any Youtube video transcript (.download).
