cyberjunky / python-garminconnect

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

Authentication with consumer key and consumer secret #135

Closed raffa105 closed 1 year ago

raffa105 commented 1 year ago

Hello,

I came across your repository and I'm interested in using it to access the Garmin API. However, I noticed that your authentication method requires a username and password, while I have a consumer key and consumer secret.

Could you please let me know if it's possible to authenticate with the Garmin API using the consumer key and secret, and if so, could you provide any guidance on how to do so?

Thank you for your time and assistance.

Best regards,

Rafael

matin commented 1 year ago

This can be closed. Garth obtains the OAuth tokens using the consumer key and secret as the Connect app.

garth.sso.OAUTH_CONSUMER can also be set manually prior to calling login() if someone wants to use a custom consumer key and secret.

cyberjunky commented 1 year ago

Documented in README,md