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

Description Usage Arguments Value Examples

Description

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

Usage

1
2
3
4
5
6
7
8
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## 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 June 30, 2021, 9:08 a.m.