Exceptions¶
-
exception
fitbit_api.exceptions.
FitbitException
¶ All other exceptions subclass this FitbitException.
-
exception
fitbit_api.exceptions.
InsufficientScope
¶ Thrown when your client was not initialized with the necessary scopes to make this request
-
exception
fitbit_api.exceptions.
RateLimitException
(retry_after, *args, **kwargs)¶ Thrown when you’ve exceeded the limit
Fitbit only allows 150 requests per hour per client.
try: client.get_foods_goal() except RateLimitException as e: print('Seconds until we can try again:' e.retry_after)