snoo 0.0.27 copy "snoo: ^0.0.27" to clipboard
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);
}
0
likes
130
points
8
downloads

Publisher

unverified uploader

Weekly Downloads

Snoo is a Reddit API library written in dart leveraging the [http](https://pub.dev/packages/http) package.

Repository

Documentation

API reference

License

unknown (license)

Dependencies

http, meta

More

Packages that depend on snoo