android - Google API - YouTube - GuideCategories : list (Android)

标签 android youtube categories

我在检索类别列表时遇到问题。
我遵循了以下文档:
https://developers.google.com/youtube/v3/docs/guideCategories/list

我发送这样的 GET 请求:
https://www.googleapis.com/youtube/v3/guideCategories?part=snippet&regionCode=us&key=MY_APP_KEY

我得到这个回应:

{ "error": {  "errors": [   {    "domain": "usageLimits",    "reason": "accessNotConfigured",    "message": "Access Not Configured. Please use Google Developers Console to activate the API for your project."   }  ],  "code": 403,  "message": "Access Not Configured. Please use Google Developers Console to activate the API for your project." }}

对正在发生的事情有任何想法吗?

我已将 key 创建为:
https://console.developers.google.com/project/apps~angular-spider-465/apiui/credential

我在那里还有其他用于上传视频、使用谷歌地图的键,它工作正常。
我只是在获取类别列表时遇到问题。

谢谢!

最佳答案

我发现了错误。
要获取我不能使用 Android key 的类别。
我必须使用浏览器 key 。
我不知道为什么,但它奏效了!

关于android - Google API - YouTube - GuideCategories : list (Android),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22720627/

相关文章:

iphone - Objective c 类别和继承

php - php sql 中包含日期、变量类别和总和值的数据透视表

java - 如何在 WebView 中使用自定义视频播放器?

android - 如何制作没有工具栏的标签

android - iOS/Android GPS 电量消耗?

javascript - YouTube 视频导航小部件

networking - 为什么Broid默认不显示YouTube流量

php - 生成一个唯一ID,例如Youtube的播放列表-PHP

android - 如何使用 textureregion 在 libgdx 中设置图像

php - 如何在 codeigniter 中获取父类别的所有子类别和孙类别?