public interface TokenAPI
API implementation of the Strava REST interface for token management
| Modifier and Type | Method and Description |
|---|---|
void |
deauthorise(String accessToken,
StravaAPICallback<TokenResponse> callback) |
TokenResponse |
deauthoriseToken(String accessToken) |
@FormUrlEncoded
@POST(value="/oauth/deauthorize")
void deauthorise(@Field(value="access_token")
String accessToken,
StravaAPICallback<TokenResponse> callback)
throws UnauthorizedException
accessToken - The access token for which the application is revoking its access.callback - The callback to execute on completionUnauthorizedException - if the token is not allowed to be deauthorisedTokenService.deauthorise(javastrava.api.v3.auth.model.Token)@FormUrlEncoded @POST(value="/oauth/deauthorize") TokenResponse deauthoriseToken(@Field(value="access_token") String accessToken) throws UnauthorizedException
accessToken - The access token for which the application is revoking its access.UnauthorizedException - if the token is not allowed to be deauthorisedTokenService.deauthorise(javastrava.api.v3.auth.model.Token)Copyright © 2016 Dan Shannon. All rights reserved.