Skip to content
jeffreyspaan edited this page Aug 22, 2018 · 5 revisions

getById(options, parameter1, parameter2)

This method allows you to get the primary information about a TV episode by combination of a season and episode number, it accepts three parameters, the first one must be an object that must have a TV id, a season_number and a episode_number, the other two parameters must be functions and will be used as callbacks for the request.

See the allowed options here.

Call the method:

theMovieDb.tvEpisodes.getById({"id":3572, "season_number": 1, "episode_number": 1}, successCB, errorCB)

getChanges(options, parameter1, parameter2)

This method allows you to get the changes for a specific TV episode, it accepts three parameters, the first one must be an object that must have a TV episode id and can have one (or more) of the allowed options, the other two parameters must be functions and will be used as callbacks for the request.

See the allowed options here.

Call the method:

theMovieDb.tvEpisodes.getChanges({"id":255746 }, successCB, errorCB)

getAccountStates(options, parameter1, parameter2)

This method allows you to get the user rating for the episode, it accepts three parameters, the first one must be an object that must have a session_id, a TV id, a season_number and a episode_number. The other two parameters must be functions and will be used as callbacks for the request.

See the allowed options here.

Call the method:

theMovieDb.tvEpisodes.getAccountStates({"session_id": <session_id>, "id": 3572, "season_number": 1, "episode_number": 1}, successCB, errorCB)

getAccountStatesGuest(options, parameter1, parameter2)

This method allows you to get the user rating for the episode in a guest session, it accepts three parameters, the first one must be an object that must have a guest_session_id, a TV id, a season_number and a episode_number. The other two parameters must be functions and will be used as callbacks for the request.

See the allowed options here.

Call the method:

theMovieDb.tvEpisodes.getAccountStatesGuest({"guest_session_id": <guest_session_id>, "id": 3572, "season_number": 1, "episode_number": 1}, successCB, errorCB)

getCredits(options, parameter1, parameter2)

This method allows you to get the TV episode credits by combination of season and episode number, it accepts three parameters, the first one must be an object that must have a TV id and can have one (or more) of the allowed options, the other two parameters must be functions and will be used as callbacks for the request.

See the allowed options here.

Call the method:

theMovieDb.tvEpisodes.getCredits({"id":3572, "season_number": 1, "episode_number": 1}, successCB, errorCB)

getExternalIds(options, parameter1, parameter2)

This method allows you to get the external ids (imdb_id, freebase_mid, freebase_id, tvrage_id) for a TV episode by comabination of a season and episode number, it accepts three parameters, the first one must be an object that must have a TV id and can have one (or more) of the allowed options, the other two parameters must be functions and will be used as callbacks for the request.

See the allowed options here.

Call the method:

theMovieDb.tvEpisodes.getExternalIds({"id":3572, "season_number": 1, "episode_number": 1}, successCB, errorCB)

getImages(options, parameter1, parameter2)

This method allows you to get the images (episode stills) for a TV episode by combination of a season and episode number (since episode stills don't have a language, this call will always return all images), it accepts three parameters, the first one must be an object that must have a TV id and can have one (or more) of the allowed options, the other two parameters must be functions and will be used as callbacks for the request.

See the allowed options here.

Call the method:

theMovieDb.tvEpisodes.getImages({"id":3572, "season_number": 1, "episode_number": 1}, successCB, errorCB)

getVideos(options, parameter1, parameter2)

This method allows you to get the videos for a TV episode by combination of a season and episode number, it accepts three parameters, the first one must be an object that must have a TV id and can have one (or more) of the allowed options, the other two parameters must be functions and will be used as callbacks for the request.

See the allowed options here.

Call the method:

theMovieDb.tvEpisodes.getVideos({"id":3572, "season_number": 1, "episode_number": 1}, successCB, errorCB)

rate(options, body, parameter1, parameter2)

This method allows you to rate a TV episode, it accepts four parameters, the first one must be an object that must have a session_id, a TV id, a season_number and a episode_number, the second parameter must be a rate value. The other two parameters must be functions and will be used as callbacks for the request.

See the allowed options here.

Call the method:

theMovieDb.tvEpisodes.rate({"session_id": <session_id>, "id": 3572, "season_number": 1, "episode_number": 1}, 8, successCB, errorCB)

rateGuest(options, body, parameter1, parameter2)

This method allows you to rate a TV episode in a guest session, it accepts four parameters, the first one must be an object that must have a guest_session_id, a TV id, a season_number and a episode_number, the second parameter must be a rate value. The other two parameters must be functions and will be used as callbacks for the request.

See the allowed options here.

Call the method:

theMovieDb.tvEpisodes.rateGuest({"guest_session_id": <guest_session_id>, "id": 3572, "season_number": 1, "episode_number": 1}, 8, successCB, errorCB)

removeRate(options, parameter1, parameter2)

This method allows you to remove a rating for a TV episode, it accepts three parameters, the first one must be an object that must have a session_id, a TV id, a season_number and a episode_number. The other two parameters must be functions and will be used as callbacks for the request.

See the allowed options here.

Call the method:

theMovieDb.tvEpisodes.removeRate({"session_id": <session_id>, "id": 3572, "season_number": 1, "episode_number": 1}, successCB, errorCB)

removeRateGuest(options, parameter1, parameter2)

This method allows you to remove a rating for a TV episode in a guest session, it accepts three parameters, the first one must be an object that must have a guest_session_id, a TV id, a season_number and a episode_number. The other two parameters must be functions and will be used as callbacks for the request.

See the allowed options here.

Call the method:

theMovieDb.tvEpisodes.removeRateGuest({"guest_session_id": <guest_session_id>, "id": 3572, "season_number": 1, "episode_number": 1}, successCB, errorCB)