previous導入 (Previous) (Next) Services_Ebaynext

View this page in Last updated: Sun, 21 Jun 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

例 – Services_Delicious の基本的な例

Services_Delicious の基本的な例

Services_Delicious の基本的な特徴をどうのように使用するか、その例を以下に示します。

Fetching your recent posts

<?php
require_once 'Services/Delicious.php';
    
$dlc = &new Services_Delicious($username$password);

$posts $dlc->getRecentPosts();
echo 
'<pre>';
print_r($posts);
echo 
'</pre>';
?>

あなたの使用するブックマークから全てのタグを取得します。

<?php
require_once 'Services/Delicious.php';
    
$dlc = &new Services_Delicious($username$password);

$tags $dlc->getTags();
echo 
'<pre>';
print_r($tags);
echo 
'</pre>';
?>

新しいブックマークを加えます。

<?php
require_once 'Services/Delicious.php';
    
$dlc = &new Services_Delicious($username$password);

$result $dlc->addPost('http://pear.php.net''PEAR''The PHP Extension and Application Repository''php');
if (
PEAR::isError($result)) {
  die(
$result->getMessage());
} else {
  echo 
'Success';
}
?>
previous導入 (Previous) (Next) Services_Ebaynext

Download Documentation Last updated: Sun, 21 Jun 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.