movie_database_client 1.0.3
movie_database_client: ^1.0.3

Dart native js
Flutter Android iOS web

Very simple dart clieent wrapping the Open Movie Database API to list search responses to simple title queries. It returns titles, typee of title and poster images.

example/main.dart

import 'dart:async';

import 'package:movie_database_client/movie_database_client.dart';
import 'package:movie_database_client/title_match.dart';

Future<int> main(List<String> args) async {
  if (args.length != 2) {
    print("Usage: pub run main.dart <apiKey> <search>");
    return 1;
  }
  final apiKey = args[0];
  final search = args[1];

  final client = new MovieDatabaseClient(apiKey);
  final result = await client.search(search);

  if (result.isEmpty) {
    print("No matches.");
  } else {
    result.forEach(printMatch);
  }

  return 0;
}

void printMatch(TitleMatch match) {
  print("${match.type}: ${match.title}");
}
2
likes
95
pub points
14%
popularity

Very simple dart clieent wrapping the Open Movie Database API to list search responses to simple title queries. It returns titles, typee of title and poster images.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

ddikman@gmail.com

License

MIT (LICENSE)

Dependencies

http

More

Packages that depend on movie_database_client