Description Usage Arguments Details
get_lifetime_stats()
retrieves the user's activity statistics.
Activity statistics includes Lifetime and Best achievement values from the My Achievements tile on the website dashboard.
Response contains both statistics from the tracker device and total numbers including tracker data and manual activity log entries as seen on the Fitbit website dashboard.
1 | get_lifetime_stats(token, simplify = TRUE)
|
token |
An OAuth 2.0 token generated by oauth_token() |
simplify |
logical; should the result be simplified from a list to a data.frame if possible |
See https://dev.fitbit.com/reference/web-api/activity/#get-lifetime-stats for more details.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.