Strava v1.0.0 Strava View Source
Provides access to Strava’s V3 API.
The Strava V3 API is a publicly available interface allowing developers access to the rich Strava dataset.
Link to this section Summary
Functions
Gets the Strava API application's Access Token from :strava
environment
config or STRAVA_ACCESS_TOKEN
system environment variable
Gets the Strava API application's Client ID from :strava
environment config
or STRAVA_CLIENT_ID
system environment variable
Gets the Strava API application's Client Secret from :strava
environment
config or STRAVA_CLIENT_SECRET
system environment variable
Timeout to establish a connection, in milliseconds. Default is 8,000ms
Timeout used when receiving a connection. Default is 5,000ms
Gets the Strava API application's Access Token from :strava
environment
config or STRAVA_REDIRECT_URI
system environment variable
Gets the Strava API application's Access Token from :strava
environment
config or STRAVA_ACCESS_TOKEN
system environment variable
Link to this section Functions
access_token() View Source
Gets the Strava API application's Access Token from :strava
environment
config or STRAVA_ACCESS_TOKEN
system environment variable.
Example
# config/config.exs
config :strava, access_token: "<access_token>"
client_id() View Source
Gets the Strava API application's Client ID from :strava
environment config
or STRAVA_CLIENT_ID
system environment variable.
Example
# config/config.exs
config :strava, client_id: 1234
client_secret() View Source
Gets the Strava API application's Client Secret from :strava
environment
config or STRAVA_CLIENT_SECRET
system environment variable.
Example
# config/config.exs
config :strava, client_secret: "<client_secret>"
connect_timeout() View Source
Timeout to establish a connection, in milliseconds. Default is 8,000ms.
recv_timeout() View Source
Timeout used when receiving a connection. Default is 5,000ms.
redirect_uri() View Source
Gets the Strava API application's Access Token from :strava
environment
config or STRAVA_REDIRECT_URI
system environment variable.
Example
# config/config.exs
config :strava, redirect_uri: "https://example.com/auth/callback"
refresh_token() View Source
Gets the Strava API application's Access Token from :strava
environment
config or STRAVA_ACCESS_TOKEN
system environment variable.
Example
# config/config.exs
config :strava, refresh_token: "<refresh_token>"