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/

client_idint

The numeric developer client id.

redirect_uristr

The URL that Strava will redirect to after successful (or failed) authorization.

approval_promptstr

Whether to prompt for approval even if approval already granted to app. Choices are ‘auto’ or ‘force’. (Default is ‘auto’)

scopelist[str]

The access scope required. Omit to imply “read” and “activity:read” Valid values are ‘read’, ‘read_all’, ‘profile:read_all’, ‘profile:write’, ‘profile:read_all’, ‘activity:read_all’, ‘activity:write’.

statestr

An arbitrary variable that will be returned to your application in the redirect URI.

string : The URL string to use for authorization link.