now strava sync works
This commit is contained in:
@@ -126,8 +126,10 @@ class StravaClient:
|
||||
"client_secret": self.client_secret,
|
||||
"code": code,
|
||||
"grant_type": "authorization_code",
|
||||
"redirect_uri": f"http://localhost:{CALLBACK_PORT}/callback",
|
||||
}, timeout=30)
|
||||
r.raise_for_status()
|
||||
if not r.ok:
|
||||
raise RuntimeError(f"Token exchange failed ({r.status_code}): {r.text}")
|
||||
self._tokens = r.json()
|
||||
self._tokens["client_id"] = self.client_id
|
||||
self._save_tokens()
|
||||
|
||||
+2
-2
@@ -33,8 +33,8 @@ incremental: true # skip files whose hash hasn't changed since last run
|
||||
|
||||
import:
|
||||
strava:
|
||||
client_id: # paste your Client ID from strava.com/settings/api
|
||||
client_secret: # paste your Client Secret
|
||||
client_id: 218194 # paste your Client ID from strava.com/settings/api
|
||||
client_secret: e787e62357c80c754e4f6129bfdfb849c4c03490 # paste your Client Secret
|
||||
|
||||
athlete:
|
||||
max_hr: 190
|
||||
|
||||
Reference in New Issue
Block a user