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

getById(options, parameter1, parameter2)

This method allows you to get the primary information about a TV show by id, 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.tv.getById({"id":1396}, successCB, errorCB)

getAccountStates(options, parameter1, parameter2)

This method allows you to get the status of whether or not the TV show has been rated or added to their favourite or watch lists, it accepts three parameters, the first one must be an object that must have a TV id and a session_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.tv.getAccountStates({"session_id": <session_id>, "id": 1396}, successCB, errorCB)

getAccountStatesGuest(options, parameter1, parameter2)

This method allows you to get the status for a guest session whether or not the TV show has been rated or added to their favourite or watch lists, it accepts three parameters, the first one must be an object that must have a TV id and a guest_session_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.tv.getAccountStatesGuest({"guest_session_id": <guest_session_id>, "id": 1396}, successCB, errorCB)

getAlternativeTitles(options, parameter1, parameter2)

This method allows you to get the alternative titles for a specific TV show, 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.tv.getAlternativeTitles({"id":1396 }, successCB, errorCB)

getChanges(options, parameter1, parameter2)

This method allows you to get the changes for a specific TV show, 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.tv.getChanges({"id":1396 }, successCB, errorCB)

getContentRatings(options, parameter1, parameter2)

This method allows you to get the content ratings (certifications) for a specific TV show, 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.tv.getContentRatings({"id":1396 }, successCB, errorCB)

getCredits(options, parameter1, parameter2)

This method allows you to get the credits about a TV show, 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.tv.getCredits({"id":1396}, successCB, errorCB)

getExternalIds(options, parameter1, parameter2)

This method allows you to get the externals ids (imdb_id, freebase_mid, freebase_id, tvrage_id) of a TV show, 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.tv.getExternalIds({"id":1396}, successCB, errorCB)

getImages(options, parameter1, parameter2)

This method allows you to get the images of a TV show, 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.tv.getImages({"id":1396}, successCB, errorCB)

getKeywords(options, parameter1, parameter2)

This method allows you to get the keywords for a specific TV show, 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.tv.getKeywords({"id":1396}, successCB, errorCB)

getRecommendations(options, parameter1, parameter2)

This method allows you to get the recommended TV shows for a specific TV show, 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.tv.getRecommendations({"id":1396 }, successCB, errorCB)

getReviews(options, parameter1, parameter2)

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

getScreenedTheatrically(options, parameter1, parameter2)

This method allows you to get a list of seasons or episodes that have been screened in a film festival or theatre, it accepts three parameters, the first one must be an object that must have 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.tv.getScreenedTheatrically({"id":1396 }, successCB, errorCB)

getSimilar(options, parameter1, parameter2)

This method allows you to get similar TV shows of a specific TV show, 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.tv.getSimilar({"id":1396 }, successCB, errorCB)

getTranslations(options, parameter1, parameter2)

This method allows you to get the translations of a specific TV show, 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.tv.getTranslations({"id":1396}, successCB, errorCB)

getVideos(options, parameter1, parameter2)

This method allows you to get the videos of a specific TV show, 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.tv.getVideos({"id":1396}, successCB, errorCB)

getLatest(parameter1, parameter2)

This method allows you to get the latest TV show added, it accepts two parameters that must be functions and will be used as callbacks for the request.

See the allowed options here.

Call the method:

theMovieDb.tv.getLatest(successCB, errorCB)

getAiringToday(options, parameter1, parameter2)

This method allows you to get the list of TV shows that air today (without a specified timezone, this query defaults to EST: Eastern Time UTC-05:00), 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.tv.getAiringToday({}, successCB, errorCB)

getOnTheAir(options, parameter1, parameter2)

This method allows you to get the list of TV shows that are currently on the air (this query looks for any TV show that has an episode with an air date in the next 7 days), 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.tv.getOnTheAir({}, successCB, errorCB)

getPopular(options, parameter1, parameter2)

This method allows you to get the list of popular TV shows (this list refreshes every day), 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.tv.getPopular({}, successCB, errorCB)

getTopRated(options, parameter1, parameter2)

This method allows you to get the list of top rated TV shows (by default, this list will only include TV shows that have 2 or more votes and is refreshed every day), 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.tv.getTopRated({}, successCB, errorCB)

rate(options, body, parameter1, parameter2)

This method allows you to rate a TV show, it accepts four parameters, the first one must be an object that must have a TV id and a session_id, 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.tv.rate({"session_id": <session_id>, "id": 1396}, 8, successCB, errorCB)

rateGuest(options, body, parameter1, parameter2)

This method allows you to rate a TV show as a guest, it accepts four parameters, the first one must be an object that must have a TV id and a session_id, 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.tv.rateGuest({"session_id": <session_id>, "id": 1396}, 8, successCB, errorCB)

removeRate(options, parameter1, parameter2)

This method allows you to remove a rating for a TV show, it accepts three parameters, the first one must be an object that must have a TV id and a session_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.tv.removeRate({"session_id": <session_id>, "id": 1396}, successCB, errorCB)

removeRateGuest(options, parameter1, parameter2)

This method allows you to remove a rating for a TV show in a guest session, it accepts three parameters, the first one must be an object that must have a TV id and a guest_session_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.tv.removeRateGuest({"guest_session_id": <guest_session_id>, "id": 1396}, successCB, errorCB)

Clone this wiki locally