Description Usage Arguments Value Examples
This function displays the information about how many API requests are left and when the rate limit will be reset.
1 | rate_limit(token, show_message = TRUE)
|
token |
Fitbit API token generated with |
show_message |
Boolean scalar; Should the function print the message? |
List containing the information about the number of requests left returned invisibly.
1 2 3 4 5 6 7 | ## Not run:
resp <- fitbit_GET("1/user/-/sleep/date/2015-12-12.json", token = fitbit_token )
rate_limit(fitbit_token)
## Requests left:
## 120 / 150 (reset in 22 min, at 18:00:01)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.