This repository has been archived by the owner on Aug 18, 2021. It is now read-only.
Consumable-code-news-api
Retrofit has been Handled !! || Consumable code for request API (News API) || Link https://newsapi.org/
// Switch For Using Chuck Interceptor
fun usingChuckInterceptor(context: Context)
// Get Top Headline
fun getTopHeadline(
q: String?,
sources: String?,
category: String?,
country: String?,
pageSize: Int?,
page: Int?,
callback: NewsResultCallback
)
// Get Everythings
fun getEverythings(
q: String?,
from: String?,
to: String?,
qInTitle: String?,
sources: String?,
domains: String?,
excludeDomains: String?,
language: String?,
sortBy: String?,
pageSize: Int?,
page: Int?,
callback: NewsResultCallback
)
// Get Sources
fun getSources(
language: String,
country: String,
category: String,
callback: NewsResultCallback
)