Skip to content

Our officially supported Ruby client library for accessing News API.

License

Notifications You must be signed in to change notification settings

gillien/News-API-ruby

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

News API SDK for Ruby

Installation

gem install news-api

Usage

Initilisation

require 'news-api'

n = News.new("api_key")

Sources

n.get_sources(country: 'us', language: 'en')

Everything

n.get_everything(q: "apple", from: "2018-01-05&to=2018-01-05", sortBy: "popularity")

Top Headlines

n.get_top_headlines(sources: "bbc-news")

About

Our officially supported Ruby client library for accessing News API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%