strava working with correct scope
This commit is contained in:
@@ -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',
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user