我已经完成了所有的身份验证,但是当我尝试使用php库获取类别列表时:
// $client is the google client object
$youtube = new Google_YoutubeService($client);
$youtube->videoCategories->listVideoCategories("id");我得到的回应是:
‘调用GET https://www.googleapis.com/youtube/v3/videoCategories?part=id时出错:(400)未选择筛选器’
在listVideoCategories中没有"filter“的选项,唯一接受的参数是$part和可选的params...nothing来处理筛选器?
发布于 2014-01-30 21:01:14
显然,你需要提供你想要的类别id或者你想要的所有类别的区域。你可以在这里尝试并阅读详细信息:https://developers.google.com/youtube/v3/docs/videoCategories/list
这应该是可行的:
// $client is the google client object
$youtube = new Google_YoutubeService($client);
$categories = $youtube->videoCategories->listVideoCategories('id', array('regionCode' => 'US'));https://stackoverflow.com/questions/19876542
复制相似问题