lotr_api 0.1.0 copy "lotr_api: ^0.1.0" to clipboard
lotr_api: ^0.1.0 copied to clipboard

API that accesses data on quotes, characters, books, etc. from the Tolkien universe.

example/README.md

The Lord of the Rings API #

import 'package:lotr_api/lotr_api.dart';

void main() async {
  var lotrApi = LotrApi(
    apiKey: 'INSERT_YOUR_API_ACCESS_KEY_HERE',
  );

  var quotes = await lotrApi.getQuotes(
    pagination: Pagination(
      limit: 10,
    ),
    // https://github.com/gitfrosh/lotr-api/issues/188
    // sorting: QuoteSortings.byIdAsc,
    idFilters: [
      Exists(),
    ],
    dialogFilters: [
      MatchesRegex('Saruman'),
    ],
  );

  print(quotes.docs);
}
copied to clipboard
0
likes
160
points
27
downloads

Publisher

verified publisherfinkmoritz.de

Weekly Downloads

2024.09.25 - 2025.04.09

API that accesses data on quotes, characters, books, etc. from the Tolkien universe.

Repository (GitHub)
View/report issues

Documentation

Documentation
API reference

License

BSD-3-Clause (license)

Dependencies

flutter, http

More

Packages that depend on lotr_api