So I am trying to make a script that gets the most recent video uploaded to my youtube channel. here is i what I have so far...
<body onLoad="loadVids()"><script> function loadXMLDoc(channel) { if (window.XMLHttpRequest) { xhttp=new XMLHttpRequest(); } else { xhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xhttp.open("GET","https://gdata.youtube.com/feeds/api/users/"+channel+"/uploads/",false); xhttp.send(); return xhttp.responseXML; } function loadVids() { var xml = loadXMLDoc("CHANNELNAME"); }</script>
Now that I have loaded the XML how do I get each video uploaded?
Thanks.