Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Using fitbit api in xcode with swift

Hi guys,

 

I am trying to figure out how to use the api of fitbit with xcode in swift. Unfortunately I can't figure out what steps I have to do to achieve this. The first thing is the registration of the app. They are asking for a callback url, I've never used a callback url before with any api. (weather api, pokemon api etc..)

 

Is there anyone who can make a step by step help/tutorial for me implicit for IOS in xcode with swift?

I would really appriacte this because I stuck now.. 😞

 

Anyway, for any question or for more information don't hesitate to contact me.

 

Kind Regards,
Kevin.

Best Answer
11 REPLIES 11

Try this:

https://github.com/OAuthSwift/OAuthSwift

Fitbit is one of the examples in the sample app. 

Best Answer
0 Votes

Hi,

 

Thank you but this is objective c and not in swift mate.

I hope anyone else can help me out with setting up the fitbit api for xcode in the language swift!

 

Kind Regards,

Best Answer
0 Votes

kevinvugts wrote: 

Thank you but this is objective c and not in swift mate.

I hope anyone else can help me out with setting up the fitbit api for xcode in the language swift!

 


@kevinvugts It is in Swift.

 

Go here and cmd+f "Fitbit2":

{removed link - no longer exists}

 

Also might want to check this out:

http://stackoverflow.com/questions/17540357/call-back-url-for-ios-app

 

Our API docs is a good resource as well. Ultimately, this requires a bit of research on your end.

Andrew | Community Moderator, Fitbit

What motivates you?

Best Answer
0 Votes

THe Link is broken and I need the name help as kevinvugts

Best Answer
0 Votes

@SunsetRunner Looks like it was removed. You can still check out the project:

 

https://github.com/OAuthSwift/OAuthSwift

Andrew | Community Moderator, Fitbit

What motivates you?

Best Answer
0 Votes

@AndrewFitbit wrote:

@SunsetRunner Looks like it was removed. You can still check out the project:

 

https://github.com/OAuthSwift/OAuthSwift


THX Smiley Happy

Best Answer
0 Votes

Hi, I wrote one for myself based on several Alamofire tutorial. You can check it out here: https://github.com/caroline6927/QuickStartApp/blob/master/QuickStartApp/FitbitAPiHelper.swift

Best Answer

@caroline6927 Thanks for sharing! 🙂

Andrew | Community Moderator, Fitbit

What motivates you?

Best Answer
0 Votes

hi,

I am having the same issue....if you know the solution can u tell me please.

thanks & regards

Best Answer
0 Votes

Hi @bunnyyy.  Do you have questions about the callback URL or the sample code?

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer
0 Votes
Hello sir,
There was whole bunch of stuff...I didn't know where should I start what
should I do..I got confused
Thanks & Regards
Best Answer
0 Votes