dart_newsapi 0.1.1+2

Dart native js
Flutter Android iOS web

A Dart package for newsapi.org. An API Key from newsapi.org is required to use this package. Get one for free at newsapi.org Using only http package, nothing more nothing less.

dart_newsapi #

A Dart package for newsapi.org. An API Key from newsapi.org is required to use this package. Get one for free at newsapi.org

Getting Started #

Simple usage: #

  import 'package:dart_newsapi/dartnewsapi.dart';
  NewsAPI newsAPI = new NewsAPI('YOUR-API-KEY-HERE');

  newsAPI.topHeadlines({'country': 'no'}).then((List<Article> articles) {
    print(articles.first.source.name);
  });

  newsAPI.sources({}).then((List<Source> sources) {
    print(sources.first.name);
  });
2
likes
100
pub points
16%
popularity

Publisher

hareland.eu

A Dart package for newsapi.org. An API Key from newsapi.org is required to use this package. Get one for free at newsapi.org Using only http package, nothing more nothing less.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (LICENSE)

Dependencies

http

More

Packages that depend on dart_newsapi