![]() ![]() ![]() ![]() Note also how the oauth_token_secret needs to somehow be maintained across http requests, as it needs to be passed in the second server-side http POST to the Access Token URL at. Note how the response from the http POST is parsed and the browser is redirected to the App Center URL at with the oauth_token passed as a URL parameter. The Intuit Developer Javascript code calls back into the node application, which needs to invoke the OAuth Request Token URL at via a server-side http POST method. Clicking on this kicks off the OAuth exchange. Runningīrowse to and you will see a page containing only the Intuit Developer Javascript-rendered button. Pay attention to which APIs (Payments, QuickBooks) you select during the application creation process, you will have to update example/views/intuit.ejs if you did not select both. You will need to create an Intuit Developer account at and add your app's OAuth Consumer Key and Secret to app.js. Setupįirst navigate to the example directory and install the required dependencies from NPM npm install The example directory contains a barebones Express application that demonstrates the OAuth workflow. Var QuickBooks = require ( 'node-quickbooks' ) var qbo = new QuickBooks ( consumerKey, consumerSecret, oauthToken, false, // no token secret for oAuth 2.0 realmId, false, // use the sandbox? true, // enable debugging? null, // set minorversion, or null for the latest version '2.0', //oAuth version refreshToken ) qbo. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |