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

getById(options, parameter1, parameter2)

This method allows you to get objects in our database by an external id, it accepts three parameters, the first one must be an object that must have an object id and a external_source (imdb_id, freebase_mid, freebase_id, tvrage_id, tvdb_id, tvrage_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.find.getById({"id": "tt0993846", "external_source":"imdb_id"}, successCB, errorCB)
Clone this wiki locally