Skip to content
jeffreyspaan edited this page Aug 20, 2018 · 4 revisions

getById(options, parameter1, parameter2)

This method allows you to get the primary information about a TV season by its season 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.tvSeasons.getById({"id":3572, "season_number": 1}, successCB, errorCB)

getChanges(options, parameter1, parameter2)

This method allows you to get the changes for a specific TV season, it accepts three parameters, the first one must be an object that must have a TV season 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.tvSeasons.getChanges({"id":287 }, successCB, errorCB)

getAccountStates(options, parameter1, parameter2)

This method allows you to get the user ratings for the season's episodes, it accepts three parameters, the first one must be an object that must have a session_id, a season_number and a TV show id. 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.tvSeasons.getAccountStates({"session_id": <session_id>, "season_number": 1, "id": 3572}, successCB, errorCB)

getAccountStatesGuest(options, parameter1, parameter2)

This method allows you to get the user ratings for the season's episodes in a guest session, it accepts three parameters, the first one must be an object that must have a guest_session_id, a season_number and a TV show id. 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.tvSeasons.getAccountStatesGuest({"guest_session_id": <guest_session_id>, "season_number": 1, "id": 3572}, successCB, errorCB)

getCredits(options, parameter1, parameter2)

This method allows you to get the cast & crew credits for a TV season by season 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.tvSeasons.getCredits({"id":3572, "season_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 season by season 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.tvSeasons.getExternalIds({"id":3572, "season_number": 1}, successCB, errorCB)

getImages(options, parameter1, parameter2)

This method allows you to get the images for a TV season by season number, it accepts three parameters, the first one must be an object that must have a TV id, a season_number and 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.tvSeasons.getImages({"id":3572, "season_number": 1}, successCB, errorCB)

getVideos(options, parameter1, parameter2)

This method allows you to get the videos for a TV season by season number, it accepts three parameters, the first one must be an object that must have a TV id, a season_number and 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.tvSeasons.getVideos({"id":3572, "season_number": 1}, successCB, errorCB)
Clone this wiki locally