我正在尝试搜索视频,例如:
https://developer.vimeo.com/api/playground/videos
这是最终查询:
https://api.vimeo.com/videos?direction=desc&page=1&per_page=10&query=fashion&sort=likes
这会返回10个视频。但是,如果我使用代码搜索:
//Search for videos - https://developer.vimeo.com/api/playground/videos
$result = $vimeo->request("/videos", array(
'page'=> $page,
'per_page' => $perPage,
'fields' => 'uri,name,description,duration,width,height,privacy,pictures.sizes',
'sort' => $sort,
'direction' => $sortDirection,
'query' => $path
));
我只收到8个结果,我不知道为什么。
我能看到的唯一一件事,也许与之无关,就是2张未退回的视频有此设置:
"privacy": {
"view": "ptv",
"embed": "public",
"download": false,
"add": false,
"comments": "nobody"
},
而其他人有这些(我不知道这是否重要)
"privacy": {
"view": "anybody",
"embed": "public",
"download": false,
"add": true,
"comments": "anybody"
},
答案 0 :(得分:0)
VimeoResponse vimeoResponseList = vimeo.get(VimeoConstants.BASE_URL + "videos?query=" + query + "&sort=date&direction=asc&page=" + connectionProfile.getAgentPropertiesList().get(0));
这看起来像是-> https://api.vimeo.com/videos?query=asd&sort=date&direction=asc&page=5
这是针对Java的,我使用clickntap。