Forum Posts

Resolved! Callback URL when in development

I am currently developing a JAVA web application that uses Scribe OAuth.  I am successfully triggering the User Authorization step for the user in the web browser.  However, the callback URL I specified is not in production, so it does not return the...

Lkritchey by Recovery Runner
  • 12711 Views
  • 31 replies
  • 4 votes

OAuth connection from Postman and Mendix

As per the documentation Client Credentials (fitbit.com) grant_type should be client_credentials but i am getting the error stating -{    "errors": [        {            "errorType": "invalid_request",            "message": "Missing 'grant_type' para...

What kind of callback URL do I need?

Hi! I am a student and I am learning CS and want to use the FitBit API.   I am at the beginning of registering an application and am wondering what I should be writing in the "callback URL" and what it is for.  I see so many types of callback URL sch...

wqverly by Jogger
  • 1244 Views
  • 2 replies
  • 1 votes

Resolved! Subscriptions

a Fitbit device will sync to the user's Fitbit app every15 minutes as long as it is within range of the mobile device. Can it be cancelled?  

Unable to call Create Subscription API

https://dev.fitbit.com/build/reference/web-api/developer-guide/using-subscriptions/#Creating-a-SubscriptionThis document states that the URL to create a subscription for the user is as follows -> https://api.fitbit.com/1/user/-/apiSubscriptions/320.j...

Subscription function

Subscription function: If I have 100,000 fitbit users updating data at the same time, will 100,000 notifications be sent to my server at the same time?

Resolved! Fitbit 404 after after clicking Allow Button

I'm getting a 404 error when clicking the allow button. I'm having this problem only in my live server(https://www.gogch.com/app/). Its working fine in my local server(http://localhost:8080) and also a test server(https://testing.gogch.com/app/).This...

sarathn91 by Recovery Runner
  • 1551 Views
  • 7 replies
  • 2 votes

Missing parameters: access_token

We've recently started having issues when trying to get access token from code. It has been working fine for the past three years and we've not made any changes to our code. OAuthClientRequest request = OAuthClientRequest.tokenLocation(FITBIT_TOKEN_U...

device access

HiIs it possible to sync data directly from a Fitbit device ( Charge, Versa or Ionic) to an app if we develop an app using the FitBit SDK. Thank you for the help.

chrag by Base Runner
  • 735 Views
  • 1 replies
  • 0 votes

How to get data from many users

Hello:I have managed to integrate with fitbit and get my own data from a Java-based server. Now I require to obtain data from other people, who give me permission. When attempting to obtain such data, an error is generated, apparently because the cli...

403 Forbidden error

Hi All,I am trying to connect to FITBIT using OAUTH Provider 2.0 from a web application and i am doing a REST call.I am getting the 403 error and here are the error details:RAW MESSAGE: {"errors":[{"errorType":"insufficient_scope","message":"This app...

I need sample Fitbit application in Java

Hi,I am developing a java application, where we integrated fitbit. We followed steps mentioned in below samplehttps://github.com/apakulov/fitbit4jBut, it is erroring out with "Your local user ID in this application is: 1058897170Status: UNAUTHORIZED"...

Refresh token invalid

Hi-AllWe developed two smartphone applications linking step number data using Fitbit's Web API.So there is a issue, please tell me about two questions.*Background · We developed two smartphone applications linking step number data using Fitbit's Web ...

any changes or corrections on the server side

Hello all,Our Project developed an application using the web API.Using OKhttp and communicating with HTTP / 2 protocol, an error has occurred.Our application has not been modified, but it has been inaccessible for several days.Have there been any cha...

hiroko_a by Recovery Runner
  • 1516 Views
  • 10 replies
  • 0 votes

Invalidate Signature with retrofit

I am using retrofit api to make network calls on Android. I am getting invalid signature error{"errors":[{"errorType":"oauth","fieldName":"oauth_signature","message":"Invalid signature: VVhu8YSABOQy6ce/VsUYQ5fClOk="}],"success":false}.my signature an...

Server returned HTTP response code: 403

Hello! For my university thesis project, i'm doing a web application. The application downloads data of a small number of volunteer patients. I needed the intraday data and for this reason I contacted Fitbit for have the access to the intraday time s...

Invalid redirect uri parameter

I am trying to implement fitbit java client (https://github.com/Stasonis/fitbit-api-example-java)When I click on sign in it redirects to the  https://www.fitbit.com/oauth2/authorize?client_id=228Q4X&redirect_uri=http://localhost:8080/login&response_t...

Hard Coded Secret and Tokens in OAuth 2.0

Hi All I am not developing/maintaining an app, all I do is grab data from several fitbits whose credentials and data I am in charge of and store it in a local database. The way I did it in OAuth 1.a was that I had all the tokens and secrets hard code...

API Reauest limit

Dear Good Days Developers,     I am Jessica Lu , a senior students in Taiwan. Our lab is focus on big data and our team is working with division of rehabilitation medicine to monitor patient’s situation ( about 30 patient). We are using Fitbit produc...

alznn by Jogger
  • 923 Views
  • 2 replies
  • 2 votes

How to get fitbit Product list for my App ?

Hello All, I implementing some service related to fitbit tracker. One of those service Client Side need to call one service which returns list of fitbit products as JSON? Are we have any kind of this services in fitbit APIs

Resolved! Variable "FitBit_worn"

Hi guys,I really need to know how long the FitBit was worn during the day, cause I want to calculate means over different period of times.Is there a variable that tells me when the band is worn? It would also be okay to have a daily sum (like percent...

OAuth 2.0 "Client Credentials Grant" planned?

Hi, Are there any plans to also implement the "Client Credentials Grant" for OAuth 2.0? This grant is suitable for machine-to-machine authentication.A usecase could be that data from FitBit (e.g. together with data form other devices) would be retrie...

etmmiko by Jogger
  • 982 Views
  • 2 replies
  • 3 votes

Approaches to Logging Food

I try use POST https://api.fitbit.com/1/user/[user-id]/foods/log.jsonand I get {"errors":[{"errorType":"validation","fieldName":"date","message":"Date is required"}]} I am sure the token work and successful set header for the request. Here is the cod...

Redirect Implicit Grant Flow

Hi, I'm developing a web application (in Java) that allows the user retrive information from his actitivities stored in fitbit.To do this I'm using the Implicit Grant Flow to obtain the access token, but I don't know how to retrieve this from the red...

Quirrol by Jogger
  • 720 Views
  • 0 replies
  • 0 votes

Resolved! Real-Time Heart Rate Streaming

Hello everyone, my name is Michael, nice to meet you all! I am currently working on a research project and am considering to use the FitBit Surge for it as I would like to gather heart rate data in real-time process it on a PC or Smartphone and retur...

Can i subscribe to a list of user's data

I am trying to integrate the FitBit API with my streaming platform to pull the data not for one user but for all users in my group everytime the data changes on the FitBit server? Is it possible to pull the data for a group of users in one request? P...

vj0508 by Jogger
  • 804 Views
  • 2 replies
  • 0 votes

detecting refresh token expiration

I'm referencing this thread:https://community.fitbit.com/t5/Web-API-Development/polling-fitbit-api/m-p/1886197#U1886197 How does one detect when a refresh token has expired? There is such a notion for access token. This is concerning the rest of this...

mistyper by Recovery Runner
  • 1049 Views
  • 0 replies
  • 0 votes

Resolved! How to get specific scope data of user

I want to retrieve only data of specific scope say I want only weight, sleep and heart rate in single request instead of calling three APIs. Is there any solution for this, community please help me to resolve this issue, I dont want to call (100users...