Domanda

I am trying to get some information from quickbook online. I am completely depending on the client side to get the data. I am using oauth1.0a.js library to create signature, tokens etc. I am confused with the starting point.

As the first step I create a new object with the following information

var oauth = new OAuth({
consumer: {
    public: '********',
    secret: '********'
},
signature_method: 'HMAC-SHA1'
});

Now I have to obtain the following information

var oauthdata=oauth.authorize(request,'token');
var sign=oauth.getSignature(request,"token",oauthdata);

I am confused over the token aspect. I know only about one token that is app_token which is generated while an app is created from the https://developer.intuit.com. But I need an auth_token to get the data successfully. How to generate this token?

The oauth documentation says that The Consumer obtains an unauthorized Request Token. The User authorizes the Request Token. The Consumer exchanges the Request Token for an Access Token.

È stato utile?

Soluzione

Did you read Intuit's OAuth documentation?

Authentication with Intuit's platform is via OAuth. The short explanation is:

  • You make a HTTPS request to Intuit's servers to get request tokens
  • You forward your end-user to Intuit's website to log in
  • Intuit sends the user back to you with an oauth_verifier token
  • You make another HTTPS request to Intuit's servers to exchange the verifier for access tokens
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top