news_api_flutter_package

Last updated:

0 purchases

news_api_flutter_package Image
news_api_flutter_package Images
Add to Cart

Description:

news api flutter package

News API Flutter Package #
Flutter package for accessing News API. (https://newsapi.org/)
Getting Started #

Installation Guide
Example Project

Initialization #
NewsAPI _newsAPI = NewsAPI("your_api_key");
copied to clipboard
Get API key from here
Top Headlines #
Future<List<Article>> articleList = _newsAPI.getTopHeadlines();
copied to clipboard
Parameters
String country, String category, String sources, String query, int pageSize, int page
Details on request and parameters
Everything #
Future<List<Article>> articleList = _newsAPI.getEverything();
copied to clipboard
Parameters
String query, String queryInTitle, String sources, String domains, String excludeDomains, DateTime
from, DateTime to, String language, String sortBy, int pageSize, int page
Details on request and parameters
Sources #
Future<List<Source>> sources = _newsAPI.getSources();
copied to clipboard
Parameters
String category, String language, String country
Details on request and parameters
Errors #
Any error occurred will be instance of ApiError.
class ApiError {
String code;
String message;
}
copied to clipboard
Details on errors

I'm always working on making improvements. If you have any feedback, issues, or suggestions, feel
free to reach out. Happy coding!

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.