def intraday_heartrate_time_series(start_date: nil, end_date: nil, detail_level: nil, start_time: nil, end_time: nil)
      intraday_series_guard(
        start_date: start_date,
        end_date: end_date,
        detail_level: detail_level,
        start_time: start_time,
        end_time: end_time
      )

      end_date = format_date(end_date) || '1d'

      url = ['user', user_id, 'activities/heart/date', format_date(start_date), end_date, detail_level].join('/')

      if start_time && end_time
        url = [url, 'time', format_time(start_time), format_time(end_time)].join('/')
      end

      get_call(url + '.json')
    end
def intraday_heartrate_time_series(start_date: nil, end_date: nil, detail_level: nil, start_time: nil, end_time: nil)
      intraday_series_guard(
        start_date: start_date,
        end_date: end_date,
        detail_level: detail_level,
        start_time: start_time,
        end_time: end_time
      )

      end_date = format_date(end_date) || '1d'

      url = ['user', user_id, 'activities/heart/date', format_date(start_date), end_date, detail_level].join('/')

      if start_time && end_time
        url = [url, 'time', format_time(start_time), format_time(end_time)].join('/')
      end

      get_call(url + '.json')
    end
retrieve intraday series for heartrate