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

getMulti(options, parameter1, parameter2)

This method allows you to search for movies, TV shows and people in a single request, it accepts three parameters, the first one must be an object that must have a query (CGI escaped string) 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.search.getMulti({"query":"Game%20Of%20Thrones"}, successCB, errorCB)

getMovie(options, parameter1, parameter2)

This method allows you to search for movies by title, it accepts three parameters, the first one must be an object that must have a query (CGI escaped string) 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.search.getMovie({"query":"Fight%20Club"}, successCB, errorCB)

getCollection(options, parameter1, parameter2)

This method allows you to search collections by name, it accepts three parameters, the first one must be an object that must have a query (CGI escaped string) 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.search.getCollection({"query":"The%20Avengers%20Collection"}, successCB, errorCB)

getTv(options, parameter1, parameter2)

This method allows you to search TV shows by title, it accepts three parameters, the first one must be an object that must have a query (CGI escaped string) 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.search.getTv({"query":"Breaking%20Bad"}, successCB, errorCB)

getPerson(options, parameter1, parameter2)

This method allows you to search people by name, it accepts three parameters, the first one must be an object that must have a query (CGI escaped string) 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.search.getPerson({"query":"Brad%20Pitt"}, successCB, errorCB)

getCompany(options, parameter1, parameter2)

This method allows you to search companies by name, it accepts three parameters, the first one must be an object that must have a query (CGI escaped string) 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.search.getCompany({"query":"Sony"}, successCB, errorCB)

getKeyword(options, parameter1, parameter2)

This method allows you to search for keywords by name, it accepts three parameters, the first one must be an object that must have a query (CGI escaped string) 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.search.getKeyword({"query":"fight"}, successCB, errorCB)

Clone this wiki locally