fewchurs_core 1.2.1 copy "fewchurs_core: ^1.2.1" to clipboard
fewchurs_core: ^1.2.1 copied to clipboard

Pure Dart client for the Fewchurs feature-request API. Models, errors and device identity used by the fewchurs Flutter package.

example/main.dart

import 'package:fewchurs_core/fewchurs_core.dart';

// dart run example/main.dart fr_live_xxx
Future<void> main(List<String> args) async {
  if (args.isEmpty) {
    print('Usage: dart run example/main.dart <api key>');
    return;
  }
  final client = FewchursClient(apiKey: args.first);
  try {
    final page = await client.listFeatures(sort: FeatureSort.top, limit: 5);
    for (final feature in page.features) {
      print('${feature.upvoteCount.toString().padLeft(4)}  ${feature.title}');
    }
  } on FewchursException catch (e) {
    print(e.userMessage);
  } finally {
    client.close();
  }
}
0
likes
160
points
39
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Pure Dart client for the Fewchurs feature-request API. Models, errors and device identity used by the fewchurs Flutter package.

Homepage
Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

http, meta

More

Packages that depend on fewchurs_core