stravalib.client.Client.authorization_url#
- Client.authorization_url(client_id, redirect_uri, approval_prompt='auto', scope=None, state=None)[source]#
Get the URL needed to authorize your application to access a Strava userâs information.
See https://developers.strava.com/docs/authentication/
- Parameters:
client_id (int) â The numeric developer client id.
redirect_uri (str) â The URL that Strava will redirect to after successful (or failed) authorization.
approval_prompt (str, default='auto') â Whether to prompt for approval even if approval already granted to app. Choices are âautoâ or âforceâ.
scope (list[str], default = None) â The access scope required. Omit to imply âreadâ and âactivity:readâ Valid values are âreadâ, âread_allâ, âprofile:read_allâ, âprofile:writeâ, âactivity:readâ, âactivity:read_allâ, âactivity:writeâ.
state (str, default=None) â An arbitrary variable that will be returned to your application in the redirect URI.
- Returns:
A string containing the url required to authorize with the Strava API.
- Return type:
str