get_body_time_series: Get Body Time Series

Description Usage Arguments

View source: R/body_weight.R

Description

get_body_time_series() returns time series data in the specified range for a given resource.

Usage

1
2
get_body_time_series(token, resource_path, base_date = NULL,
  end_date = NULL, date = NULL, period = NULL)

Arguments

token

An OAuth 2.0 token generated by oauth_token()

resource_path

The resource path. Options are "bmi", "fat", or "weight".

base_date

The range start date, in the format yyyy-MM-dd or today.

end_date

The end date of the range.

date

The end date of the period specified in the format yyyy-MM-dd or today.

period

The range for which data will be returned. Options are 1d, 7d, 30d, 1w, 1m, 3m, 6m, 1y, or max.


teramonagi/fitbitr documentation built on Jan. 21, 2021, 8:35 p.m.