Fitbit API
May 24, 2012 9:22 AM Subscribe
I just bought a Fitbit and I want to play around with their API.
PHP is my language of choice, which they support. It seems that the first step is to install the PECL Oauth extension. My PHP site is hosted by GoDaddy. I'm confused about if this extension is already installed and, if not, how to install it. Any help would be much appreciated.
Also, note that on the page I linked to, Fitbit says, "You can also consider using Fitbit PHP Client library contributed by third party developers, which will significantly reduce complexity of your development efforts." I can't seem to find any third-party libraries, but I'd much prefer going that route, if possible. A point in the right direction there would be helpful as well.
PHP is my language of choice, which they support. It seems that the first step is to install the PECL Oauth extension. My PHP site is hosted by GoDaddy. I'm confused about if this extension is already installed and, if not, how to install it. Any help would be much appreciated.
Also, note that on the page I linked to, Fitbit says, "You can also consider using Fitbit PHP Client library contributed by third party developers, which will significantly reduce complexity of your development efforts." I can't seem to find any third-party libraries, but I'd much prefer going that route, if possible. A point in the right direction there would be helpful as well.
FitbitPHP on GitHub appears to be the client library they're referring to. (As found on their API Client Libraries wiki page.)
posted by Diggins at 9:35 AM on May 24, 2012
posted by Diggins at 9:35 AM on May 24, 2012
Response by poster: Awesome. It looks like that client library still requires oAuth though: http://screencast.com/t/tgcmpWz2ELm
Meaning, I still need somehow get Oauth installed.
posted by JPowers at 10:15 AM on May 24, 2012
Meaning, I still need somehow get Oauth installed.
posted by JPowers at 10:15 AM on May 24, 2012
You'll probably need a dedicated server if you want to stay with GoDaddy: http://support.godaddy.com/groups/web-hosting/forum/topic/php-oauth-packages/
posted by Nonsteroidal Anti-Inflammatory Drug at 11:40 AM on May 24, 2012
posted by Nonsteroidal Anti-Inflammatory Drug at 11:40 AM on May 24, 2012
Response by poster: Oh man. Thanks stinks! I guess I could just run PHP off of my Mac.
posted by JPowers at 11:45 AM on May 24, 2012
posted by JPowers at 11:45 AM on May 24, 2012
Best answer: you could run it off a free EC2 instance...
posted by namewithoutwords at 12:18 PM on May 24, 2012
posted by namewithoutwords at 12:18 PM on May 24, 2012
Fitbit has an API?! Awesome, thanks!
posted by Johnny Wallflower at 2:17 PM on May 24, 2012
posted by Johnny Wallflower at 2:17 PM on May 24, 2012
Response by poster: Oddly enough, I went with namewithoutwords' advice. I created a free EC2 instance, installed PHP, installed PECL Oauth extension, and now I'm off an running. EC2 is pretty amazing.
Thanks for the help everyone.
posted by JPowers at 12:32 AM on May 25, 2012
Thanks for the help everyone.
posted by JPowers at 12:32 AM on May 25, 2012
« Older Take me far away from home! Well actually, not too... | Your experiences with the Flashpoint battery grip? Newer »
This thread is closed to new comments.
posted by dfriedman at 9:32 AM on May 24, 2012