extract_LOG_ID: Extract the log-id (it's possible that I receive more than...

extract_LOG_IDR Documentation

Extract the log-id (it's possible that I receive more than one id)

Description

Extract the log-id (it's possible that I receive more than one id)

Usage

extract_LOG_ID(
  user_id,
  token,
  after_Date = "2021-03-13",
  limit = 10,
  sort = "asc",
  verbose = FALSE
)

Arguments

user_id

a character string specifying the encoded ID of the user. For instance '99xxxx' of the following URL 'https://www.fitbit.com/user/99xxxx' of the user's account corresponds to the 'user_id'

token

a character string specifying the secret token that a user receives when registers a new application in https://dev.fitbit.com/apps

after_Date

a character string specifying the Date after which the log-ids will be returned. For instance, the date '2021-12-31' where the input order is 'year-month-day'

limit

an integer specifying the total of log-id's to return. The default value is 10

sort

a character string specifying the order ('asc', 'desc') based on which the output log-id's should be sorted

verbose

a boolean. If TRUE then information will be printed out in the console

Value

an integer specifying the log ID

Examples


## Not run: 

require(fitbitViz)

USER_ID = '99xxxx'
token = 'my_long_web_api_token'

log_id = extract_LOG_ID(user_id = USER_ID,
                        token = token,
                        after_Date = '2021-03-13',
                        limit = 10,
                        sort = 'asc',
                        verbose = TRUE)
log_id


## End(Not run)

fitbitViz documentation built on May 29, 2024, 5:51 a.m.