### Initialize TMDB with Custom Dio Instance Source: https://github.com/ratakondalaarun/tmdb_api/blob/master/README.md This example demonstrates how to provide your own Dio instance to the TMDB client. This is useful for advanced network configurations or when integrating with existing Dio setups. ```dart import 'package:dio/dio.dart'; final tmdbWithCustomDio = TMDB( ApiKeys('Your API KEY', 'apiReadAccessTokenv4'), dio: Dio(), // your own dio instance ); ``` -------------------------------- ### Fetch Trending Movies Source: https://github.com/ratakondalaarun/tmdb_api/blob/master/README.md An example of how to fetch trending movies using the TMDB client. It specifies the media type and time window for the trending request. ```dart Map result = await tmdb.v3.trending.getTrending(mediaType: MediaType.all, timeWindow: TimeWindow.day); ``` -------------------------------- ### Clone tmdb_api Repository Source: https://github.com/ratakondalaarun/tmdb_api/blob/master/CONTRIBUTING.md Instructions for cloning the tmdb_api project repository from GitHub to your local machine. ```txt https://github.com//tmdb_api.git. ``` -------------------------------- ### Add Changed Files to Snapshot Source: https://github.com/ratakondalaarun/tmdb_api/blob/master/CONTRIBUTING.md Command to stage changes in Git, preparing them for commit. ```bash git add insert-paths-of-changed-files-here ``` -------------------------------- ### Import and Initialize TMDB Client Source: https://github.com/ratakondalaarun/tmdb_api/blob/master/README.md Demonstrates how to import the TMDB library in your Dart code and create an instance of the TMDB client using your API keys. You need to provide your TMDB API key and a v4 access token. ```dart import 'package:tmdb_api/tmdb_api.dart'; final tmdb = TMDB( ApiKeys('Your API KEY', 'apiReadAccessTokenv4'), ); ``` -------------------------------- ### Push Changes to Remote Repository Source: https://github.com/ratakondalaarun/tmdb_api/blob/master/CONTRIBUTING.md Command to upload local commits to the remote repository. ```bash git push origin branch-name-here. ``` -------------------------------- ### Commit Staged Changes Source: https://github.com/ratakondalaarun/tmdb_api/blob/master/CONTRIBUTING.md Command to save staged changes to the Git repository with a descriptive message. ```bash git commit -m "Insert a short message of the changes made here" ``` -------------------------------- ### Create a New Branch for Fixes Source: https://github.com/ratakondalaarun/tmdb_api/blob/master/CONTRIBUTING.md Command to create a new Git branch for implementing fixes or new features. ```bash git checkout -b branch-name-here. ``` -------------------------------- ### Configure TMDB Client with Custom Logs Source: https://github.com/ratakondalaarun/tmdb_api/blob/master/README.md Shows how to initialize the TMDB client with custom logging configurations. You can enable or disable all logs or specific error logs using the ConfigLogger class. ```dart final tmdbWithCustomLogs = TMDB( ApiKeys('Your API KEY', 'apiReadAccessTokenv4'), logConfig: ConfigLogger( showLogs: true, showErrorLogs: true, ), ); ``` -------------------------------- ### Add tmdb_api to pubspec.yaml Source: https://github.com/ratakondalaarun/tmdb_api/blob/master/README.md This snippet shows how to add the tmdb_api package as a dependency in your Dart project's pubspec.yaml file. Ensure you use the latest version available on pub.dev. ```yaml dependencies: tmdb_api: latest ``` -------------------------------- ### Add Interceptors to TMDB Client Source: https://github.com/ratakondalaarun/tmdb_api/blob/master/README.md Illustrates how to add custom interceptors to the TMDB client's Dio instance. This can be used for tasks like request logging, authentication, or error handling. Note: Use interceptors only when not using a custom Dio instance directly. ```dart final tmdbWithInterceptors = TMDB( ApiKeys('Your API KEY', 'apiReadAccessTokenv4'), interceptors: Interceptors()..add(/*your interceptor*/), ); ``` ```dart final customDio = Dio(); customDio.interceptors.add(/*your interceptor*/) final tmdbWithCustomDioInstance = TMDB( ApiKeys('Your API KEY', 'apiReadAccessTokenv4'), dio: customDio, ); ``` -------------------------------- ### Set Default API Language Source: https://github.com/ratakondalaarun/tmdb_api/blob/master/README.md Shows how to set a default language for all supported TMDB API endpoints. This ensures that the API responses are consistently returned in the specified language. ```dart final tmdbWithDefaultLanguage = TMDB( ApiKeys('Your API KEY', 'apiReadAccessTokenv4'), defaultLanguage: 'en-US', // sets default language for all supported endpoints ); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.