Forum Posts

fitbit authorization code and access token

Hey guys! I'm new to programming, and I'm building a website and trying to connect to Fitbit's API. I'm having difficulties getting  the access token, and understanding the full flow of authorization code => access token.. Can anyone help me pls? Tha...

Resolved! activities/heart/date API : no more dataset avaible

activities-heart-intraday doesnt seems to return anymore daily heartrate info.https://api.fitbit.com/1/user/-/activities/heart/date/2016-09-29/1d.jsonThere is no more the 'dataset' entry under activities-heart-intraday which is absent Is that a know ...

Lolo91 by Base Runner
  • 812 Views
  • 1 replies
  • 0 votes

What does 401 on a GET mean?

I have an app where I successfully authenticate the user, and then receive a 401 when trying to make a GET to: /1/user/-/foods/log/caloriesIn/date/today/max.json This appears to only happen intermittently. Do you know what this could mean? I don't se...

Intermittent auth success

Over the last few days I've been recieving oauth error messages when trying to authenticate with a users access token. I'm using a node.js app to connect. The message I recieve is as below (I've obfuscated the tokens). Invalid signature or token 'xxx...

SMS idle alerts

After looking in vain for a setting or third party app to give me reminders so that I hit my 250 steps during my goal hours, I've hacked together various pieces to send myself SMS alerts for free. Yes, I tried fitminder.io, but his implementation use...

Blair_Z by Jogger
  • 1037 Views
  • 0 replies
  • 0 votes

Blank Response when using Authorization

If I do a javascript xmlhttprequest with the Authorization: etc information attached I get a blank response. It is as if the request is not being picked up. However, if I remove the Authorization information and just send... https://api.fitbit.com/1/...

canhope by Jogger
  • 628 Views
  • 0 replies
  • 0 votes

Collect data from Fitbit API NodeJs PassportJs

I'm trying to make a web app using NodeJs to collect data from fitbit. I used passport-fitbit-oauth2 module to connect to fitbit api and log in. After authenticating, I can only store user's profile (name, id,birthday, token, refresh token). I have i...

drpor by Jogger
  • 1276 Views
  • 0 replies
  • 0 votes

Is it posible to track real time multiple devices

Hi everyone, I own a gym on Barcelona, and I was wondering to buy some fitbit devices to my customers. Later on, I want to develop an app (or maybe do a website connecting throught the API), that shows the calories burned on real time for my customer...

yourzed by Jogger
  • 836 Views
  • 2 replies
  • 0 votes

Subscriber log showing SSLPeerUnverifiedException

We tried to implement ssl for our subscriber notification's but we keep seeing the error "SSLPeerUnverifiedException" in the subscriber logs.  I'm not positive but I think it may be caused by an issue with SNI.  Is there any plans to add support for ...

Mark-Z by Jogger
  • 683 Views
  • 3 replies
  • 0 votes

InternalOAuthError

Hi,I'm developing an app to get fitbit information.And i have a problem. That is why i'm here. I want first step login on my website with local login or social networks. And then with fitbit.i show you the error:  GET /auth/fitbit/callback?code= - - ...

Resolved! Error retrieving access token

Hi Folks,I am coding using node js and have sccessfully retrieved the authorisation code and am attempting get the access token following the example in the documentation.POST https://api.fitbit.com/oauth2/token Authorization: Basic Y2xpZW50X2lkOmNsa...

Binway by Jogger
  • 1482 Views
  • 1 replies
  • 0 votes

average BPM API

Hello Team, which api i have to use to get the average BPM value from FITBIT portal?i am calling below url, but it's returning only heatRateZones values only not the average and resting heartrate details.https://api.fitbit.com/1/user/-/activities/hea...

Looking for more detailed elevation or floors data

Is there any way to get the "negative elevation" data for the minutes when I am going downhill or downstairs? My intraday data only provides positive numbers when I climb floors or go uphill. Seems like I would use less calories going downstairs than...

user_id missing from refresh token response

Hi, I have an OauthV2 adapter application. Its connection with Fitbit works great and token are refreshed automatically when expired. But during my testing I found one odd issue, If I refresh my tokens rapidally like within 1 min `user_id` is omitted...

An doubts about bracelet and API

I'm trying to make an integration of the bracelet , and I wonder if it is possible I get some items below: - min distance traveled in a day . - max distance traveled in a day. - Distance traveled Report Display per week. - Distance traveled Report Di...

Make a GET request to API

I am using node.js with express, and I am able to login via OAuth2, and recieve a token back. I am then logged in to my app with the proper auth credentials, and I would like to make a simple GET request to the API, but the request I make comes back ...

Callback Url in development for OAuth2.0

In my web apps, I'm using single page app using Angularand the callback url is my apps is http://domainname.com/#!/callback-fitbit when I tried to put in "Register an App" the callback URL, I'm getting this error Invalid callback url(s): http://domai...

Resolved! String index out of range error from api service

I'm receiving this error from the fitbit api web service when making a post request to retrieve the user's access token and refresh token. Is there something I'm doing wrong or something missing? I'm using a javascript based ajax api to make the call...

u84six by Recovery Runner
  • 1707 Views
  • 2 replies
  • 0 votes

Requesting Minute-level data (intraday time series)

Hi, I have requested the minute-level data back in October of 2015 however I haven't heard anything back regarding the case thus I sent a follow up email in December of 2015. I recently have sent another follow up email in January of 2016. Could you ...

OAuth 2.0 authentication in JavaScript examples?

Hi dev community,I'm just getting started learning how to write web applications in general and I'd really appreciate some guidance. To start things off I'd like to write a simple program with the Fitbit API in HTML and JavaScript in which the user p...

OAuth 2.0 Access Token Request problem, please help!

I've been struggling with authentication through the Fitbit API for a while now, and after countless hours looking through docs and tutorials I just can't seem to understand how to get OAuth2.0 to work for my needs. All I need to do is create a deskt...

DKeller by Jogger
  • 1014 Views
  • 1 replies
  • 0 votes

How to use AngularJS for Fitbit auth, and request data?

Hi, i am building an application using AngularJS (v. 1.4.7), and i want to acces to Firbit for request data of an user. I saw some examples to do that using PHP, but i want do it using only Angular. Is that possible, and somebody can tellme how do it...

AkumA by Jogger
  • 1226 Views
  • 1 replies
  • 0 votes

oAuth2 Clojure or ClojureScript?

Hello, has anyone worked with oAuth2 using Clojure or Clojurescript? The only source to this I found is this. But there is no nuance when it comes to the implementation. http://leonid.shevtsov.me/en/oauth2-is-easy Thanks in advance.

Eveko by Jogger
  • 832 Views
  • 2 replies
  • 1 votes

401 unauthorized Error

Hi, I was trying to get access token by following the API documentation. Still I am getting 401 Error. can you Please help me out on this ?  Here is my code :  var theUrl="https://api.fitbit.com/oauth2/token";var params = "client_id=****&grant_type=a...

Raki by Jogger
  • 1129 Views
  • 1 replies
  • 0 votes

I have a few questions

I'm currently working on a web-based solution and it seems I have most of the oauth2 token exchanging working. I'm testing with my own fitbit account and registered my test web app with my account. But there's still a few mysteries. I'm finding that ...

u84six by Recovery Runner
  • 750 Views
  • 7 replies
  • 0 votes

Redirecting back to original web page

I'm trying to integrate authorization into my web app. I've got the authorization process working. The user can authorize my web app to access their fitbit data. But after the callback, how can I redirect the user's browser back to my app? The browse...

u84six by Recovery Runner
  • 1988 Views
  • 1 replies
  • 0 votes

Resolved! Blank response in final step of OAuth1.0

Hi, I've just started playing around with the fitbit api today and have run into a problem - I'm using nodejs to setup an authentication request for my application. So far I've succesfully received a request token, I then have the user sent to the au...

ivan_g by Recovery Runner
  • 1239 Views
  • 8 replies
  • 0 votes

caloriesOut mismatch with dashboard value

Hi Fitbit team, My dashboard shows 1526 calories burned, but the Get Activities endpoint returns caloriesOut as 1525. Why is this 1 less than whats being shown in the portal? This does not happen all the time though, only for certain days! Please cla...

ManiS by Jogger
  • 806 Views
  • 0 replies
  • 0 votes

Resolved! CORS header for OAuth 2.0

Hi, I'm a big fan of the OAuth 2.0 beta and it's working great for me! The only issue I have is that the server doesn't respond with a CORS (Cross-Origin Resource Sharing) header which makes cross-domain calls impossible. Chrome and Firefox both thro...

dominikus by Recovery Runner
  • 1885 Views
  • 8 replies
  • 0 votes

Timeframe for Implicit Grant?

The wiki states Implicit Grant flow for OAuth 2.0 will be added "in the future". I am working on a front-end-only Javscript app involving the Fitbit api, and thus would need this flow for security of the client secret. Is there any estimate on the ti...