public class FrydAPIService extends AbstractFrydAPIService
BASE_API_URL, logger, oauthService| Constructor and Description |
|---|
FrydAPIService(com.github.scribejava.core.oauth.OAuth20Service oauthService,
java.lang.String baseAPIUrl) |
| Modifier and Type | Method and Description |
|---|---|
APIResponse<Location> |
getFrydSpotById(com.github.scribejava.core.model.OAuth2AccessToken appAccessToken,
java.lang.String locationId)
Gets the Location Information (also called fryd Spot Information)
that is part of your Account
|
java.util.concurrent.Future<APIResponse<Location>> |
getFrydSpotByIdAsync(com.github.scribejava.core.model.OAuth2AccessToken appAccessToken,
java.lang.String locationId)
Gets Location Information (also called fryd Spot Information)
that is part of your Account in an asynchronous way
|
APIResponse<java.util.List<Trophy>> |
getTrophiesOfList(com.github.scribejava.core.model.OAuth2AccessToken appAccessToken,
java.lang.String trophylistId)
Gets a list of all the trophies of a trophylist/event
|
java.util.concurrent.Future<APIResponse<java.util.List<Trophy>>> |
getTrophiesOfListAsync(com.github.scribejava.core.model.OAuth2AccessToken appAccessToken,
java.lang.String trophylistId)
Gets a list of all the trophies of a trophylist/event in an asynchronous way
|
APIResponse<Trophy> |
getTrophyById(com.github.scribejava.core.model.OAuth2AccessToken appAccessToken,
java.lang.String trophyId)
Gets trophy information of a trophy from one of your trophylists/events
|
java.util.concurrent.Future<APIResponse<Trophy>> |
getTrophyByIdAsync(com.github.scribejava.core.model.OAuth2AccessToken appAccessToken,
java.lang.String trophyId)
Gets trophy information of a trophy from one of your trophylists/events
in an asynchronous way
|
APIResponse<java.util.List<Trophylist>> |
getTrophylistsFromLocation(com.github.scribejava.core.model.OAuth2AccessToken appAccessToken,
java.lang.String locationId)
Gets a list of trophylists (including events) of your Location
|
java.util.concurrent.Future<APIResponse<java.util.List<Trophylist>>> |
getTrophylistsFromLocationAsync(com.github.scribejava.core.model.OAuth2AccessToken appAccessToken,
java.lang.String locationId)
Gets a list of trophylists (including events) of your Location
in an asynchronous way
|
APIResponse<User> |
getUserInformation(com.github.scribejava.core.model.OAuth2AccessToken userAccessToken)
Gets the Userinformation of the user whos token this is
|
java.util.concurrent.Future<APIResponse<User>> |
getUserInformationAsync(com.github.scribejava.core.model.OAuth2AccessToken userAccessToken)
Gets the Userinformation of the user whos token this is in an asynchronous way
|
APIResponse<java.lang.String> |
triggerTrophyProgress(com.github.scribejava.core.model.OAuth2AccessToken userAccessToken,
com.github.scribejava.core.model.OAuth2AccessToken appAccessToken,
java.lang.String locationId,
java.lang.String secret)
Sends a secret to fryd to trigger a trophy
|
java.util.concurrent.Future<APIResponse<java.lang.String>> |
triggerTrophyProgressAsync(com.github.scribejava.core.model.OAuth2AccessToken userAccessToken,
com.github.scribejava.core.model.OAuth2AccessToken appAccessToken,
java.lang.String locationId,
java.lang.String secret)
Sends a secret to fryd to trigger a trophy in an asynchronous way
|
createRequest, handleRequest, handleRequestAsync, handleRequestInternal, transformTrophiesResponse, transformTrophylistResponsepublic FrydAPIService(com.github.scribejava.core.oauth.OAuth20Service oauthService,
java.lang.String baseAPIUrl)
public APIResponse<Location> getFrydSpotById(com.github.scribejava.core.model.OAuth2AccessToken appAccessToken, java.lang.String locationId) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.io.IOException
getFrydSpotById in class AbstractFrydAPIServiceappAccessToken - A Token with the scope "AppInfo"locationId - The id of the location/fryd Spot you ownjava.lang.InterruptedExceptionjava.util.concurrent.ExecutionExceptionjava.io.IOExceptionpublic java.util.concurrent.Future<APIResponse<Location>> getFrydSpotByIdAsync(com.github.scribejava.core.model.OAuth2AccessToken appAccessToken, java.lang.String locationId)
getFrydSpotByIdAsync in class AbstractFrydAPIServiceappAccessToken - A Token with the scope "AppInfo"locationId - The id of the location/fryd Spot you ownpublic APIResponse<java.util.List<Trophylist>> getTrophylistsFromLocation(com.github.scribejava.core.model.OAuth2AccessToken appAccessToken, java.lang.String locationId) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.io.IOException
getTrophylistsFromLocation in class AbstractFrydAPIServiceappAccessToken - A Token with the scope "AppInfo"locationId - The id of the location/fryd Spot you ownjava.lang.InterruptedExceptionjava.util.concurrent.ExecutionExceptionjava.io.IOExceptionpublic java.util.concurrent.Future<APIResponse<java.util.List<Trophylist>>> getTrophylistsFromLocationAsync(com.github.scribejava.core.model.OAuth2AccessToken appAccessToken, java.lang.String locationId)
getTrophylistsFromLocationAsync in class AbstractFrydAPIServiceappAccessToken - A Token with the scope "AppInfo"locationId - The id of the location/fryd Spot you ownpublic APIResponse<java.util.List<Trophy>> getTrophiesOfList(com.github.scribejava.core.model.OAuth2AccessToken appAccessToken, java.lang.String trophylistId) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.io.IOException
getTrophiesOfList in class AbstractFrydAPIServiceappAccessToken - A Token with the scope "AppInfo"trophylistId - An id of a trophylist/event of your locationjava.lang.InterruptedExceptionjava.util.concurrent.ExecutionExceptionjava.io.IOExceptionpublic java.util.concurrent.Future<APIResponse<java.util.List<Trophy>>> getTrophiesOfListAsync(com.github.scribejava.core.model.OAuth2AccessToken appAccessToken, java.lang.String trophylistId)
getTrophiesOfListAsync in class AbstractFrydAPIServiceappAccessToken - A Token with the scope "AppInfo"trophylistId - An id of a trophylist/event of your locationpublic APIResponse<Trophy> getTrophyById(com.github.scribejava.core.model.OAuth2AccessToken appAccessToken, java.lang.String trophyId) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.io.IOException
getTrophyById in class AbstractFrydAPIServiceappAccessToken - A Token with the scope "AppInfo"trophyId - An id of a trophy of one of your trophylists/eventsjava.lang.InterruptedExceptionjava.util.concurrent.ExecutionExceptionjava.io.IOExceptionpublic java.util.concurrent.Future<APIResponse<Trophy>> getTrophyByIdAsync(com.github.scribejava.core.model.OAuth2AccessToken appAccessToken, java.lang.String trophyId)
getTrophyByIdAsync in class AbstractFrydAPIServiceappAccessToken - A Token with the scope "AppInfo"trophyId - An id of a trophy of one of your trophylists/eventspublic APIResponse<User> getUserInformation(com.github.scribejava.core.model.OAuth2AccessToken userAccessToken) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.io.IOException
getUserInformation in class AbstractFrydAPIServiceuserAccessToken - A Token with the scope "UserInfo"java.lang.InterruptedExceptionjava.util.concurrent.ExecutionExceptionjava.io.IOExceptionpublic java.util.concurrent.Future<APIResponse<User>> getUserInformationAsync(com.github.scribejava.core.model.OAuth2AccessToken userAccessToken)
getUserInformationAsync in class AbstractFrydAPIServiceuserAccessToken - A Token with the scope "UserInfo"public APIResponse<java.lang.String> triggerTrophyProgress(com.github.scribejava.core.model.OAuth2AccessToken userAccessToken, com.github.scribejava.core.model.OAuth2AccessToken appAccessToken, java.lang.String locationId, java.lang.String secret) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.io.IOException
triggerTrophyProgress in class AbstractFrydAPIServiceuserAccessToken - A Token with the scope "UserInfo" of the user who achieved the trophyappAccessToken - A Token with the scope "AppInfo" of your locationlocationId - The id of the location/fryd Spot you ownsecret - The secret of the trophy to be achievedjava.lang.InterruptedExceptionjava.util.concurrent.ExecutionExceptionjava.io.IOExceptionpublic java.util.concurrent.Future<APIResponse<java.lang.String>> triggerTrophyProgressAsync(com.github.scribejava.core.model.OAuth2AccessToken userAccessToken, com.github.scribejava.core.model.OAuth2AccessToken appAccessToken, java.lang.String locationId, java.lang.String secret)
triggerTrophyProgressAsync in class AbstractFrydAPIServiceuserAccessToken - A Token with the scope "UserInfo" of the user who achieved the trophyappAccessToken - A Token with the scope "AppInfo" of your locationlocationId - The id of the location/fryd Spot you ownsecret - The secret of the trophy to be achieved