The Daylife Cookbook is a collection of recipes to help you bootstrap applications that use the Daylife platform (DayPI).
These recipes come from Daylifers and the cookbook community, with entries ranging from sample code to tutorials, half baked ideas, and spotlights of the latest deployments of the DayPI.
Feel free to share, steal, criticize, applaud, and feed back!
API versions 4.0 and 4.2 have been deprecated. API v4.8 is the latest stable version available. Please check Release Notes for more information about different API versions.
Daylife is a perfect fit for our strategy of presenting the best and most tightly focused content, whether it is produced by us at USA TODAY or anywhere else on the Web. It helps us provide our readers with a full 360-degree view of a given topic, and adds depth and richness to niche areas important to our readers and advertisers.- Jeff Webber, SVP, USAToday.com
You guys have what seems like an amazingly powerful and easy to use API, we're pretty excited about playing with it and possibly integrating it with Hubdub. - Tom Griffith, Hubdub.com
It's amazing how simple this is to integrate into django. When a view is creating a page, it just calls a thin wrapper function that I put around the daypi module. - Bracket Boy
I found the Daylife API for PHP really easy to use, and coded something up quickly for my site, Brooklyn and Beyond - Brooklyn & Beyond
This tool makes it really easy to get a quick look or dive in deep thanks to our partner Daylife, who built a comprehensive service that yields up-to-the-minute results - The Washington Post
I was trying to make it work by using Google News RSS feeds but turned out impossible since they don't organize their data in the feeds. I now know its possible with the Daylife API - Akash Xavier
It would help if you can give more information as to what you are trying to do. All articles returned by the API contain the article Id in a article_id tag. If you have an article URL, you can call article_getInfo (url) to get the Article ID. Trick is that the system will try to do an exact URL match, so it has to be the same URL that was published by the source in its RSS feed.
I have mailed you what i am trying to do but in addition of that i want to display article ,image and search functionality on my site provided by dayPI. User enter keyword and get article related that keyword.
Article ID
Nayan,
It would help if you can give more information as to what you are trying to do. All articles returned by the API contain the article Id in a article_id tag. If you have an article URL, you can call article_getInfo (url) to get the Article ID. Trick is that the system will try to do an exact URL match, so it has to be the same URL that was published by the source in its RSS feed.
-- Vineet
aricle id
Search articles and images
Nayan
You can use search_getRelatedArticles and search_getRelatedImages to get articles and images for providing a Search function on your site.
Remember to provide include_publication_images=1 in the search_getRelatedImages call to get back scraped images.
Vineet
Search articles and images
include_publication_images=1