
Do you want to put the latest news/blogs from all over the world on your site? On a sidebar? On a search page? On any other page?
We have written a very basic drupal module that gets you news from all over the world using the Daylife News APIs. You can download the drupal module here.
Daylife is an online news aggregator that collects and analyzes news from all over the world and has a set of open APIs (http://cookbook.daylfie.com/docs) for anyone to get news content regarding any topic.
In order to use this news module, you need to sign up for an accesskey and shared secret at http://developer.daylife.com/member/register.
This news module gives you 2 things:
a. A news block that shows headlines about any topic. Once you have installed and enabled the module, you can add an iphone news block with the following PHP code:
<?
$block = daylife_block('view',0, "iphone");
$content = $block['content'];
echo $content;
?>
b. A news search page accessible at /search/daylife/. For e.g. at /search/daylife/iphone for iphone news.
Vineet Gupta of Daylife was apparently checking out my blog, Earth Community Project yesterday and noticed I'd created a "News Search" box for the site and wanted to know a little about it, and asked if I'd share my experience with the Daylife API here as well.
My blog is generally about promoting social and environmental responsibility. I try to talk about current events from around the world and talk about issues that impact all of us, but there are times when I'm simply too busy to search the web for new information and new topics of discussion. A while back, I wondered to myself if I could find a way to completely automate my blog so that I had to do very little to maintain it. While I was half-heartedly searching for a way to do that, I stumbled across Daylife, and by pure accident saw that there was an API available. Now I'm using the Daylife API in a number of different ways, which I'll detail below.
This post is an example of how you can write drupal posts displaying a stream of images using our simple PHP client.
This post simply calls the Search APIs to get a list of images for "Olympic Torch" OR "Olympics Torch". If you have image licenses from Getty, AP and/or Reuters, you can get a list of images about any topic in the world using our APIs
.Attached below is the source code for publishing this stream of images about any topic. Please replace your accesskey, shared secret and source_filter_id (provided by us).
From the Wikipedia: A chutney (British spelling) or chatni (Urdu, Hindi, Bengali or Tamil transliteration) is a term for a variety of sweet and spicy condiments, originally from the Indian subcontinent.
| Bollywood Chutney is Amit's brainchild to bring the spicy gossip and news about bollywood actors, actresses and films. As Amit describes Bollywood Chutney: "The most awesome place to gossip about all things Bollywood around the UK/US/Canada with more chutney than you can handle!" |
The Bollywood Chutney news sections are enabled by the DayPIs using the search_getRelatedArticles call.
Drupal is one of the most popular content management systems along with Wordpress and Joomla.
This basic DayPI drupal module lets you create a block with headlines about any topic you want. You can also host a search page that lets any user to search news from around the web on your website.
The Communication Initiative (The CI) network is an online space for sharing the experiences of, and building bridges between, the people and organisations engaged in or supporting communication as a fundamental strategy for economic and social development and change. They use this drupal module to present recent news about areas of their interest in the right navigation bar of their site.