Created
June 20, 2012 14:20
-
-
Save 2dpi/2960130 to your computer and use it in GitHub Desktop.
Vimeo image embedding
This file contains hidden or 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
<?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