Skip to content

Commit e9364f4

Browse files
committed
Updated readme.
1 parent 0eae13e commit e9364f4

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

README.rst

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,27 @@ You can find additional examples of usage in `Integration tests folder`_.
1414
Connecting your application to Quickbooks Online
1515
------------------------------------------------
1616

17+
QuickBooks Online supports both OAuth 1.0 and OAuth 2.0 (See `OAuth 1.0 vs. OAuth 2.0`_ for details).
1718
Theres two ways to connect your application to Quickbooks Online:
1819

1920
With quickbooks-cli
2021
-------------------
2122

23+
From the commandline call quickbooks-cli tool passing in either your consumer_key and consumer_secret (OAuth 1.0)
24+
or your client_id and client_secret (OAuth 2.0), plus the OAuth version number:
25+
2226
::
2327
quickbooks-cli [-h] [-s] [-p PORT] consumer_key consumer_secret oauth_version
2428

29+
2530
Manually OAuth version 1.0
2631
--------
2732

2833
1. Create the Authorization URL for your application:
2934

3035
::
3136

32-
from quickbooks import QuickBooks, Oauth1SessionManager
33-
34-
session_manager = Oauth1SessionManager(
35-
36-
)
37+
from quickbooks import Oauth1SessionManager
3738

3839
session_manager = Oauth1SessionManager(
3940
sandbox=True,
@@ -79,7 +80,7 @@ Manually OAuth version 2.0
7980

8081
::
8182

82-
from quickbooks import QuickBooks, Oauth2SessionManager
83+
from quickbooks import Oauth2SessionManager
8384

8485
session_manager = Oauth2SessionManager(
8586
sandbox=True,
@@ -446,3 +447,5 @@ on Python 2.
446447
:target: https://travis-ci.org/sidecars/python-quickbooks
447448
.. |Coverage Status| image:: https://coveralls.io/repos/sidecars/python-quickbooks/badge.svg?branch=master&service=github
448449
:target: https://coveralls.io/github/sidecars/python-quickbooks?branch=master
450+
451+
.. _OAuth 1.0 vs. OAuth 2.0: https://developer.intuit.com/docs/0100_quickbooks_online/0100_essentials/000500_authentication_and_authorization/0010_oauth_1.0a_vs_oauth_2.0_apps

0 commit comments

Comments
 (0)