| Package | Description |
|---|---|
| javastrava.api.v3.auth | |
| javastrava.api.v3.auth.impl.retrofit | |
| javastrava.api.v3.rest | |
| javastrava.api.v3.service.impl |
| Modifier and Type | Method and Description |
|---|---|
Token |
TokenManager.retrieveTokenWithExactScope(String username,
AuthorisationScope... requiredScopes)
Retrieve a cached token which has exactly the given set
of scopes
|
Token |
TokenManager.retrieveTokenWithExactScope(String username,
List<AuthorisationScope> scopes)
Retrieve a cached token which has exactly the given set
of scopes
|
Token |
TokenManager.retrieveTokenWithScope(String username,
AuthorisationScope... scopes)
Retrieve a token which has at least the given set of
scopes.
|
Token |
TokenManager.retrieveTokenWithScope(String username,
List<AuthorisationScope> scopes)
Retrieve a token which has at least the given set of
scopes.
|
Token |
AuthorisationService.tokenExchange(Integer clientId,
String clientSecret,
String code,
AuthorisationScope... scopes)
Strava will respond to the authorization request by redirecting the user/browser to the redirect_uri provided.
|
| Modifier and Type | Method and Description |
|---|---|
TokenResponse |
TokenService.deauthorise(Token accessToken)
Allows an application to revoke its access to an athlete's data.
|
void |
TokenManager.revokeToken(Token token)
Revoke an access token - that is, remove it from the cache of tokens.
|
void |
TokenManager.storeToken(Token token)
Place a token in the cache
|
| Modifier and Type | Method and Description |
|---|---|
Token |
AuthorisationServiceImpl.tokenExchange(Integer clientId,
String clientSecret,
String code,
AuthorisationScope... scopes) |
| Modifier and Type | Method and Description |
|---|---|
TokenResponse |
TokenServiceImpl.deauthorise(Token accessToken) |
static TokenService |
TokenServiceImpl.instance(Token token)
Returns an instance of
token services |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
API.instance(Class<T> class1,
Token token)
Creates and returns a new API RestAdapter instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected Token |
StravaServiceImpl.getToken() |
| Modifier and Type | Method and Description |
|---|---|
static UploadService |
UploadServiceImpl.instance(Token token)
Returns an instance of
segment effort services |
static StreamService |
StreamServiceImpl.instance(Token token)
Returns an instance of
segment effort services |
static SegmentService |
SegmentServiceImpl.instance(Token token)
Returns an instance of
gear services |
static SegmentEffortService |
SegmentEffortServiceImpl.instance(Token token)
Returns an instance of
segment effort services |
static GearService |
GearServiceImpl.instance(Token token)
Returns an instance of
gear services |
static ClubService |
ClubServiceImpl.instance(Token token)
Returns an instance of
club services |
static AthleteService |
AthleteServiceImpl.instance(Token token)
Returns an instance of
athlete services |
static ActivityService |
ActivityServiceImpl.instance(Token token)
Returns an instance of
activity services |
| Constructor and Description |
|---|
StravaServiceImpl(Class<T> class1,
Token token)
Protected constructor prevents user from getting a service instance without a valid token
|
Copyright © 2015 Dan Shannon. All rights reserved.