Skip to content

wrapTMDB/wrapTMDB-ts

Repository files navigation

WrapTMDB-ts


What is wrapTMDB ?

wrapTMDB is a wrapper collection for wrapping TMDB API from their doc and implementing in different program languages.

It helps developer to request Movies or TV shows for infomation and metadata.

This repo written by Typescript and publich in npm,
see more here.


What kinds of projects are appropriated using with?

  • If you want to make a client to track new movies infomation.
  • If you want to make a tool helping you to manage your movie files or videos.
  • Even if you want to make a application to replace TMDB offical website. (( lmao
  • ...

Useage

Install:

$npm install wraptmdb-ts@latest

Before use this tool, make sure already have your api_key.

import * as wrapTMDB from 'wraptmdb-ts'; // import as a namespace

wrapTMDB.Init('YOUR api_key');        //Always init your TOKEN_key first.
wrapTMDB.SetHeader({                  //Set header (optional but recommand)
    'User-Agent': 'npm package-dev',
    Referer: 'wraptmdb-ts',
  });

async function main() {
  let data = {};
  try {
    //using as a promise function
    data = await wrapTMDB.Movies.GetDetails(624860); 
  } catch (err) {
    console.error(err);
  }
  console.log(JSON.stringify(data));
}
main();

How do I recognize these APIs ?

Use your intuition:

data = await wrapTMDB.Movies.GetDetails(624860);

alt text

data = await wrapTMDB.Collections.GetTranslations(654321, 'en-US');

alt text

data = await wrapTMDB.TVseasons.GetImages(54321, 65421, 'en-US');

alt text

Join Development ?

$git clone https://github.com/wrapTMDB/wrapTMDB-ts &&

npm install ||

touch src/index.ts 

Others

*** leave a star, hope this tool would give you a big help. ***

THANK YOU :)

Any request are welcome.

About

wrapTMDB-ts is a npm package for implementing TMDB API from doc. To request Movies and TV-shows informations from TMDB.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published