hnpwa_client 2.0.0 copy "hnpwa_client: ^2.0.0" to clipboard
hnpwa_client: ^2.0.0 copied to clipboard

Fetch data from the HNPWA API -- a Hacker News API crafted for mobile and progressive web apps

example/hnpwa_client_example.dart

import 'package:hnpwa_client/hnpwa_client.dart';

main() async {
  final client = new HnpwaClient();

  // Print the top stories
  print(await client.news());

  // Print the 4th page of newest stories
  print(await client.newest(page: 4));

  // Access a specific item
  print(await client.item(4));

  // Query a specific user
  print(await client.user('davideast'));
}
2
likes
40
pub points
0%
popularity

Publisher

unverified uploader

Fetch data from the HNPWA API -- a Hacker News API crafted for mobile and progressive web apps

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

http

More

Packages that depend on hnpwa_client