why is google oauth2 playground failing to return data?

假装没事ソ 提交于 2019-12-01 20:46:38

I believe you need to use your own oauth clientID and secret for this particular API in the playground. If you click on the gear button on the right top corner and click the check mark on "Use your own credential" in the playground, you should be able to enter yours.

You can get your own OAuth credential by following the instruction here: https://developers.google.com/youtube/registering_an_application

Oh make sure you name your application and provide email under the APIS & AUTH ->Consent screen in the Developer console when you first create you OAuth credential for your project.

And there is one thing missing in your query as well... you need specify a filter as well. See if you can at least get this one working:

GET https://www.googleapis.com/youtube/v3/activities?part=snippet&home=true

11digitlabs

I had the same issue, and before I found your question I had posted mine

Apparently Google hadn't enabled the Youtube Analytics API for the default/demo credentials in the oAuthPlayground, which is now enabled, see the accepted answer in the link

https://stackoverflow.com/a/33462959/2473413

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!