简体   繁体   English

Google API:了解重定向URI

[英]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.

相关问题 什么是Google API重定向uri - What is google api redirect uri 错误 400:redirect_uri_mismatch - Google 电子表格 API - Python - Error 400: redirect_uri_mismatch - Google Spreadsheet API - Python Google Analytics(分析)API-错误:redirect_uri_mismatch - Google Analytics API - Error: redirect_uri_mismatch Google API:网址不匹配:flow.redirect_uri 被忽略 - Google API: Url mismatch: flow.redirect_uri is ignored Linkedin API-错误的重定向,无效的重定向URI - Linkedin API - Bad Redirect, invalid redirect URI Google API OAuth 2.0 无法验证错误 400:redirect_uri_mismatch - Google API OAuth 2.0 can't authenticate Error 400: redirect_uri_mismatch Google Drive API Quickstart.py 错误 400:redirect_uri_mismatch - Google Drive API Quickstart.py Error 400: redirect_uri_mismatch 启用服务器端对Google API的访问权限时redirect_uri_mismatch错误 - redirect_uri_mismatch error when enabling server side access to Google API 无法从python脚本使用Google API进行身份验证,无法正常工作-错误:redirect_uri_mismatch - Cannot get authentication with google api from python script to work - Error: redirect_uri_mismatch Google Gmail API OAuth 2.0 错误 400:redirect_uri_mismatch - Google Gmail API OAuth 2.0 Error 400: redirect_uri_mismatch
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM