Skip to content

Reconnect API not supported, renewing tokens is not possible #11

@jneves

Description

@jneves

Hi, just a quick note that the reconnect API at https://developer.intuit.com/docs/0025_quickbooksapi/0053_auth_auth/oauth_management_api is not supported on the library. Each access token has a lifetime of 180 days and within 30 days before expiration you need to access this API with the old access token to renew it.

I'll probably be implementing this. Quick example of access to the API (copy & pasted from a project):

client = QuickBooks(consumer_key=settings.QB_OAUTH_ID,consumer_secret=settings.QB_OAUTH_SECRET,callback_url=settings.QB_OAUTH_URL,access_token=account.access_token,access_token_secret=account.access_token_secret,company_id=account.realm_id)
session = client.create_session()
r = session.get('https://appcenter.intuit.com/api/v1/connection/reconnect')

Currently I need to record when the access token is created, so that I now if it's in the 30-day renew window and to parse the XML response from this API in order to extract the new access token and secret.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions