StravaAPI
This package interfaces you to Strava through its API.
Package code was generated at: UTC 2025-04-01T18:14:59.557
Installation
Install the package(s) via:
] add StravaAPI OpenAPI
Authentication
Please note that setting up the authorization is not provided by this package. You can read about it in Strava's documentation.
Usage example
With a valid access_token
(see above), you can get the logged in athlete (get_logged_in_athlete
):
using OpenAPI.Clients: Client, set_header
client = Client("https://www.strava.com/api/v3")
set_header(client, "Authorization", "Bearer $access_token")
api = StravaAPI.AthletesApi(client)
athlete, api_resp = get_logged_in_athlete(api)
Documentation
The documentation includes:
- Julia code docstrings: Julia docstrings
- OpenAPI generated Readme (ignore the installation instructions): Julia API client for StravaAPI
- OpenAPI generated API documentation: below the API section
Contributing
Contributions are welcome!
Editing the source code
As the source code is generated by OpenAPI.jl, which overwrites the src
and docs
folders. Therefore every change needs to happen in the generator folder. It is especially true for the documentation (file names start with docs.*
). To generate the package code start docker, then run the following in the project root:
julia --project=generator generator/generate.jl