public class TraktTvApi extends Object
| Constructor and Description |
|---|
TraktTvApi(String clientId,
String clientSecret)
Create the API
|
TraktTvApi(String clientId,
String clientSecret,
org.apache.http.client.HttpClient httpClient)
Create the API
|
| Modifier and Type | Method and Description |
|---|---|
EpisodeService |
episodeService() |
protected retrofit.RestAdapter |
getRestAdapter() |
MovieService |
movieService() |
TokenResponse |
requestAccessTokenByPin(String pin) |
TokenResponse |
requestAccessTokenByRefresh(String refreshToken) |
TokenResponse |
requestAccessTokenByRefresh(String refreshToken,
String redirectUri) |
SearchService |
searchService() |
SeasonService |
seasonService() |
TraktTvApi |
setAccessToken(String accessToken) |
TraktTvApi |
setIsDebug(boolean isDebug) |
ShowService |
showService() |
SyncService |
syncService() |
public TraktTvApi(String clientId, String clientSecret)
clientId - the client IDclientSecret - the client secretpublic TraktTvApi setAccessToken(String accessToken)
public TraktTvApi setIsDebug(boolean isDebug)
protected retrofit.RestAdapter getRestAdapter()
public TokenResponse requestAccessTokenByPin(String pin) throws TraktTvException
TraktTvExceptionpublic TokenResponse requestAccessTokenByRefresh(String refreshToken) throws TraktTvException
TraktTvExceptionpublic TokenResponse requestAccessTokenByRefresh(String refreshToken, String redirectUri) throws TraktTvException
TraktTvExceptionpublic MovieService movieService()
public ShowService showService()
public SeasonService seasonService()
public EpisodeService episodeService()
public SearchService searchService()
public SyncService syncService()
Copyright © 2016-2017. All Rights Reserved.