gelbooru 8.0.0
gelbooru: ^8.0.0 copied to clipboard
An Gelbooru API client written in Dart and powered by the `http` package !
example/gelbooru_example.dart
import 'package:gelbooru/gelbooru.dart';
Future<void> main() async {
final GelbooruClient client = GelbooruClient();
final PaginatedResponse<Post> posts = await client.posts.index(
request: const PostIndexRequest(
tags: <String?>['blonde', 'toys'],
limit: 5,
),
);
for (final Post p in posts) {
print(p.fileUrl);
}
}