api.init()
Stores Client ID and Client Secret.
api.auth()
Provides a link to Strava for users to autorize the application (required)
api.getToken()
After a user has authorized the app and redirected back to codepen.io, we need to exchange the 'code' for a longer-lasting access token.
api.saveToken()
Stores the access token internaly (also sets a cookie).
api.getJSON()
api.getJSON('athlete')
api.putJSON()
api.putJSON('athlete', {weight: 80})
api.postJSON()
api.postJSON('activities', {name: '', type: '', start_date_local: '', elapsed_time: ''})
api.deleteJSON()
api.deleteJSON('activities/:id')
api.exit()
De-authorizes the application (also deletes cookie).