...
workers | GET /v3/studies/:studyIdentifier/oathoauth/:vendorId/:healthCode |
---|---|
if access token exists and is not expired | return access token |
if access token exists and is expired | refresh token and return refreshed token |
401 | anything else (should only be an error from Fitbit) |
200 | {"vendorId":"vendorId","accessToken":"<accessToken>","expiresOn":"<ISO 8601 timestamp>"} |
...