Skip to content

rajcybage/bbc_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

<title> BBC API INTEGRATION</title>

BBC WORLD NEWS API Integration

Build Status

Integrate BBC world NEWS API to get all topic(UK newz,headlines,world news,technology newz...) wise newz. You can install it as a desktop application as well as Rails Application

System Requirements

Ruby >= 1.9.3 or jruby >=1.7.x
rails >= 3.0.x

Installation

In Gemfile

gem "bbc_api", "0.2.2"

USAGE

require 'bbc_api'
bbc = BBC::Api.new
Get The topics
bbc.topics

It will return all the topics like Headlines,Technology,entertainment,world,uk...etc

bbc.topics.first.stories

It will return the stories or the news of the corresponding topic..

Now You can access the attributes of that NEWZ

bbc.topics.first.stories.titlethe title of that newz
bbc.topics.first.stories.linkthe link of that newz
bbc.topics.first.stories.imagethe image of that newz
bbc.topics.first.stories.descriptionthe description of that newz

Releases

No releases published

Packages

No packages published

Languages