Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to renew access token secret for Intuit QuickBooks integration with .net application?

I am using code in following link to Renew access token for Intuit QuickBooks integration.

https://gist.github.com/IntuitDeveloperRelations/7259345

but, I am unable to test this code as intuit renew its access token only after 150 days from token creation date and I've created token only few days back. So I don't know the output. Right now, it is generating xml response with error message.

Now this method is returning me a single string which seems to be the Access Token. Do I also need to renew Access Token Secret ? If yes, then how to generate it ? Or the output contains secret as well ?

Actually, Can you give me the output for this method?

like image 444
user3775824 Avatar asked Oct 01 '22 09:10

user3775824


1 Answers

A successful response looks like this:

<ReconnectResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://platform.intuit.com/api/v1">    
    <ErrorMessage/>    
    <ErrorCode>0</ErrorCode>    
    <ServerTime>2012-01-04T19:21:21.0782072Z</ServerTime>    
    <OAuthToken>qye2eIdQ5H5yMyrlJflUWh712xfFXjyNnW1MfbC0rz04TfCP</OAuthToken>    
    <OAuthTokenSecret>cyDeUNQTkFzoR0KkDn7viN6uLQxWTobeEUKW7I79</OAuthTokenSecret>
</ReconnectResponse>

Refer to Intuit's documentation.

Notice that you will get back both a new token and a new token secret which you should store.

Remember that you can use Intuit's OAuth Playground to generate shorter lived tokens to test with.

like image 102
Keith Palmer Jr. Avatar answered Oct 05 '22 06:10

Keith Palmer Jr.