Created
April 8, 2015 22:08
-
-
Save herrbischoff/681e95c091e9f8f75ce1 to your computer and use it in GitHub Desktop.
Get Vimeo Video Thumbnail
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
function getVimeoVideoThumbnail($id) { | |
$hash = unserialize( file_get_contents("http://vimeo.com/api/v2/video/$id.php") ); | |
$thumbnail = $hash[0]['thumbnail_large']; | |
return $tumbnail; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment