This is a wrapper for NewsAPI.org, made in Kotlin.
Docs are provided live at https://docs.thegrapevine.xyz/JNewsAPI.
Resolving the dependency
repositories {
maven { url "https://dl.bintray.com/thevineyard/JNewsAPI" }
}compile 'xyz.thegrapevine:JNewsAPI:1.0.0'Using the library
NewsClient client = new NewsClientBuilder("token").build();
// Top headlines about bitcoin
NewsEntity entity = client.getTopHeadlines("bitcoin");
// Sources
SourceEntity sources = client.getSources()
// Everything about media
NewsEntity entity = client.getEverything("media")