![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
@david98hall/tmdb-js
Advanced tools
An unofficial JavaScript wrapper for The Movie Database API.
npm install @david98hall/tmdb-js
npm i tmdb-js
Here is a simple example of how to use this wrapper:
const {TmdbClient} = require('../../../src/tmdb-js/tmdb-js');
doStuff = async function(authentication) {
let apiKey = authentication.apiKey;
let username = authentication.username;
let password = authentication.password;
let tmdb = new TmdbClient(apiKey);
// Get movie data example
let oceansElevenMovie = tmdb.getMovieSection().getMovie("161");
let oceansDetails = await oceansElevenMovie.getDetailsAsync();
let oceansImages = await oceansElevenMovie.getImagesAsync();
console.log("A great movie: " + json.title);
// Rate movie example
let sessionId = await tmdb.getAuthenticator().createSessionAsync("chrome"); // One way of getting a session ID
let ratingSuccessful1 = await oceansElevenMovie.rateAsync(10, sessionId);
// Rate TV show episode example
let loginSessionId = await tmdb.getAuthenticator().createLoginSessionAsync(username, password); // Another way of getting a session ID
let gameOfThronesTvShow = tmdb.getTvShowSection().getTvShow("1399");
let ratingSuccessful2 = await gameOfThronesTvShow.getEpisode(3, 9).rateAsync(10, sessionId);
// Rate TV show as a guest example
let guestSessionId = await tmdb.getAuthenticator().createGuestSessionAsync();
let ratingSuccessful3 = await gameOfThronesTvShow.rateAsync(10, undefined, guestSessionId);
// Search TMDB examples
let searchSection = tmdb.getSearchSection();
let searchResult1 = await searchSection.searchMoviesAsync("Ocean's");
let searchResult2 = await searchSection.searchMoviesAsync("Ocean's", 1, 1);
let searchResult3 = await searchSection.multiSearchAsync("Ocean's");
let searchResult4 = await searchSection.multiSearchAsync("Ocean's", 1, 2);
}
See the documentation for more info.
FAQs
A JavaScript wrapper package for The Movie Database API.
The npm package @david98hall/tmdb-js receives a total of 1 weekly downloads. As such, @david98hall/tmdb-js popularity was classified as not popular.
We found that @david98hall/tmdb-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.