[英]Extracting Parameters from Redirect URI - QuickBooks API / Python
I'm working on the authentication component of an app that calls the quickbooks online reporting API.我正在开发一个调用快速手册在线报告 API 的应用程序的身份验证组件。 Intuit has an authentication package, intuit-oauth, which I'm using to generate the authorization URL.
Intuit 有一个身份验证 package,intuit-oauth,我用它来生成授权 URL。
https://developer.intuit.com/app/developer/qbo/docs/develop/sdks-and-samples-collections/python/python_oauth_client https://developer.intuit.com/app/developer/qbo/docs/develop/sdks-and-samples-collections/python/python_oauth_client
auth_client = AuthClient( client_id, client_secret, redirect_uri, 'production' )
url = auth_client.get_authorization_url([Scopes.ACCOUNTING])
This generates the url where the user can authorize the application.这将生成 url,用户可以在其中授权应用程序。 I also have a redirect URL - I'm using localhost for now, since I don't have a server running.
我还有一个重定向 URL - 我现在使用 localhost,因为我没有运行服务器。 Once the authorization is received from the user, the user is redirected to the redirect URL with a token contained in the URL that I need to retrieve.
收到用户的授权后,用户将被重定向到重定向 URL,其中包含我需要检索的 URL 中的令牌。
I can navigate to the authorization URL, authorize the app, and then see the redirect URL in the browser, but how do I access that redirect URL after the authorization to extract the token?我可以导航到授权 URL,授权应用程序,然后在浏览器中看到重定向 URL,但是在提取令牌后如何访问该重定向 ZE6B391A8D2C4D45902A23A8B658570? I'm using a Jupyter Notebook to test everything.
我正在使用 Jupyter Notebook 来测试所有内容。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.