News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Zend Developer Zone:
Using the Digg API with PHP and PEAR
November 03, 2010 @ 08:42:26

On the Zend Developer Zone there's a recent article about using APIs, specifically on how to use the Digg API with the Services_Digg2 PEAR package.

A few weeks ago, a client asked me to add a feed of interesting news stories to his Web application. Naturally, my thoughts turned immediately to Digg, which invariably has something interesting to read and which also offers a Web service API [...] A little Googling, and I found the PEAR Services_Digg2 class, which exposes a neat little PHP interface to the Digg API. As you might imagine, with all these tools to hand, it didn't take long to quickly integrate a feed of Digg stories into the application.

He walks you through the installation of the package (a one command step) and a secondary package you'll need due to Digg's authentication, HTTP_OAuth. He includes a request and response example (returned in JSON) as well as several code examples for sample requests, searching, working with comments on posts, post comments, "digg" stories and follow other users.

0 comments voice your opinion now!
digg api pear package servicesdigg2 tutorial


blog comments powered by Disqus

Similar Posts

PEAR Blog: Request for ideas: New developer FAQ

PHPMaster.com: Automatic CSS3 Prefixer and Compressor

Travis Swicegood's Blog: PHPT_Ensure v0.1alpha and PHPT_Core v0.1.1alpha released

Stefan Mischook's Blog: Building Objects Video (Parts 1, 2 & 3)

Joshua Eichorn's Blog: Slides from azPHP presentation of PEAR: An Introduction


Community Events

Don't see your event here?
Let us know!


performance community laravel opinion library introduction php7 release application version testing series voicesoftheelephpant api example podcast extension interview framework symfony2

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework