Skip to content

Instantly share code, notes, and snippets.

@benytocarlo
Created May 19, 2013 03:41
Show Gist options
  • Save benytocarlo/5606583 to your computer and use it in GitHub Desktop.
Save benytocarlo/5606583 to your computer and use it in GitHub Desktop.
Vimeo Thumbnail
$.ajax({
type:'GET',
url: 'http://vimeo.com/api/v2/video/' + video_id + '.json',
jsonp: 'callback',
dataType: 'jsonp',
success: function(data){
var thumbnail_src = data[0].thumbnail_large;
$('#thumb_wrapper').append('<img src="' + thumbnail_src + '"/>');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment