You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: smallbizhack-sydney/README.md
+7-24Lines changed: 7 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -46,13 +46,9 @@ Check the [API reference](https://developer.intuit.com/docs/api/accounting) for
46
46
47
47
2. Click on **my apps** and choose the **Just start coding** option. Select access to the **accounting** API and click **create app**
48
48
49
-
3. You should now be greeted by your QuickBooks app dashboard. Head over the **Keys** section and note down your `client Id` and `client secret`
49
+
3. You should now be greeted by your QuickBooks app dashboard. Head over the **Keys** section and note down your `client Id` and `client secret`
50
50
51
-

52
-
53
-
4. Create a [Sandbox company](https://developer.intuit.com/v2/ui#/sandbox). Select `Australia` in the drop down country list and click **add** to create a AU small business account with dummy data. Take a moment to login your sandbox account and play around the QuickBooks application to understand how it works.
4. Create a [Sandbox company](https://developer.intuit.com/v2/ui#/sandbox). Select `Australia` in the drop down country list and click **add** to create a AU small business account with dummy data. Take a moment to login your sandbox account and play around the QuickBooks application to understand how it works. 
56
52
57
53
# Setting up OAuth 2.0 access
58
54
@@ -62,9 +58,7 @@ There are available libraries to generate OAuth 2.0 tokens. For simplicty we'll
62
58
63
59
1. Head over to the [OAuth playground](https://developer.intuit.com/v2/ui#/playground). Select `Accounting` for the scope.
64
60
65
-
2. Click on **Get authorization code**. You will be presented with an authorisation dialogue. Select your sandbox company and click **connect**.
2. Click on **Get authorization code**. You will be presented with an authorisation dialogue. Select your sandbox company and click **connect**. 
68
62
69
63
3. Back in the OAuth playground, note down the `Realm Id`. This is a unique identifier for your Sandbox QuickBooks account which you will need later on. We sometimes refer to `it as *Company Id*
70
64
@@ -93,24 +87,17 @@ Here's a run down of the OAuth response from QuickBooks:
93
87
94
88
The Postman client is a great way to navigate the QuickBooks API before you get your hands deep into into your code. You can skip and directly implement the QuickBook API using the sample code provided for this Hackathon - see section [Implementing the API with our sample code](#implementing-the-api-with-our-sample-code)
95
89
96
-
**TIP**: There is a handy code generator in POSTMAN which will generate code snippets in most available laguages.
**TIP**: There is a handy code generator in POSTMAN which will generate code snippets in most available laguages. 
99
91
100
92
1. Download the Postman client [www.getpostman.com](https://www.getpostman.com/)
101
93
102
94
2. Go to our [QuickBooks postman collection page](https://developer.intuit.com/docs/00_quickbooks_online/2_build/20_explore_the_quickbooks_online_api/20_postman) and import the API collection into Postman by clicking **Run in Postman** (make sure to select the first option which uses OAuth 2.0 authorization)
103
95
104
-
3. Plugin your company Id in the postman environment variable.
3. Plugin your company Id in the postman environment variable. 
107
97
108
98
**TIP**: Change the `UserAgent` to something unique (your team name) so your requests can be tracked by Intuit Engineers to help debug your code if necessary
109
99
110
-
4. Now paste the Access Token from the OAuth playground
4. Now paste the Access Token from the OAuth playground 
114
101
115
102
5. For this example, we are doing a data query using the QuickBooks `query` endpoint against the `customer` entity. Click on the **customer** folder in the Postman explorer panel, and select the **Customer-ReadAll** request.
116
103
@@ -122,11 +109,7 @@ The Postman client is a great way to navigate the QuickBooks API before you get
122
109
123
110
```SELECT * FROM customer WHERE Balance > '0.0'```
124
111
125
-
126
-
127
-
6. Click **Send**. You should get back a list of customers who have unpaid balance.
6. Click **Send**. You should get back a list of customers who have unpaid balance. 
0 commit comments