public interface AuthorisationAPI
API implementation of the Strava REST interface for authorisation
| Modifier and Type | Method and Description |
|---|---|
TokenResponse |
tokenExchange(Integer clientId,
String clientSecret,
String code) |
@FormUrlEncoded @POST(value="/oauth/token") TokenResponse tokenExchange(@Field(value="client_id") Integer clientId, @Field(value="client_secret") String clientSecret, @Field(value="code") String code) throws BadRequestException, UnauthorizedException
clientId - application's ID, obtained during registrationclientSecret - application's secret, obtained during registrationcode - authorisation codeBadRequestException - Where the request does not contain all the required informationUnauthorizedException - If client secret is invalidAuthorisationService.tokenExchange(java.lang.Integer, java.lang.String, java.lang.String, AuthorisationScope...)Copyright © 2016 Dan Shannon. All rights reserved.