public class TmdbAuthentication extends AbstractMethod
apiKey, httpTools, MAPPER| Constructor and Description |
|---|
TmdbAuthentication(String apiKey,
HttpTools httpTools)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
TokenAuthorisation |
getAuthorisationToken()
This method is used to generate a valid request token for user based
authentication.
|
TokenSession |
getGuestSessionToken()
This method is used to generate a guest session id.
|
TokenSession |
getSessionToken(TokenAuthorisation token)
This method is used to generate a session id for user based
authentication.
|
TokenAuthorisation |
getSessionTokenLogin(TokenAuthorisation token,
String username,
String password)
This method is used to generate a session id for user based
authentication.
|
getMediaChanges, getTypeReference, processWrapper, processWrapperListpublic TokenAuthorisation getAuthorisationToken() throws MovieDbException
MovieDbExceptionpublic TokenSession getSessionToken(TokenAuthorisation token) throws MovieDbException
token - MovieDbExceptionpublic TokenAuthorisation getSessionTokenLogin(TokenAuthorisation token, String username, String password) throws MovieDbException
token - Session tokenusername - User's usernamepassword - User's passwordMovieDbExceptionpublic TokenSession getGuestSessionToken() throws MovieDbException
MovieDbExceptionCopyright © 2012–2017. All rights reserved.