Skip to content
Damien edited this page Jun 5, 2016 · 1 revision
let strava: Provider = .Strava(
    clientID: "***",
    clientSecret: "***"
    redirectURL: "foo://callback"
)
Token
{
  "access_token": "83ebeabdec09f6670863766f792ead24d61fe3f9",
  "athlete": {
    "id": 227615,
    "resource_state": 3,
    "firstname": "John",
    "lastname": "Applestrava",
    "profile_medium": "http://pics.com/227615/medium.jpg",
    "profile": "http://pics.com/227615/large.jpg",
    "city": "San Francisco",
    "state": "California",
    "country": "United States",
    "sex": "M",
    "friend": null,
    "follower": null,
    "premium": true,
    "created_at": "2008-01-01T17:44:00Z",
    "updated_at": "2013-09-04T20:00:50Z",
    "follower_count": 273,
    "friend_count": 19,
    "mutual_friend_count": 0,
    "date_preference": "%m/%d/%Y",
    "measurement_preference": "feet",
    "email": "[email protected]",
    "clubs": [ ],
    "bikes": [ ],
    "shoes": [ ]
  }
}
Scopes

comma delimited string of view_private and/or write, leave blank for read-only permissions.

Authorization Request Parameters
client_id: integer required
application’s ID, obtained during registration
redirect_uri: string required
URL to which the user will be redirected with the authorization code, must be to the callback domain associated with the application, or its sub-domain, localhost and 127.0.0.1 are white-listed
response_type: string required
must be ‘code’
approval_prompt: string optional
‘force’ or ‘auto’, use ‘force’ to always show the authorization prompt even if the user has already authorized the current application, default is ‘auto’
scope: string optional
comma delimited string of ‘view_private’ and/or ‘write’, leave blank for read-only permissions.
state: string optional
returned to your application, useful if the authentication is done from various points in an app
Token Request Parameters
client_id: integer required
application’s ID, obtained during registration
client_secret: string required
application’s secret, obtained during registration
code: string required
authorization code
Clone this wiki locally