get vimeo thumb
//
$vimeoinfo = $vimeo->request('/videos/'.$VimeoID);
$vimeo_thumb = $vimeoinfo['body']['pictures']['base_link'];
//
$vimeoinfo = $vimeo->request('/videos/'.$VimeoID.'/pictures');
$vimeo_thumb = $vimeoinfo['body']['data']['0']['base_link'];
none secret
function getVimeoVideoThumbnailByVideoId( $id = '', $thumbType = 'medium' ) {
$id = trim( $id );
if ( $id == '' ) {
return FALSE;
}
if ( is_array( $apiData ) && count( $apiData ) > 0 ) {
$videoInfo = $apiData[ 0 ];
switch ( $thumbType ) {
case 'small':
return $videoInfo[ 'thumbnail_small' ];
break;
case 'large':
return $videoInfo[ 'thumbnail_large' ];
break;
case 'medium':
return $videoInfo[ 'thumbnail_medium' ];
default:
break;
}
}
return FALSE;
}