getHeartrate method

Future<Response<List<Measurement>>> getHeartrate(
  1. String userId,
  2. DateTime startDate, {
  3. DateTime? endDate,
  4. String? provider,
})

Implementation

Future<Response<List<Measurement>>> getHeartrate(
  String userId,
  DateTime startDate, {
  DateTime? endDate,
  String? provider,
}) {
  return _timeseriesRequest(
    userId,
    _ResourceType.heartrate.toRequestQuery,
    startDate.toIso8601String(),
    endDate: endDate?.toIso8601String(),
    provider: provider,
  );
}