Forum Posts

How to get only specific activity types?

Hi Friends, I'm new to fitbit api development and was trying to figure out how to filter only 'Run' & 'Walk' activities from connected fitbit users for an event happening next month. Is there a unique activity type id or any other identifier using wh...

aromal by Jogger
  • 222 Views
  • 1 replies
  • 1 votes

Subscriber endpoint not being notified.

Hello and thanks for reading. We recently changed our subscriber endpoints for our production and test systems.  They are successfully validated but there has been zero notifications.  If I click on stats there are no notifications in the list.   I c...

Logevu by Jogger
  • 357 Views
  • 1 replies
  • 0 votes

Resolved! Website implementation noob

I am creating a simple website that will eventually show some data from my own personal Fitbit.  The main reason is that I've not been sleeping much (COVid19) and my girlfriend keeps asking me how my heart-rate/sleep is from my Ionic.  I had a domain...

Resolved! Language of login page

Hello, I wanted to know if it's possible to change the language (ex : en_US to fr_FR) of the login page and authorization page when a user logs. https://www.fitbit.com/login?redirect=%2Foauth2%2Fauthorize%3Fclient_id%3D{client_id}%26response_type%3D{...

jrigal by Jogger
  • 889 Views
  • 3 replies
  • 0 votes

Resolved! PHP Example for Fitbit Access and requesting Data

Dear all,i now experimented a whole day and less success in receiving data from fitbit with a PHP wrapper example.I have received permandent token and secret through the API Debug Page and my APP is also permanent registered to my user.But i just get...

awiltschek by Recovery Runner
  • 6934 Views
  • 10 replies
  • 1 votes

Resolved! problems trying to authorize my web app

I am developing a web application that will get the sleep hours of my users.I am trying to obtain user authorization to obtain the profile and sleep data of my personal account using my web application (Client ID: 22C5CR), until Sunday 14 everything ...

JavierAP by Recovery Runner
  • 1707 Views
  • 12 replies
  • 0 votes

Resolved! Invalid or expired refresh tokens

Under what circumstances does a refresh token become expired? Or a previously valid refresh token for the same application become invalidated? I encountered this issue recently where most of our refresh tokens had been made invalid and had to write a...

Pull UserID and Token

Hi, I am currently trying to create a hyperlink that will include my app clientID and client secret to pull back a logged in userID and token to be included in a WordPress contact form. Can anyone advise on the best way to achieve this? I have read t...

Default Water unit of measurement

Hi Community! Just a quick question - does anyone know what the default unit of measurement is for water? It looks like it's in mL. but want to be sure. I know there is a language header that can be sent with the request, but I don't think the previo...

I need a PHP demo

Hello friends and developers, I am just a designer and front-end developers, i know a bit about php. I completed my web-app 1 year agos, it is www.FitbitLeague.com and working very good until Fitbit changed to OAuth 2.0. It has a lot users and now th...

OAuth 2.0, Authentication Methods and mobile apps

Hello everyone, it's my first post here. Please be gentle. Had some time laid up due to ill health and been planning a mobile App to gamify/incentivize some Fitbit data (I do love my Surge). Been reading through the forums and the documentation, have...

AndyA by Jogger
  • 1399 Views
  • 1 replies
  • 0 votes

403 Forbidden for Profile ( insufficient scope )

