02-10-2016 14:13
02-10-2016 14:13
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.
02-10-2016 14:34
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.
02-10-2016 14:34
@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).
Best Answer02-10-2016 14:34
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.
02-10-2016 14:34
@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).
Best Answer03-01-2016 09:44
03-01-2016 09:44
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.
Best Answer03-02-2016 12:54
Community Moderator Alumni are previous members of the Moderation Team, which ensures conversations are friendly, factual, and on-topic. Moderators are here to answer questions, escalate bugs, and make sure your voice is heard by the larger Fitbit team. Learn more
03-02-2016 12:54
@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?).
Best Answer