01-28-2021 21:43
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

01-28-2021 21:43
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
My PHP code using cURL is working, however, some of my users don't get their data updated when it should. My script runs via crontab every night to save steps and activity to my MYSQL database. Out of the 1000 users, most get updated every night, but sometimes, some don't.
I can manually run the script as well to update a specific user. Once in a while, it may take running the script 5 times before an update will actually occur.
Is that a common issue with the API? I can't figure this one out!!
01-29-2021 08:43
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



01-29-2021 08:43
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi @Bigtime
Are the users seeing their data in their Fitbit account, but not through your application? If the data has been sync'd to our servers, you should receive it immediately. I have seen situations where it might take one or two device syncs to get all of the data from the Fitbit device to the Fitbit mobile application. This depends on how much data needs to be transferred to Fitbit.
Gordon
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

01-30-2021 15:51
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

01-30-2021 15:51
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hello,
Yes, users see the data in their Fitbit app, not positive about it being in their account. But it is not always being passed to my application.
It sounds like there may be an issue with my site. I just wanted to rule out any type of issue on the Fitbit end.
Thank you.
Tim

02-02-2021 11:52
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



02-02-2021 11:52
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi @Bigtime
I'm not aware of any problems currently with the site. If the data appears in the mobile app, then the data should be available to download through the Web APIs. I would verify the user id you use to download the data is the same for the Fitbit user's account, and check if you're getting any errors.
Gordon
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

