Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3831

About Youtube channels and YouTube API v3

$
0
0

I was wondering why is that that some channels return an array in the following code and other don't? I'm trying to make a video gallery but the specific channel won't return me that array that has contentDetails. I also have access to the youtube account if I need to change any settings in there to allow this code to work. I also already have api credentials and added API v3 to the project.

$(document).ready(function() {    $.get("https://www.googleapis.com/youtube/v3/channels", {            part: 'contentDetails',            forUsername: channelName,            key: 'myKeyvalue'},            function(data) {                console.log(data);                //upload_id = data.items[0].contentDetails.relatedPlaylists.uploads;            }    )}

Thanks in advance.

The data object should contain an array.


Viewing all articles
Browse latest Browse all 3831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>