Package com.amilesend.tmdb.client.api
Class AuthenticationApi
java.lang.Object
com.amilesend.tmdb.client.api.ApiBase
com.amilesend.tmdb.client.api.AuthenticationApi
TMDB Authentication API.
-
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationApi
(com.amilesend.client.connection.Connection connection) Creates a newAuthenticationApi
object. -
Method Summary
Modifier and TypeMethodDescriptionCreates a new guest session to allow for limited access to a user's account.Creates a new request token to validate the TMDB user login.createSession
(@NonNull CreateSessionRequest request) Creates a new user session that grants access to write user data.deleteSession
(@NonNull DeleteSessionRequest request) Deletes a session.Validates the application's access permissions (i.e., the read access token).Methods inherited from class com.amilesend.tmdb.client.api.ApiBase
getConnection
-
Constructor Details
-
AuthenticationApi
public AuthenticationApi(com.amilesend.client.connection.Connection connection) Creates a newAuthenticationApi
object.- Parameters:
connection
- the underlying connection
-
-
Method Details
-
createGuestSession
Creates a new guest session to allow for limited access to a user's account. More information: https://developer.themoviedb.org/reference/authentication-create-guest-session- Returns:
- the response containing the guest session identifier.
- See Also:
-
createRequestToken
Creates a new request token to validate the TMDB user login.- Returns:
- the response containing the request token
- See Also:
-
createSession
Creates a new user session that grants access to write user data.- Parameters:
request
- the request containing the request token- Returns:
- the response containing the secret session identifier
- See Also:
-
deleteSession
Deletes a session.- Parameters:
request
- the request containing the session identifier- Returns:
- the response
- See Also:
-
validateKey
Validates the application's access permissions (i.e., the read access token).- Returns:
- the response
- See Also:
-