stravalib.client.Client.refresh_access_token¶
- Client.refresh_access_token(client_id, client_secret, refresh_token)[source]¶
Exchanges the previous refresh token for a short-lived access token and a new refresh token (used to obtain the next access token later on).
- client_idint
The numeric developer client id.
- client_secretstr
The developer client secret
- refresh_tokenstr
The refresh token obtained from a previous authorization request
Dictionary containing the access_token, refresh_token and expires_at (number of seconds since Epoch when the provided access token will expire)