fetch Health Data By Date
Fetches historical health data for a specific date.
This function retrieves a summary of health metrics such as steps, calories, distance, and active minutes for the given day, month, and year.
Return
A HealthData object containing the aggregated health information for the specified date.
Parameters
The day of the month (1-31).
The month of the year (1-12, where 1 is January).
The year (e.g., 2023).
Throws
if an error occurs while fetching the data, such as permission issues or if no data is available for the specified date.
Fetches historical health data for a specific date.
This function retrieves a summary of health metrics such as steps, calories, distance, and active minutes for the given day, month, and year.
Return
A HealthData object containing the aggregated health information for the specified date.
Parameters
The day of the month (1-31).
The month of the year (1-12, where 1 is January).
The year (e.g., 2023).
Throws
if an error occurs while fetching the data, such as permission issues or if no data is available for the specified date.
Fetches historical health data for a specific date.
This function retrieves a summary of health metrics such as steps, calories, distance, and active minutes for the given day, month, and year.
Return
A HealthData object containing the aggregated health information for the specified date.
Parameters
The day of the month (1-31).
The month of the year (1-12, where 1 is January).
The year (e.g., 2023).
Throws
if an error occurs while fetching the data, such as permission issues or if no data is available for the specified date.