Class EpisodesAPI
- java.lang.Object
-
- com.github.m0nk3y2k4.thetvdb.internal.resource.Resource
-
- com.github.m0nk3y2k4.thetvdb.internal.resource.impl.EpisodesAPI
-
-
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 the full information for a given episode id 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.Resource
createResource, createResource
-
-
-
-
Method Detail
-
get
public static com.fasterxml.jackson.databind.JsonNode get(@Nonnull APIConnection con, long id) throws APIException
Returns the full information for a given episode id as raw JSON.
Corresponds to remote API route: [GET] /episodes/{id}- Parameters:
con
- Initialized connection to be used for API communicationid
- The ID of the episode to fetch- Returns:
- JSON object containing the full episode information
- Throws:
APIException
- If an exception with the remote API occurs, e.g. authentication failure, IO error, the given episode ID does not exist, etc.
-
-