newsapi_client 0.1.3 copy "newsapi_client: ^0.1.3" to clipboard
newsapi_client: ^0.1.3 copied to clipboard

outdated

A client for the newsapi.org API (v2) written in dart.

Newsapi client for dart #

import 'package:newsapi_client/newsapi_client.dart';

// Initialize client with your API key.
final client = NewsapiClient('your API key');

// Get top headlines from Canada.
Future<Map<String, dynamic>> topHeadlinesCanada() async => client.topHeadlines({
  'country': Countries.canada,
});
3
likes
0
pub points
40%
popularity

Publisher

unverified uploader

A client for the newsapi.org API (v2) written in dart.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

http

More

Packages that depend on newsapi_client