Skip to content

reggiev/oauth-python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 

Repository files navigation

Intuit Developer's oauth-python

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:

1

Open Eclipse and create a new PyDev Project

2

Copy OAuthTest.py to your project folder

3

Specify grammar version and interpreter location (e.g. c:\Python27\python.exe)

4

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

5

Execute code in Python command line window:

9

7

Copy the complete callback_uri as the redirect_response

8

10

About

OAuth Sample for Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%