node-quickbooks
node-quickbooks copied to clipboard
oauth_problem
i am facing an issue while accessing requestToken method.I am passing my clientid and clientSecret to the consumerId and consumerSecret keys in oauth and also have checked my callback url but i am still getting following error. { oauth_problem: 'parameter_rejected', oauth_parameters_rejected: 'oauth_consumer_key' }
@vikaschaubey57 from what i can gather the library uses Oauth v1 by default which was disabled. See the example for oauth2 here: https://github.com/mcohen01/node-quickbooks/tree/master/oauth2example
And modify the constructor call appropriately as done in that example.
Is there any reason that this library isn't modified to utilize Oauth v2 by default?
Backward compatibility. Existing Oauth v1 apps have until December 17, 2019 to migrate to Oauth v2 (https://developer.intuit.com/hub/blog/2018/12/20/oauth-1-0-deprecation-migrate-oauth-2-0-december-17-2019).
The NPM documentation really should be updated to include this. Nowhere does it say that it's written with Oauth v1 in mind and nowhere does it show how to initialize it using v2.
Is there any way to use this module with AngularJS. I get this to work on its own using the oAuth2.0 example, however I still don't know how can I use this in a Angularjs/Nodejs Application. Or point to some resources?
PR to help with the documentation for oAuth 2: https://github.com/mcohen01/node-quickbooks/pull/139