Follow the steps outlined here to create API access and get clientID and clientSecret.
Replace client_Id
with your own and use your browser for a one-time authentication to get a code.
http://localhost/?state=&code=&scope=read,activity:read_all
- Create a file called
strava.env
in the root of the project with the following contents
STRAVA_CLIENT_ID=<clientId>
STRAVA_CLIENT_SECRET=<clientsecret>
STRAVA_REFRESH_TOKEN=<refreshToken>
go run main.go