The oauth-python code snippet demonstrates the Oauth 1.0 flow using an OAuth1Session object from the requests-oauthlib open source library. The OAuth1Session object is a layer implemented on top of a consumer and provider. The sample code assumes that you are running on Windows platform with Eclipse installed. The outcome of the sample reads an existing customer and creates a new customer using Intuit’s QuickBooks Online API v3 endpoints.
Download and Install Python 2.7.9 from here:
https://www.python.org/downloads/
Learn how to install Pydev and Pydev extension for Eclipse here:
http://www.pydev.org/manual_101_install.html
Download and install oauthlib0.7.2 here:
https://pypi.python.org/pypi/oauthlib
Download and install requests-oauthlib here:
https://github.com/requests/requests-oauthlib
Download and install requests-2.5.1 here:
https://pypi.python.org/pypi/requests/2.5.1
Unzip and move oauthlib, requests-oauthlib and requests folder to your Python Lib folder:
Open Eclipse and create a new PyDev Project
Copy OAuthTest.py to your project folder
Specify grammar version and interpreter location (e.g. c:\Python27\python.exe)
Open OAuthTest.py in Eclipse. The following sample is based upon Requests-OAuthLib documentation using an OAuth 1.0 Session object implementation: http://requests-oauthlib.readthedocs.org/en/latest/api.html
Execute code in Python command line window:
Copy the complete callback_uri as the redirect_response








