Skip to content

App server to interact with Strava API - Data processing, charts and more

Notifications You must be signed in to change notification settings

enbis/app-strava-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

app-strava-server

Install dependencies

  • First of all go get to find all dependencies, download and install the missing ones.

Authorization Error

From Strava docs authentication http://developers.strava.com/docs/authentication/

Auth process with new list of scopes, since October 2018.

  • Step 1 redirect user to Strava's auth page, and allow permissions
https://www.strava.com/oauth/authorize?
    client_id=YOUR_CLIENT_ID&
    redirect_uri=YOUR_CALLBACK_DOMAIN&
    response_type=code&
    scope=YOUR_SCOPE
  • Step 2 read code from response, and POST the following request to obtain new access_token with expiration date
https://www.strava.com/oauth/token?
    client_id=YOUR_CLIENT_ID&
    client_secret=YOUR_CLIENT_SECRET&
    code=AUTHORIZATION_CODE_FROM_STRAVA&
    grant_type=authorization_code
  • Step 3 with that token you will be able to continue launch the requests

Server

Launch server go run main.go

Test

Run test go test -run [NameOfTest]

About

App server to interact with Strava API - Data processing, charts and more

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published