getmeas: Get measures data

Description Usage Arguments Value Examples

View source: R/get.R

Description

Get measures data

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
getmeas(
  token,
  meastype,
  category,
  startdate = NULL,
  enddate = NULL,
  offset = NULL,
  lastupdate = NULL,
  tz = ""
)

Arguments

token

Your token obtained using withings_auth()

meastype

Which measure number should be obtained (see API)

category

Which category number should be obtained (see API)

startdate

Start date in character, date or POSIXct format

enddate

End date in character, date or POSIXct format

offset

Offset

lastupdate

Last update (see API)

tz

Time zone

Value

A list containing the status (status) and the data (body)

Examples

1
2
3
4
## Not run: 
getmeas(token, meastype = 1, category=1, "2019-01-01", "2019-10-18")

## End(Not run)

mathesong/rwithings documentation built on Oct. 6, 2021, 11:45 p.m.