03-31-2016 11:58
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

03-31-2016 11:58
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Is it possible to view multiple accounts through the API without having to log into each account separately?

- Labels:
-
OAuth 1.0a
-
OAuth 2.0
-
Subscriptions API
03-31-2016 12:08
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



03-31-2016 12:08
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.

03-31-2016 13:42
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

03-31-2016 13:42
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

03-31-2016 14:07
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



03-31-2016 14:07
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.

03-31-2016 14:28
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

03-31-2016 14:28
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

03-31-2016 14:42
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



03-31-2016 14:42
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.

03-31-2016 14:56
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

03-31-2016 14:56
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

03-31-2016 15:14
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



03-31-2016 15:14
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.

