@@ -14,26 +14,27 @@ You can find additional examples of usage in `Integration tests folder`_.
14
14
Connecting your application to Quickbooks Online
15
15
------------------------------------------------
16
16
17
+ QuickBooks Online supports both OAuth 1.0 and OAuth 2.0 (See `OAuth 1.0 vs. OAuth 2.0 `_ for details).
17
18
Theres two ways to connect your application to Quickbooks Online:
18
19
19
20
With quickbooks-cli
20
21
-------------------
21
22
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
+
22
26
::
23
27
quickbooks-cli [-h] [-s] [-p PORT] consumer_key consumer_secret oauth_version
24
28
29
+
25
30
Manually OAuth version 1.0
26
31
--------
27
32
28
33
1. Create the Authorization URL for your application:
29
34
30
35
::
31
36
32
- from quickbooks import QuickBooks, Oauth1SessionManager
33
-
34
- session_manager = Oauth1SessionManager(
35
-
36
- )
37
+ from quickbooks import Oauth1SessionManager
37
38
38
39
session_manager = Oauth1SessionManager(
39
40
sandbox=True,
@@ -79,7 +80,7 @@ Manually OAuth version 2.0
79
80
80
81
::
81
82
82
- from quickbooks import QuickBooks, Oauth2SessionManager
83
+ from quickbooks import Oauth2SessionManager
83
84
84
85
session_manager = Oauth2SessionManager(
85
86
sandbox=True,
@@ -446,3 +447,5 @@ on Python 2.
446
447
:target: https://travis-ci.org/sidecars/python-quickbooks
447
448
.. |Coverage Status | image :: https://coveralls.io/repos/sidecars/python-quickbooks/badge.svg?branch=master&service=github
448
449
: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