gelbooru 5.0.0+1 gelbooru: ^5.0.0+1 copied to clipboard
An Gelboory API client written in Dart and powered by the `http` package !
example/lib/gelbooru_example.dart
import 'package:gelbooru/gelbooru.dart';
/// Get last 10 posts from Gelbooru
void main() async {
final client = GelbooruClient(baseUrl: 'https://gelbooru.com');
try {
final PostPageResponse posts = await client.posts.index(limit: 10);
for (final Post post in posts) {
print(post.fileUrl);
}
} catch (e) {
print(e);
}
}