mister_frodo 1.0.1+1 copy "mister_frodo: ^1.0.1+1" to clipboard
mister_frodo: ^1.0.1+1 copied to clipboard

a dart client sdk to the https://the-one-api.dev/v2 api

example/mister_frodo_example.dart

import 'dart:convert';

import 'package:mister_frodo/mister_frodo.dart';

Future<void> main() async {
  JsonEncoder encoder = JsonEncoder.withIndent('  ');
  var misterFrodo = MisterFrodo(apiKey: "<YourApiKey>");
  ResponseWrapper<Book> responseWrapper = await misterFrodo.getBooks();
  print(encoder.convert(responseWrapper));
}