02-10-2016 14:13
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

SunsetRunner
02-10-2016 14:13
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I am a college student and I am trying to create a mobile app on Android Studio that can access a user's Fitbit data. Using the API, do I have to use a Web Server to act as a middle man to grab the data or is there some way that I can go from mobile app directly to fitbit data? Also when registering for an API, what options do I select? Browser or Desktop? Personal or client? Like I said, I am using Android Studio to create this app for only mobile if I can. Thanks.
Answered! Go to the Best Answer.
Accepted Solutions
02-10-2016 14:34
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



02-10-2016 14:34
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
@SunsetRunner wrote:
I am a college student and I am trying to create a mobile app on Android Studio that can access a user's Fitbit data. Using the API, do I have to use a Web Server to act as a middle man to grab the data or is there some way that I can go from mobile app directly to fitbit data?
With OAuth 2.0, you do not need a web server application. You can use the Fitbit Web API directly. Use the Implicit Grant flow to obtain user consent.
@SunsetRunner wrote:
Also when registering for an API, what options do I select? Browser or Desktop? Personal or client?
For OAuth 1.0a type, you can choose 'Browser'. OAuth 1.0a is going away in April, so it doesn't really matter.
For OAuth 2.0 type, you'd choose 'client' because you are developing an app that runs clientside (i.e. on a device you don't control).

02-10-2016 14:34
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



02-10-2016 14:34
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
@SunsetRunner wrote:
I am a college student and I am trying to create a mobile app on Android Studio that can access a user's Fitbit data. Using the API, do I have to use a Web Server to act as a middle man to grab the data or is there some way that I can go from mobile app directly to fitbit data?
With OAuth 2.0, you do not need a web server application. You can use the Fitbit Web API directly. Use the Implicit Grant flow to obtain user consent.
@SunsetRunner wrote:
Also when registering for an API, what options do I select? Browser or Desktop? Personal or client?
For OAuth 1.0a type, you can choose 'Browser'. OAuth 1.0a is going away in April, so it doesn't really matter.
For OAuth 2.0 type, you'd choose 'client' because you are developing an app that runs clientside (i.e. on a device you don't control).

03-01-2016 09:44
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

SunsetRunner
03-01-2016 09:44
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Is there an example that I can follow that goes from an Android Studio app to Fitbit.com and back returning the tokens as necessary for OAuth2.0. I am unsure how to start the process of OAuth2.0. I have read the OAuth2.0 document, but a working example would be a lot easier to learn from and implement.

03-02-2016 12:54
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



03-02-2016 12:54
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
@SunsetRunner You would need to create the code yourself, we don't have example code. My only suggestion would be to review the documentation again and maybe google Android Studio OAuth 2.0 (perhaps this link will help?).

