Class EpisodesAPI


  • public final class EpisodesAPI
    extends Resource
    Implementation of a connector for the remote API's Episodes endpoint.


    Provides static access to all routes of this endpoint which may be used for fetching information about a specific episode.

    • 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 communication
        id - 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.