Private
Public Access
1
0

strava working with correct scope

This commit is contained in:
Sander Roosendaal
2018-11-26 20:33:18 +01:00
parent 6877626cd8
commit 9e77b348b1
9 changed files with 30 additions and 7 deletions

View File

@@ -33,6 +33,12 @@ except ImportError:
from rowers.imports import *
headers = {'Accept': 'application/json',
'Api-Key': STRAVA_CLIENT_ID,
'Content-Type': 'application/json',
'user-agent': 'sanderroosendaal'}
oauth_data = {
'client_id': STRAVA_CLIENT_ID,
'client_secret': STRAVA_CLIENT_SECRET,
@@ -45,6 +51,8 @@ oauth_data = {
'bearer_auth': True,
'base_url': "https://www.strava.com/oauth/token",
'grant_type': 'refresh_token',
'headers': headers,
'scope':'activity:write,activity:read_all',
}