Youtube API - EXPLAINED IN 6 EASY STEPS!
In this video I'll be taking you through embedding youtube videos on your website using the youtube API including getting an API key, showing you the documentation I used to learn how to use it and then coding it all up. I WAS NOT AWARE THAT ANNOTATIONS HAVE BEEN REMOVED FROM YOUTUBE DURING MAKING OF THIS VIDEO, I ATTACHED RELEVANT LINKS BELOW. The steps I took to complete this challenge are as follows(I go into more detail in the video): STEP 1 Make a HTTP request, create an object with id, part and key. STEP 2 After the object create an anonymous function with one argument and cache the upload's playlist ID then call a function(you have the naming rights) and use that pass in that variable as the argument STEP 3 Create the function from step 2 and make a second HTTP request inside it. Create an object with playlistId, part, maxResults and key. STEP 4 After the object create another anonymous function with one argument. STEP 5 Iterate over the array of videos. STEP 6 Cache the video ID and the title in variables then create an li and the necessary markup that you want to put inside that li and append the li to the ul. Useful links: API call #1: https://goo.gl/89oC36 API call #2: https://goo.gl/dXW3kd $.get(): https://goo.gl/rCMMm8 for...of: https://goo.gl/pLeUuP jQuery: https://goo.gl/E7aiZH CodePen: https://goo.gl/UFX3yk api key: https://goo.gl/yh5pAi channel documentation: https://goo.gl/6u6HFj playlist items documentation: https://goo.gl/EvKzHL
Download
0 formatsNo download links available.