Skip to content

Latest commit

 

History

History
82 lines (43 loc) · 2.06 KB

README.md

File metadata and controls

82 lines (43 loc) · 2.06 KB

NewsApp

News app is an application that display news for categories like ( sports - healthy - bussiness ..) from a lot of sources uses newsApi.org

Preview

Libraries and technologies used

  • Navigation component

  • Coroutines

  • Data binding

  • View binding

  • ROOM Database

  • Retrofit

  • Dependency Injection - Dagger-Hilt

  • Flow

  • LiveData

  • Material Components

  • ViewModel

  • cache responses with room

  • solid principles

API Reference

Get sources by category

  GET https://newsapi.org/v2/top-headlines/sources
Parameter Type Description
api_key string Required. Your API key
category string Find sources that display news of this category. Possible options: business entertainment general health science sports technology. Default: all categories

get news by specific source

  GET https://newsapi.org/v2/everything
Parameter Type Description
api_key string Required. Your API key
sources string identifiers for the news sources or blogs you want headlines from. Use the /sources endpoint to locate these programmatically

Environment Variables

To run this project, you will need to add API_KEY