Description Usage Arguments Details Value Examples
This is the main building block of this package. It is a wrapper for the GET
function.
1 | fitbit_GET(path, token, ...)
|
path |
Character scalar specifying the requested address from https://api.fitbit.com/. |
token |
Fitbit API token generated with |
... |
Additional arguments passed to |
This function has one side effect: if updates the "rate_limit" attribute in the token according to the returned request header.
Response object of class "response", as returned by the GET
function. Use fitbit_parse
to get the body of the output.
1 2 3 4 5 | ## Not run:
resp <- fitbit_GET("1/user/-/sleep/date/2015-12-12.json", token = fitbit_token )
ret <- fitbit_parse(resp)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.