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

outdated

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

example/tmdb_api.dart

import 'package:tmdb_api/tmdb_api.dart';

main(List<String> args) async {
  //api with out console logs
  TMDB tmdb = TMDB(ApiKeys('Your API KEY', 'apiReadAccessTokenv4'));
  print(await tmdb.v3.movies.getPouplar());

  //api with showing all console logs
  TMDB tmdbWithLogs = TMDB(
    ApiKeys('Your API KEY', 'apiReadAccessTokenv4'),
    logConfig: ConfigLogger.showAll(),
  );
  print(await tmdbWithLogs.v3.movies.getPouplar());

  //api with showing all console logs
  TMDB tmdbWithCustomLogs = TMDB(
    ApiKeys('Your API KEY', 'apiReadAccessTokenv4'),
    logConfig: ConfigLogger(
      //must be true than only all other logs will be shown
      showLogs: true,
      showErrorLogs: true,
    ),
  );
  print(await tmdbWithCustomLogs.v3.movies.getPouplar());
}
51
likes
0
pub points
88%
popularity

Publisher

verified publisherratakondalaarun.dev

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