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

Accidentally went over API limits, now token not authorised

ANSWERED

Hi,

 

I've connected to the fitbit API for my own personal data, mainly as a personal project so I can teach myself coding and to try and get better. 

 

It was previously working, but yesterday I accidentally breached the APi limits (put the API call in a for each :facepalm: ) and it stopped working - yesterday there was an error message about invalid token. 

 

I waited until today but it is still not working. is there a 24 hour re-set for limits? How do i get back up and running? 

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

Hi @Gordon-C

 

I have resolved now, it was my error (naming two functions the same, which meant that the authorisation wasn't working). 

 

Still learning! 

 

Thanks for your reply.

 

Kevin

View best answer in original post

Best Answer
2 REPLIES 2

Hi @Hektik909 

 

The API limit is 150 API calls per user per hour and it resets at the top of the hour.   It would help to have the entire token error message.   It's possible the access token has expired.   If so, you'll need to use the refresh token to obtain a new access token and refresh token.   

 

Gordon

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer
0 Votes

Hi @Gordon-C

 

I have resolved now, it was my error (naming two functions the same, which meant that the authorisation wasn't working). 

 

Still learning! 

 

Thanks for your reply.

 

Kevin

Best Answer