试图围绕Vimeo API ... 我已成功通过搜索查询获取视频列表:
$limit = 10; // number of videos to display
$vimeo = new phpVimeo($key, $secret);
$response = $vimeo->call('vimeo.videos.search', array('per_page' => $limit, 'query' => $query, 'sort' => 'relevant'));
然而,当我尝试按类别获取视频列表时,我得到500 - 内部服务器错误。我错过了什么?
$limit = 10; // number of videos to display for each search
$vimeo = new phpVimeo($key, $secret);
$response = $vimeo->call('vimeo.categories.getRelatedVideos', array('per_page' => 10, 'category' => $videocategory));
$videocategory
是现有的Vimeo类别,适用于游乐场。
$key
是我的关键
$secret
为空字符串
答案 0 :(得分:0)
这是旧的API。它已被弃用数月。您应该使用新的API:https://developer.vimeo.com和新的PHP库:https://github.com/vimeo/vimeo.php
您可以在此处了解Vimeo的类别API:https://developer.vimeo.com/api/endpoints/categories