youtube_api_client 1.1.0 youtube_api_client: ^1.1.0 copied to clipboard
YouTube API Client is a plugin which directly interacts with YouTube server. Supports searching videos, channels and playlists.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add youtube_api_client
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
youtube_api_client: ^1.1.0
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:youtube_api_client/channel.dart';
import 'package:youtube_api_client/enum/category.dart';
import 'package:youtube_api_client/enum/channel/channel_part.dart';
import 'package:youtube_api_client/enum/playlist/playlist_part.dart';
import 'package:youtube_api_client/enum/query_parameter.dart';
import 'package:youtube_api_client/enum/result_type.dart';
import 'package:youtube_api_client/enum/search/channel_type.dart';
import 'package:youtube_api_client/enum/search/event_type.dart';
import 'package:youtube_api_client/enum/search/order.dart';
import 'package:youtube_api_client/enum/search/safe_search.dart';
import 'package:youtube_api_client/enum/search/search_part.dart';
import 'package:youtube_api_client/enum/search/topic.dart';
import 'package:youtube_api_client/enum/video/chart.dart';
import 'package:youtube_api_client/enum/video/live_broadcast_content.dart';
import 'package:youtube_api_client/enum/video/my_rating.dart';
import 'package:youtube_api_client/enum/video/video_part.dart';
import 'package:youtube_api_client/enum/video/video_projection.dart';
import 'package:youtube_api_client/enum/video_caption.dart';
import 'package:youtube_api_client/enum/video_definition.dart';
import 'package:youtube_api_client/enum/video_dimension.dart';
import 'package:youtube_api_client/enum/video_duration.dart';
import 'package:youtube_api_client/enum/video_embeddable.dart';
import 'package:youtube_api_client/enum/video_license.dart';
import 'package:youtube_api_client/enum/video_syndicated.dart';
import 'package:youtube_api_client/enum/video_type.dart';
import 'package:youtube_api_client/model/channel/branding_settings.dart';
import 'package:youtube_api_client/model/channel/channel_options.dart';
import 'package:youtube_api_client/model/channel/channel_snippet.dart';
import 'package:youtube_api_client/model/channel/youtube_channel.dart';
import 'package:youtube_api_client/model/options.dart';
import 'package:youtube_api_client/model/playlist/playlist_options.dart';
import 'package:youtube_api_client/model/playlist/playlist_snippet.dart';
import 'package:youtube_api_client/model/playlist/youtube_playlist.dart';
import 'package:youtube_api_client/model/search/search_options.dart';
import 'package:youtube_api_client/model/snippet.dart';
import 'package:youtube_api_client/model/thumbnails/thumbnail.dart';
import 'package:youtube_api_client/model/thumbnails/thumbnail_resolution.dart';
import 'package:youtube_api_client/model/video/video_content_details.dart';
import 'package:youtube_api_client/model/video/video_options.dart';
import 'package:youtube_api_client/model/video/video_snippet.dart';
import 'package:youtube_api_client/model/video/youtube_video.dart';
import 'package:youtube_api_client/model/youtube_api_result.dart';
import 'package:youtube_api_client/playlist.dart';
import 'package:youtube_api_client/search.dart';
import 'package:youtube_api_client/util/duration_extension.dart';
import 'package:youtube_api_client/video.dart';
import 'package:youtube_api_client/youtube_api.dart';