I'm currently trying to make a site which uploads all the videos from specific playlist of some channel. Like list of videos. And I found this video - link. And that's what I have now:
$(document).ready(function() {
$.get(
"https://www.googleapis.com/youtube/v3/channels",{
part : 'contentDetails',
forUsername : 'CHANNEL_NAME',
key: 'MY_KEY'},
function(data) {
$.each( data.items, function( i, item ) {
console.log(item);
})
}
);
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
But I have nothing in console, though judging by console.log(item)
something must be there, at least undefined
. And even when I write just console.log('hi')
I still have nothing. I just can't understand what's wrong. Anyway, I'd be very thankful for any help.
`. I know that I get videoId from `item.id.videoId`, but I don't what to do next. I'll be very happy if you help me. – here4onequestion Jan 01 '18 at 20:47