tmdb_api 1.2.0 tmdb_api: ^1.2.0 copied to clipboard
Dart client-side API package for TMDB.org API (https://www.themoviedb.org/).
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());
}