Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

themoviedb-javascript-library

cavestri90MIT3.0.3

A Javascript library to interact with the RESTful API of themoviedb.org.

api, themoviedb

readme

The Movie DB (javascript library)

TMDB Javascript

A Javascript library to interact with the RESTful API of themoviedb.org.

You will need an api_key to use the API, please get one at themoviedb.org.

Usage

Please refer to the wiki for usage examples and descriptions, i haven't added any comment to the library to make it smaller. (You can download the minified version too)

Methods supported

Currently the library supports all the methods of the API, anyway if you note that the API was updated and not the library or you see some kind of error, please add an issue and i will fix it as soon as possible.

Methods:

Licence

The MIT License (MIT)

Copyright (c) 2014 Franco Cavestri

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

changelog

3.0.3: Community

Add export to allowing the require import usage and fix issues with some methods.

Thanks @jeffreyspaan / @afzaalopera

Added:

Exporter

Updated:

tv:

  getLatest: options parameter removed
  removeRate: rate parameter removed
  removeRateGuest: rate parameter removed

movies:

removeRate: rate parameter removed
removeRateGuest: rate parameter removed

tvEpisodes:

removeRate: rate parameter removed
removeRateGuest: rate parameter removed

3.0.1: Global times

Added language as global configuration, now you can set the returned language in one place.

Added:

common:

language (defaults to 'en-US')

E.G.:

theMovieDb.common.language = "pt-BR"

3.0.0: Don't be lazy

Library version has been updated to match API version, some methods and options have changed, keep it in mind before update your library.

Added:

configurations:

getCountries
getJobs
getLanguages
getPrimaryTranslations
getTimezones

account:

getFavoritesTvShows
getRatedTvShows
getRatedTvEpisodes
getTvShowsWatchlist

certifications:

getTvList

collections:

getTranslations

companies:

getAlternativeNames

guestSession:

getRatedMovies
getRatedTvShows
getRatedTvEpisodes

movies:

getExternalIds
removeRate
removeRateGuest
getAccountStatesGuest

networks:

getAlternativeNames

tv:

getAccountStates
getAccountStatesGuest
getReviews
getScreenedTheatrically
rate
rateGuest
removeRate
removeRateGuest

tvSeasons

getAccountStates
getAccountStatesGuest

tvEpisodes

getAccountStates
getAccountStatesGuest
rate
rateGuest
removeRate
removeRateGuest

Renamed:

account:

getWatchlist -> getMovieWatchlist
addMovieToWatchlist -> addToWatchlist

certifications:

getList -> getMovieList

collections:

getCollection -> getDetails
getCollectionImages -> getImages

companies:

getCompany -> getDetails

credits:

getCredit -> getDetails

genres:

getList -> getMovieList
getTVList -> getTvList

movies:

getStatus -> getAccountStates

Removed:

companies:

getCompanyMovies

jobs

movies:

getTrailers

search

getList

timezones

Some API query paths were updated.