| Package | Description |
|---|---|
| javastrava.api.v3.auth |
Interface definitions for authorisation services which deal with access tokens
|
| javastrava.api.v3.auth.impl.retrofit | |
| javastrava.api.v3.rest | |
| javastrava.api.v3.service | |
| javastrava.api.v3.service.impl | |
| javastrava.cache.impl | |
| javastrava.util |
| 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 token) |
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.
|
| Constructor and Description |
|---|
API(Token token)
Construct an API instance with a given token
|
| Modifier and Type | Method and Description |
|---|---|
TokenResponse |
Strava.deauthorise(Token accessToken) |
| Constructor and Description |
|---|
Strava(Token token)
Constructor requires a token
|
| Modifier and Type | Method and Description |
|---|---|
protected Token |
StravaServiceImpl.getToken()
Get the Strava access token associated with this service
|
| Modifier and Type | Method and Description |
|---|---|
static WebhookService |
WebhookServiceImpl.instance(Token token) |
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(Token token)
Protected constructor prevents user from getting a service instance
without a valid token
|
WebhookServiceImpl(Token token) |
| Modifier and Type | Method and Description |
|---|---|
Token |
StravaCacheKey.getToken() |
protected Token |
StravaCacheImpl.getToken()
Get the token in use
|
| Modifier and Type | Method and Description |
|---|---|
void |
StravaCacheKey.setToken(Token token) |
| Constructor and Description |
|---|
StravaCacheImpl(Class<T> class1,
Token token) |
StravaCacheKey(T id,
Token token,
Class<U> class1) |
| Modifier and Type | Method and Description |
|---|---|
static List<StravaActivity> |
PrivacyUtils.handlePrivateActivities(List<StravaActivity> activities,
Token token)
Removes private activities from the list (by changing private ones to activities with resourceState=PRIVATE)
|
static List<StravaSegmentEffort> |
PrivacyUtils.handlePrivateSegmentEfforts(List<StravaSegmentEffort> efforts,
Token token)
Returns the list of segments with any that should be flagged as private having their data cleared and resource state set to
StravaResourceState.PRIVATE |
static List<StravaSegment> |
PrivacyUtils.handlePrivateSegments(List<StravaSegment> segments,
Token token)
Removes private segments from the given list (by replacing them with segments with resourceState =
StravaResourceState.PRIVATE |
Copyright © 2016 Dan Shannon. All rights reserved.