Class MoviesAPI
- java.lang.Object
-
- com.github.m0nk3y2k4.thetvdb.internal.resource.Resource
-
- com.github.m0nk3y2k4.thetvdb.internal.resource.QueryResource
-
- com.github.m0nk3y2k4.thetvdb.internal.resource.impl.MoviesAPI
-
public final class MoviesAPI extends QueryResource
Implementation of a connector for the remote API's Movies endpoint.
Provides static access to all routes of this endpoint which may be used to gather information about specific movies.
-
-
Field Summary
-
Fields inherited from class com.github.m0nk3y2k4.thetvdb.internal.resource.Resource
ID_VALIDATOR, PATH_ID
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.fasterxml.jackson.databind.JsonNode
get(APIConnection con, long id)
Returns detailed information for a specific movie as raw JSON.static com.fasterxml.jackson.databind.JsonNode
getMovieUpdates(APIConnection con, QueryParameters params)
Returns a list of ID's of all movies, that have been updated since a specific time, as raw JSON.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from class com.github.m0nk3y2k4.thetvdb.internal.resource.QueryResource
createQueryResource
-
Methods inherited from class com.github.m0nk3y2k4.thetvdb.internal.resource.Resource
createResource, createResource
-
-
-
-
Method Detail
-
get
public static com.fasterxml.jackson.databind.JsonNode get(@Nonnull APIConnection con, long id) throws APIException
Returns detailed information for a specific movie as raw JSON.
Corresponds to remote API route: [GET] /movies/{id}- Parameters:
con
- Initialized connection to be used for API communicationid
- The TheTVDB.com movie ID- Returns:
- JSON object containing detailed information for a specific movie
- Throws:
APIException
- If an exception with the remote API occurs, e.g. authentication failure, IO error, the given movie ID does not exist, etc.
-
getMovieUpdates
public static com.fasterxml.jackson.databind.JsonNode getMovieUpdates(@Nonnull APIConnection con, @CheckForNull QueryParameters params) throws APIException
Returns a list of ID's of all movies, that have been updated since a specific time, as raw JSON.
Corresponds to remote API route: [GET] /movieupdates- Parameters:
con
- Initialized connection to be used for API communicationparams
- Object containing key/value pairs of query parameters. Has to specify a propersince
parameter at least.- Returns:
- JSON object containing the ID's of movies that have been updated beginning at the specified epoch time
- Throws:
APIException
- If an exception with the remote API occurs, e.g. authentication failure, IO error, resource not found, etc.
-
-