Skip to content

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

License

Notifications You must be signed in to change notification settings

brianegan/hnpwa_client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HNPWA Dart Client

Build Status codecov

Fetch data from the HNPWA api! This is an alternative to the official Hacker News API that is built for Progressive Web app and Mobile usage!

No API key needed. Just create a client and fetch data!

Usage

A simple usage example:

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'));
}

Features and bugs

Please file feature requests and bugs at the issue tracker.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages