tmdb_api 1.1.0 tmdb_api: ^1.1.0 copied to clipboard
Dart client-side API package for TMDB.org API (https://www.themoviedb.org/).
tmdb_api #
A Dart client-side API package for TMDB API. To know more about TMDB visit TMDB
Avaliable features #
v3( 🎊✨ Completed 🎉🎉) #
Supports all the functions of version 3 of tmdb API
- [X] Auth
- [X] Account
- [X] Guest Sessions
- [x] Movies
- [x] Tv shows
- [x] Tv Seasons
- [x] Tv Episodes
- [X] People
- [X] Credits
- [X] Certification
- [X] Changes
- [X] Collections
- [X] Find
- [X] Genres
- [X] Keywords
- [X] Companies
- [X] Trending
- [X] Search
- [X] Discover
- [X] Networks
- [X] Reviews
- [X] Versions
- [X] Lists
v4(🎊✨ Completed 🎉🎉) #
- [X] Image URL Constructor
- [X] auth
- [X] account
- [X] lists
v5(is currently in beta) #
More will be added soon
Version 1.1.0 #
Getting Started #
🎉Now This package supports both v3 and v4 of TMDB API
changes #
previous version was causing unwanted console logs so i removed it.
but you can still access those logs using logConfig parameter in TMDB
class.
1) Import package #
//import package
import 'package:tmdb_api/tmdb_api.dart';
2) Create a instance of ApiKeys
and TMDB
class #
//create a instance of ApiKeys with V3 and V4 keys
ApiKeys keys = ApiKeys('Your API KEY V3', 'API READ ACCESS TOKEN V4');
//create a instance of TMDB with keys instance
TMDB tmdb = TMDB(keys,
//shows api logs in console can be used for debug
logConfig: ConfigLogger.showAll());
You can get your API key from themoviedb.org API
3) Thats all it takes now you can access all the features avaliable using tmdb
instance. #
Example #
For getting Trending movies
Map result = await tmdb.v3.trending.getTrending(mediaType = MediaType.all,timeWindow = TimeWindow.day);
For more documentation #
visit TMDB