Created
October 20, 2011 23:14
-
-
Save fideloper/1302683 to your computer and use it in GitHub Desktop.
Youtube public channel uploaded videos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//See more http://code.google.com/apis/youtube/2.0/developers_guide_protocol_api_query_parameters.html | |
$.ajax({ | |
type:'GET', | |
dataType:'jsonp', | |
//url:'http://gdata.youtube.com/feeds/users/USERNAME/uploads?alt=json', //also usable, but less awesome | |
url:'http://gdata.youtube.com/feeds/api/videos', | |
data:{author:'USERNAME', v:2, orderby:'published', alt:'json', 'max-results':10}, | |
success:function(data, textStatus, XMLHttpRequest) { | |
console.log(data); | |
}, | |
error:function(eq, status, error) { | |
alert('error: '+status); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment