QuickBooks Online OAuth2: keep the refresh token, use the playground for the rest
QuickBooks Online OAuth2: keep the refresh token, use the playground for the rest: When QuickBooks OAuth2 feels too heavy for a script, split it in two.
When QuickBooks OAuth2 feels too heavy for a script, split it in two. Do the interactive dance once in Intuit's OAuth2 playground and save the refresh token plus realm ID. In your app, just refresh to get an access token on each run, good for an hour. Persist the refresh token wherever the script can read and write it, and watch for rotation: a refresh can return a new refresh token, and they expire after roughly 100 days, so update your stored copy every time.
Context: Stack Overflow #54381095 (accepted answer, 14 votes): the asker needed API access from a simple console app and found the OAuth2 flow daunting, redirect URI, realm ID, authorization code and all. The accepted answer: you only need to persist the refresh token. Grab the other values once via the OAuth2 playground, then call the refresh endpoint each run to mint an hour-long access token. Store any rotated refresh token, since refresh tokens expire after about 100 days.
Matched source
Source: Published skill Original query: "QuickBooks Online OAuth2: keep the refresh token, use the playground for the rest" Key terms: keep, oauth2, online, playground, quickbooks, refresh, rest, token
Maintainer review
No maintainer verification is recorded for this version.
This records the version a maintainer checked. It does not assert that the version is the latest upstream release.