cyberjunky / python-garminconnect

Python 3 API wrapper for Garmin Connect to get activity statistics
MIT License
966 stars 151 forks source link

Add daily step data summary endpoint for date range #114

Closed dpfrakes closed 1 year ago

dpfrakes commented 1 year ago
-------------------- api.get_daily_steps('2023-01-13, 2023-01-20') --------------------
[
    {
        "calendarDate": "2023-01-13",
        "totalSteps": ****,
        "totalDistance": ****,
        "stepGoal": ****
    },
    {
        "calendarDate": "2023-01-14",
        "totalSteps": ****,
        "totalDistance": ****,
        "stepGoal": ****
    },
    {
        "calendarDate": "2023-01-15",
        "totalSteps": ****,
        "totalDistance": ****,
        "stepGoal": ****
    },
    {
        "calendarDate": "2023-01-16",
        "totalSteps": ****,
        "totalDistance": ****,
        "stepGoal": ****
    },
    {
        "calendarDate": "2023-01-17",
        "totalSteps": ****,
        "totalDistance": ****,
        "stepGoal": ****
    },
    {
        "calendarDate": "2023-01-18",
        "totalSteps": ****,
        "totalDistance": ****,
        "stepGoal": ****
    },
    {
        "calendarDate": "2023-01-19",
        "totalSteps": ****,
        "totalDistance": ****,
        "stepGoal": ****
    },
    {
        "calendarDate": "2023-01-20",
        "totalSteps": ****,
        "totalDistance": ****,
        "stepGoal": ****
    }
]
cyberjunky commented 1 year ago

@dpfrakes good find, and a great addition, thanks!