Examples » Access Del.icio.us Web Service API

Posted June 15th, 2009 by admin

This is a very simple example HTTP scripting. It get the latest post on del.icio.us using Delicious API. Note that you put your username and password in 'old skool' way.

<?php
include 'phpWebHacks.php';

$h = new phpWebHacks;

/* username & password */
$user = 'myusername';
$pass = 'mypassword';

/* get the latest post
   note the 'old skool' placement of username & password */

$page = $h->get("https://$user:$pass@api.del.icio.us/v1/posts/get?");

/* echo the returned xml */
echo $page;
?>

See also:
Delicious API


« Prev
Sending Emails using GMail
Next »
Bulk Image Downloader

Leave a note

Name (required)
Email (will not be published) (required)
Website

Characters left = 1000
captcha
Enter the code above: