Skip to content

Instantly share code, notes, and snippets.

@2dpi
Created June 20, 2012 14:20
Show Gist options
  • Save 2dpi/2960130 to your computer and use it in GitHub Desktop.
Save 2dpi/2960130 to your computer and use it in GitHub Desktop.
Vimeo image embedding
<?php // USE TO CALL VIMEO IMAGES
$imgid = '30725341';
$hash = unserialize(file_get_contents("http://vimeo.com/api/v2/video/$imgid.php"));
echo '<img src="'.$hash[0]['user_portrait_huge'].'"/>';
/*
* thumbnail_large
* thumbnail_medium
* thumbnail_small
* user_portrait_huge
* user_portrait_large
* user_portrait_medium
* user_portrait_small
*/
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment