Examples » Access Del.icio.us Web Service API
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;
?>
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