Fitbit api returns 403(forbidden) for profile call. The all scopes are requested when I call the authorize(https://www.fitbit.com/oauth2/authorize) call. Below request returns 403.https://api.fitbit.com/1/user/-/profile.json?access_token=XXXXX Belows...

donets by Jogger
  • 2464 Views
  • 4 replies
  • 0 votes

Oauth2 getting started?

Hi all I am wanting to do a data presentation experiment with my fitbit data using possibly Angularjs or just plain old JS for a web app. Its a little personaly project of mine as I am trying to develop my coding skills. I have setup my application w...

Automatically get .json files with PHP

I am a Taiwanese university student.I want to automatically get the .json file regularly and upload to my database by using PHP. Now I can get the .json file by cmd like this:curl -O -X GET https://api.fitbit.com/1.2/user/-/sleep/date/2018-05-23.json...

HoYue by Jogger
  • 716 Views
  • 0 replies
  • 0 votes

Resolved! Daily summary distance inaccurate

Hi All,   I am kinda new to the fitbit api. I am trying to get the daily summary for distance, but I keep getting back data that doesn't match the users fitbit app. For instance, I get back a daily summary of 2.47 and the user reports thats wrong and...

Is Fitbit data Editable?

We have integrated the Fitbit API into our Portal, so now we can view the data like food log, activities log etc.. in our system. Is there is any way to make those data editable?

Resolved! How to register an app using localhost url

I am trying to register an app using the url of:https://localhost.For the callback function, I use:https://localhost/wordpress.Is it valid?When I use php api to invoke the oauth authentication, there is no http code in the response of the FitBitPHP->...

Resolved! make API call after authorization (oAuth 2) in php

I have done the authentication successfully. But now I don't know of how to make a API call. I use this php-class:$provider = new djchen\OAuth2\Client\Provider\Fitbit([ In an example I found this: $endpoint = $provider->getBaseApiUrl() . "user/-/a...

runnerJo by Recovery Runner
  • 4253 Views
  • 4 replies
  • 0 votes

FitBit api error max days

Hey all you fellow devs out there! I hope someone has come across this before, so hopefully there will be a definitive answer, because fitbit surely hasn't given one. I am getting this error message from time to time: "The number of days between time...

Database server

Hello, We want to use Fitbit integrated in a medical application in Europe. It is not allowed to integrate a device like Fitbit when the data is coming from US servers. This because of privacy and security reasons. Is there any way to use Fitbit in o...

daily activities summery private?

let me start by stating I am new to Oauth, and working with fitbits, so I've been working off of examples. I'm using the djchen OAuth2-fitbit wrapper and have a problem with the results coming back private. I'm using my own fitbit account for testing...

Activity summary for a period

Hi, I have the API [GET https://api.fitbit.com/1/user/[user-id]/activities/date/[date].json] which gives me daily activities summary. Buy I want to get the activity summary for a period or after a given date. This API only returns for the specific da...

College Course Exercise Log

Hello,I teach 210 students in multiple college Kinesiology classes. They have to submit an exercise log at the end of the semester. With the Web API is the following possible? 1. All students in each class (set as a group) or if groups not an option,...

Bigtime by Recovery Runner
  • 853 Views
  • 2 replies
  • 0 votes

i want get data fitbit no callback

hi, i  want get data fitbit no callback becase i use loop pull data from last update date to now date  and save data to database. but i have problem is after pull data it callback to url. it can't loop to now date. please help me.  thank you.  

Fitbit Data via API at PHP

Hello Everybody,I would like to get Fitbit Data via API at PHP.Therefor I need help.I have already registered my App so I got the Client ID and Client Secret.But now I don`t know how to make the Request for getting Data.I think I have to use the Fitb...

nowo by Base Runner
  • 1731 Views
  • 7 replies
  • 0 votes

500 Internal Server Error when creating a new alarm

Trying to set an alarm via:https://api.fitbit.com/1/user/-/devices/tracker/xxx/alarms.json I first tried sending json data using 'Content-Type application/json' header, but I kept getting validation errors that required fields were not passed. Then I...

bezruki by Jogger
  • 878 Views
  • 2 replies
  • 2 votes

Sporadic token refresh issues

I hope someone might be able to help point me in the right direction for sporadic issues we're having with refresh tokens in our app: GuzzleHttp\Exception\ClientException: Client error: `POST https://api.fitbit.com/oauth2/token` resulted in a `400 Ba...

papertank by Recovery Runner
  • 903 Views
  • 2 replies
  • 1 votes

Resolved! Single user data

Alright so I've looked around the API quite a bit at the different ways of authentication users to get access to their personal data, but I don't think this is exactly what I'm looking for.  In my specific case I am hoping to create a PHP application...