从Vimeo Simple API文档中:
发出视频请求
video_id 要获取其信息的视频的ID。
输出 指定输出类型。目前,我们提供JSON,PHP和XML格式。
因此获取此URL
<videos> <video> [skipped] <thumbnail_small>http://ts.vimeo.com.s3.amazonaws.com/235/662/23566238_100.jpg</thumbnail_small> <thumbnail_medium>http://ts.vimeo.com.s3.amazonaws.com/235/662/23566238_200.jpg</thumbnail_medium> <thumbnail_large>http://ts.vimeo.com.s3.amazonaws.com/235/662/23566238_640.jpg</thumbnail_large> [skipped] </videos>
解析每个视频以获取缩略图
这是PHP中的近似代码
<?php$imgid = 6271487;$hash = unserialize(file_get_contents("http://vimeo.com/api/v2/video/$imgid.php"));echo $hash[0]['thumbnail_medium'];


