[英]Google API: Understanding redirect URI
I want to use Google API to track the number of tweets a particular website (say Rbloggers) make each day. 我想使用Google API跟踪特定网站(例如Rbloggers)每天发的推文数量。 And I am trying to do it in Python.
我正在尝试用Python做到这一点。
I am completely new to this. 我对此完全陌生。 So, I was looking at the
hello-analytics-api
, in which I need to deal with OAuth 2.0
. 因此,我正在查看
hello-analytics-api
,我需要在其中处理OAuth 2.0
。 And I have no idea what to put down for the redirect URI
. 而且我不知道为
redirect URI
放置什么内容。
I have read What's a redirect URI? 我已经阅读了什么是重定向URI? how does it apply to iOS app for OAuth2.0?
它如何适用于OAuth2.0的iOS应用?
But I still don't quite understand the concepts and what I should put down for the 'redirect URI' ? 但是我仍然不太了解这些概念以及应该为“重定向URI”添加什么?
From Choosing a redirect URI 从选择重定向URI
When you create a client ID in the Google Developers Console, two redirect_uris are created for you: urn:ietf:wg:oauth:2.0:oob and
http://localhost
.在Google Developers Console中创建客户端ID时,会为您创建两个redirect_uris:urn:ietf:wg:oauth:2.0:oob和
http://localhost
。 The value your application uses determines how the authorization code is returned to your application.应用程序使用的值确定如何将授权码返回到您的应用程序。
In case of desktop apps or programs, you should set it to urn:ietf:wg:oauth:2.0:oob
so that you will be redirected to the page where you can copy the authorization code from internet browser and paste it in your desktop app 如果是桌面应用程序或程序,则应将其设置为
urn:ietf:wg:oauth:2.0:oob
这样您将被重定向到可以从Internet浏览器复制授权代码并将其粘贴到桌面应用程序中的页面
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.