Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Reducing the number of Fitbit API calls

Hi,

I'm a Graduate Research Assistant, working on healthcare projects. We use Fitbit Charge 2 to track patient's activity and sleep. Around 50 Fitbits are used in this project. We access Fitbit API and store the data in our cloud storage for each Fitbit. Since there are 50 Fitbits, we have to make too many calls at a time. The email ID used for each Fitbit account is - abc+kit1@gmail.com, abc+kit2@gmail.com and so on while the actual email ID created with Gmail is abc@gmail.com. Google ignores everything after the + symbol and treats that as a single account. Also, this helps us from creating too many Gmail ID's and thus this convention is followed. Since there is only one actual Gmail account (but multiple Fitbit account), is there a way to make the call using one Gmail account and access all the Fitbit data? Or, is there any way to make a special request to Fitbit Technical support regarding this?

 

Thanks,

Revathy

Best Answer
0 Votes
1 REPLY 1

I dont see how this would currently be possible with the Fitbit API since even though Google see it as one account Fitbit seems X accounts, and each of the X accounts has to give you permission to access the API.

 

Have you looked at the subscriptions API? If you can impliment this then Fitbit in effect is telling you when a users updates their account and your there for only making an API call as and when required, and only for the information thats changed. Could reduce unessisary API calls

Ionic & Aria, Blaze (retired), Alta (retired), Surge (retired), Charge HR (retired), One (retired), Classic (retired) | Microsoft Surface | Google Pixel 2XL Android FitBit App
Best Answer
0 Votes