05-23-2016 17:28
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

05-23-2016 17:28
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Could someone post a very basic Fitbit iOS app (preferably in Swift) for me to look at?
For me, sample code has always been the best way to learn (and I think others will benefit as well.)
Ultimately, I'd like to use Intraday data, so I'm going to have to ask permission, but I need to have something basic to generate a client ID.
Thanks to anyone who will help me out.
05-24-2016 08:44
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

05-24-2016 08:44
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I'd also be really interested in seeing a sample application. I'm totally new to developing, and am trying to see how all the peices fit together.

05-24-2016 15:09
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

05-24-2016 15:09
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I hope they listen to us. I've done some iOS development before, but all of this OAuth 2.0 stuff is knocking me down before I get out of the gate!
I still haven't found a satisfactory explanation about how to make a Redirect URI.
I was excited about using the data, but now I'm getting discouraged that I'll ever get to see the data. That part should have been trivially easy!

05-26-2016 11:55
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



05-26-2016 11:55
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
@macFanDave @sambradley26 This forum is specifically for using Fitbit's Web API, but you might find what you're looking for in this thread here.

05-26-2016 12:33
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

05-26-2016 12:33
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Ahh yes, it says fitbit is one of the exaples in the OAuth for Swift download which I already have. I just didn't look hard enough. Thank you.
Dave let me know how you get on, I've got some exams in the coming weeks so I'm putting my project on hold until the summer.

05-27-2016 13:12
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

05-27-2016 13:12
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Thanks for your reply, AndrewFitbit.
By bits and pieces, I am beginning to figure out of how I can get my Fitbit to talk with my iPhone. The StackOverflow article was particularly good. I might get it to work, but I don't think it should have been this hard. Luckily, I just finished the Big Nerd Ranch book on iOS programming, so I feel I can handle certain tasks.
Would it kill you to distribute boilerplate code to make the authentication easy? If you wrote a simple iOS app with illuminating comments, the rest of us could do our special work on the data and report some result.
David

05-28-2016 11:43
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



05-28-2016 11:43
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
@macFanDave I wish I could, but I don't know Objective-C or Swift. I'm trying to learn though.

05-28-2016 14:23
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

05-28-2016 14:23
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
@AndrewFitbit wrote:@macFanDave I wish I could, but I don't know Objective-C or Swift. I'm trying to learn though.
Thank you, Andrew, I appreciate your candor, but I believe you are surrounded by people who are quite good at Swift or Objective-C. Maybe you can refer my request to one of them?
I've looked at OAuthSwift and I think it violates the rules you state in the Authentication page of the API. First, it asks you to hard code your client_secret and second, it uses WebKit instead of SFSafariViewController.
What are the appropriate steps to take to authenticate a Personal app?
I think what I want is simple: all I want is a big data dump from my Fitbit Charge HR to my iPhone app. I would like to look at my heartrate every second and also extract the average resting heartrate (I believe that would be in the Profile section, or is it in Heart Rate?)
The data transfer is strictly from the Fitbit Charge HR to my phone. Would this affect the choices in authentication? Once I have this data, I want to see if I can analyze it and extract some useful insights from it. For most, these insights could be intriguing, but I have a friend with a heart condition, and I think this analysis could be life-saving for her.
Thank you. Please help.
