我在检索类别列表时遇到问题。
我遵循了以下文档:
https://developers.google.com/youtube/v3/docs/guideCategories/list
我发送这样的 GET 请求:
https://www.googleapis.com/youtube/v3/guideCategories?part=snippet®ionCode=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/