Project

bbc_api

0.0
No commit activity in last 3 years
No release in over 3 years
BBC API integration to get all topic(UK newz,headlines,world newz,technology newz...) wise newz.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme
<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