03-31-2016 11:58
03-31-2016 11:58
Is it possible to view multiple accounts through the API without having to log into each account separately?
Best Answer03-31-2016 12:08
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
03-31-2016 12:08
No, you need to obtain consent from each person your app would like to access data on behalf of. Because each authorization is subject to different scope permission, your app will need to request data for each person in a separate request. Individual requests also enable more efficient caching of data through the use of ETags.
Best Answer03-31-2016 13:42
03-31-2016 13:42
Best Answer03-31-2016 14:07
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
03-31-2016 14:07
No, you will need to sign in to each account to authorize your app.
In general, this is a not a recommended security practice. People should authorize third-party apps on their own.
Best Answer03-31-2016 14:28
03-31-2016 14:28
Best Answer03-31-2016 14:42
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
03-31-2016 14:42
Not sure I understand your question. You'd only have to sign into each user's account to authorize your app once.
The end result of the OAuth 2.0 authorization process is an access token. Your app will have a unique access token for each user who authorizes. Your app will use the access token to make API requests.
If you have a web server app, you can use the Authorization Code Flow, the access token will only work for 1 hour, but can be refreshed indefinitely by using the refresh token flow.
If you have a native or browser app, you can use the Implicit Grant Flow, the access token can last up to a year, but then your app will have to ask the user to re-authorize your app when it expires.
Best Answer03-31-2016 14:56
03-31-2016 14:56
Best Answer03-31-2016 15:14
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
03-31-2016 15:14
For each person, your app would have an access token. So if you have 20 users, you'd have 20 access tokens. If you wanted to get each person's daily step count (or whatever data you want), your app has to make 20 API requests—1 request for each user using the specific user's access token.
Best Answer