且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

为什么google oauth2 playground无法返回数据?

更新时间:2022-01-24 23:06:38

我相信你需要使用你自己的oauth clientID和secret对于操场上的这个特殊API。如果您单击右上角的齿轮按钮并单击操场上使用您自己的凭据上的复选标记,您应该可以输入您的。

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.

您可以按照此处的说明获取自己的OAuth凭据: https ://developers.google.com/***/registering_an_application

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

哦,请务必在APIS& amp;给您的应用程序命名并提供电子邮件。当你第一次为你的项目创建OAuth凭证时,AUTH - >开发者控制台中的同意屏幕。

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:

获取 https://www.googleapis.com/***/v3/activities?part=snippet&home=true