cyberjunky / python-garminconnect

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

download_activity format #179

Closed Keenpachi closed 10 months ago

Keenpachi commented 1 year ago

How to define value for parameter dl_fmt of method download_activity to get response as CSV?

below attempts are not working:

garmin.download_activity(activity_id, dl_fmt="CSV") garmin.download_activity(activity_id, dl_fmt=garminconnect.Garmin.ActivityUploadFormat.CSV)

theboywho commented 1 year ago

based on example.py: https://github.com/cyberjunky/python-garminconnect/blob/0472785ccea22938170c3098feb59a7d38a4066b/example.py#L385

Something like this should work:

garmin.download_activity(activity_id, dl_fmt=garmin.ActivityDownloadFormat.CSV)
Keenpachi commented 1 year ago

Yep thank you. I mixed up the method names. Now is working fine.