Extracting Parameters from Redirect URI - QuickBooks API / Python

85
January 26, 2021, at 05:30 AM

I'm working on the authentication component of an app that calls the quickbooks online reporting API. Intuit has an authentication package, intuit-oauth, which I'm using to generate the authorization URL.

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. I also have a redirect URL - I'm using localhost for now, since I don't have a server running. 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.

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? I'm using a Jupyter Notebook to test everything.

READ ALSO
How to check if a function is running in worker thread in node?

How to check if a function is running in worker thread in node?

I am trying to use worker_threads in node to run some expensive calculation without blocking the main thread

86
PyQt5 - setting background color and background image

PyQt5 - setting background color and background image

I wonder how do I set background color AND background image in Python GUI app using PyQt5I can't figure out how to set them simultaneously

104
How to take column from two table in whereExists clause in laravel 5.5

How to take column from two table in whereExists clause in laravel 5.5

I have three table 1)allcasefileofuserrequest 2)allscanfileofuserrequest 3)userrequestforcasecopies

84
Recursive select does not return date list [closed]

Recursive select does not return date list [closed]

Want to improve this question? Add details and clarify the problem by editing this post

98