【发布时间】:2015-10-30 17:08:29
【问题描述】:
我被以下问题困住了
我正在尝试调用 YouTube Analytics API
我去了谷歌的oAuth2游乐场https://developers.google.com/oauthplayground,第一步我选择并授权了所有与youtube相关的API,如屏幕截图所示
然后在第 2 步中,我将自动化代码交换为令牌,在第 3 步中,我将以下请求发送到 API
https://www.googleapis.com/youtube/analytics/v1/reports?ids=channel%3D%3DMINE&start-date=2007-05-01&end-date=2015-06-30&metrics=estimatedMinutesWatched%2Cviews%2Clikes%2CsubscribersGained
而我得到的是
{
"error": {
"code": 403,
"message": "Access Not Configured. The API (YouTube Analytics API) is not enabled for your project. Please use the Google Developers Console to update your configuration.",
"errors": [
{
"domain": "usageLimits",
"message": "Access Not Configured. The API (YouTube Analytics API) is not enabled for your project. Please use the Google Developers Console to update your configuration.",
"reason": "accessNotConfigured",
}
]
}
}
但我启用了 YouTube 分析 API。
有什么想法吗? 非常感谢您的帮助!
【问题讨论】:
-
为了回答我自己的问题,我用以下答案解决了我的问题stackoverflow.com/a/24653407/2473413
标签: oauth2-playground youtube-analytics-api