hn_api 0.0.2 copy "hn_api: ^0.0.2" to clipboard
hn_api: ^0.0.2 copied to clipboard

A dart client for the Hacker News API, with API response types. For use with Flutter Hacker News Clients.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add hn_api

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  hn_api: ^0.0.2

Alternatively, your editor might support dart pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:hn_api/client.dart';
import 'package:hn_api/responses.dart';
0
likes
70
pub points
0%
popularity

Publisher

unverified uploader

A dart client for the Hacker News API, with API response types. For use with Flutter Hacker News Clients.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

console, freezed, freezed_annotation, http, json_annotation

More

Packages that depend on hn_api