tmdb_api 1.2.4 copy "tmdb_api: ^1.2.4" to clipboard
tmdb_api: ^1.2.4 copied to clipboard

outdated

Dart client-side API package for TMDB.org API (https://www.themoviedb.org/).

Dart pub analyser Run Tests CI pub package

tmdb_api #

A TheMovieDatabase client library for dart. To know more about TMDB visit offical site

Avaliable Methods #

v3( 🎊✨ Completed πŸŽ‰πŸŽ‰) #

Supports all the functions of version 3 of tmdb API

  • βœ… Auth
  • βœ… Account
  • βœ… Guest Sessions
  • βœ… Movies
  • βœ… Tv shows
  • βœ… Tv Seasons
  • βœ… Tv Episodes
  • βœ… People
  • βœ… Credits
  • βœ… Certification
  • βœ… Changes
  • βœ… Collections
  • βœ… Find
  • βœ… Genres
  • βœ… Keywords
  • βœ… Companies
  • βœ… Trending
  • βœ… Search
  • βœ… Discover
  • βœ… Networks
  • βœ… Reviews
  • βœ… Versions
  • βœ… Lists

v4(🎊✨ Completed πŸŽ‰πŸŽ‰) #

  • βœ… Image URL Constructor
  • βœ… auth
  • βœ… account
  • βœ… lists

Getting started #

(updated on v1.2.4)

Step 1: Adding as dependencies #

Pub.dev's installation guide

Add this to your package's pubspec.yaml file:

dependencies:
  tmdb_api: ^1.2.4 //visit tmdb for latest version number

Step 2: Import it #

Now in your Dart code, you can use:

import 'package:tmdb_api/tmdb_api.dart';

Step 3: Create Instance #

Now you need to create instance for TMDB and ApiKeys with your api keys.

TMDB tmdbWithCustomLogs = TMDB( //TMDB instance
    ApiKeys('Your API KEY', 'apiReadAccessTokenv4'),//ApiKeys instance with your keys,
  );

Step 4(Optional): Configuring console logs #

There are 3 logconfigs presets avaliable.

  • ConfigLogger.showAll(): development use.
  • ConfigLogger.showRecommended(): development use.
  • ConfigLogger.showNone(): production use.

You can add any off this presets to logConfig named parameter of TMDB instance

Custom Logs

TMDB tmdbWithCustomLogs = TMDB(
    ApiKeys('Your API KEY', 'apiReadAccessTokenv4'),
    logConfig: ConfigLogger(
      showLogs: true,//must be true than only all other logs will be shown
      showErrorLogs: true,
    ),
  );

Example #

For getting Trending movies

Map result = await tmdb.v3.trending.getTrending(mediaType = MediaType.all,timeWindow = TimeWindow.day);

For more API documentation #

visit offical API documentation

58
likes
0
points
668
downloads

Publisher

verified publisherratakondalaarun.dev

Weekly Downloads

Dart client-side API package for TMDB.org API (https://www.themoviedb.org/).

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

colorize, http

More

Packages that depend on tmdb_api