cyber-stream-sdk
TypeScript icon, indicating that this package has built-in type declarations

1.0.22 • Public • Published

Cyber Stream SDK

The Cyber Stream TypeScript SDK provides a robust interface to interact with IMDB movie database API, facilitating operations like fetching random movies, searching for movies based on keywords, and retrieving detailed information about movies using their IMDb ID.

It also provides a fallback API to fetch just lists from IMDB.

Installation

To install the SDK, use the following npm command.

npm install cyber-stream-sdk

Usage

Initializing the SDK

Import the SDK and initialize it with your API key or other necessary configuration parameters.

const cyberStream = new TomideStreams();

Fetching Random Movies

To get a list of random movies, use the getRandomMovies method. This method ensures you receive a diverse selection of movies each time it's called.

cyberStream.getRandomMovies().then((movies) => {
  console.log(movies);
});

Searching for Movies

You can search for movies by titles or keywords using the searchMovies method, which returns a list of movies matching the search criteria.

searchMovies("Inception").then((movies) => {
  console.log(movies);
});

Retrieving a Movie by IMDb ID

cyberStream.getMovieById("tt1375666")

To get detailed information about a specific movie, use the getMovieById method with the movie's IMDb ID as the parameter.

Contributors

License

The TomideStreams SDK is available under the MIT License. For more details, see the LICENSE file in the repository.

Package Sidebar

Install

npm i cyber-stream-sdk

Weekly Downloads

21

Version

1.0.22

License

MIT

Unpacked Size

30.7 kB

Total Files

11

Last publish

Collaborators

  • tomideadeoye