Go to Strava API Settings
Create an application (if you don't have one) with these settings:
Copy your Client ID and paste it below:
Click this button to authorize your application with the correct permissions:
After clicking authorize, copy the code from the URL and paste it here:
The URL will look like: http://localhost/?state=&code=YOUR_CODE_HERE&scope=read,activity:read_all
Your access token will appear here:
STRAVA_ACCESS_TOKEN='your_token_here' ruby _scripts/maf_test_analyzer.rb 'https://www.strava.com/activities/ACTIVITY_ID'