wikidart 0.0.1 copy "wikidart: ^0.0.1" to clipboard
wikidart: ^0.0.1 copied to clipboard

A Dart library for fetching data through Wikimedia API endpoints.

example/wikidart_example.dart

import 'package:wikidart/wikidart.dart';

Future<void> main() async {
  var res = await Wikidart.searchQuery('Google');
  var pageid = res?.results?.first.pageId;

  if (pageid != null) {
    var google = await Wikidart.summary(pageid);

    print(google?.title); // Returns "Google"
    print(google?.description); // Returns "American technology company"
    print(google?.extract); // Returns "Google LLC is an American multinational technology company that specializes in Internet-related..."
  }
}
17
likes
100
pub points
38%
popularity

Publisher

unverified uploader

A Dart library for fetching data through Wikimedia API endpoints.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

http, tuple

More

Packages that depend on wikidart