The GPS-TCX data as a formated data.table
GPS_TCX_data(
log_id,
user_id,
token,
time_zone = "Europe/Athens",
verbose = FALSE
)
the returned log-id of the 'extract_LOG_ID()' function
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'
a character string specifying the secret token that a user receives when registers a new application in https://dev.fitbit.com/apps
a character string specifying the time zone parameter ('tz') as is defined in the 'lubridate::ymd_hms()' function
a boolean. If TRUE then information will be printed out in the console
either NULL or an object of class data.table
if (FALSE) {
require(fitbitViz)
#............................
# first extract the log-id(s)
#............................
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)
str(log_id)
#...................................
# then return the gps-ctx data.table
#...................................
res_tcx = GPS_TCX_data(log_id = log_id,
user_id = USER_ID,
token = token,
time_zone = 'Europe/Athens',
verbose = TRUE)
str(res_tcx)
}