Skip to content
This repository was archived by the owner on Jun 11, 2019. It is now read-only.

The-Grape-Vine/JNewsAPI-v1

Repository files navigation

Download Build Status forthebadge forthebadge forthebadge

JNewsAPI

This is a wrapper for NewsAPI.org, made in Kotlin.

Documentation

Docs are provided live at https://docs.thegrapevine.xyz/JNewsAPI.

How to Use

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")

About

A Java library for newsapi.org

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages