snoo 0.0.27
snoo: ^0.0.27 copied to clipboard
Snoo is a Reddit API library written in dart leveraging the [http](https://pub.dev/packages/http) package.
example/snoo_example.dart
import 'package:snoo/snoo.dart';
Future<void> main() async {
const redditAppId = '';
const redditAppSecret = '';
final RedditClient reddit = RedditClient(redditAppId, redditAppSecret);
Listing sub = await reddit.getSub('beau_gosse');
var gallery = sub.children.where((element) =>
element is Link && element.isGallery != null && element.isGallery!);
print(gallery.length);
}