Skip to content
This repository was archived by the owner on Aug 18, 2021. It is now read-only.

Releases: amirisback/consumable-code-news-api

Release v1.0.7

25 Jun 23:19

Choose a tag to compare

* Update Build Gradle *
* Enhance Performance *

Remove Unused Dependencies

09 May 19:31

Choose a tag to compare

* Fixing CLEARTEXT security policy issue *
* Update build.gradle *
* Fixing Bug *
* Enhance Performance *
* Remove Kotlin Android Extension *

Bug-Fixed

19 Jan 16:46

Choose a tag to compare

  • update build.gradle *
  • fixing CLEARTEXT security policy issue *

updating gradle version

13 May 12:38

Choose a tag to compare

  • adding LICENSE
  • update build.gradle version
  • adding sample code resource

add: constant value country

02 Apr 15:04

Choose a tag to compare

add: all constant value country available

add: constant value

02 Apr 14:52

Choose a tag to compare

object NewsConstant {

    const val CATEGORY_BUSINESS = "business"
    const val CATEGORY_ENTERTAIMENT = "entertainment"
    const val CATEGORY_GENERAL = "general"
    const val CATEGORY_HEALTH = "health"
    const val CATEGORY_SCIENCE = "science"
    const val CATEGORY_SPORTS = "sports"
    const val CATEGORY_TECHNOLOGY = "technology"

}

Remove Unused Dependencies

28 Mar 16:51

Choose a tag to compare

update: Build. Gradle

Consumable-code-news-api

17 Mar 06:45

Choose a tag to compare

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
)