PhpRiot
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

Introduction

Zend_Service_Delicious is simple API for using del.icio.us XML and JSON web services. This component gives you read-write access to posts at del.icio.us if you provide credentials. It also allows read-only access to public data of all users.

Example 786. Get all posts

<?php
$delicious 
= new Zend_Service_Delicious('username''password');
$posts $delicious->getAllPosts();

foreach (
$posts as $post) {
    echo 
"--\n";
    echo 
"Title: {$post->getTitle()}\n";
    echo 
"Url: {$post->getUrl()}\n";
}

Zend Framework