[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pear-doc
Subject:    [PEAR-DOC] cvs: peardoc /en/package/webservices services-delicious.xml  /en/package/webservices/serv
From:       "Stephan Schmidt" <schst () php ! net>
Date:       2004-11-23 20:20:29
Message-ID: cvsschst1101241229 () cvsserver
[Download RAW message or body]

schst		Tue Nov 23 15:20:29 2004 EDT

  Added files:                 
    /peardoc/en/package/webservices	services-delicious.xml 
    /peardoc/en/package/webservices/services-delicious	example.xml 
                                                      	intro.xml 
  Log:
  initial documentation for Services_Delicious
  

http://cvs.php.net/co.php/peardoc/en/package/webservices/services-delicious.xml?r=1.1&p=1
                
Index: peardoc/en/package/webservices/services-delicious.xml
+++ peardoc/en/package/webservices/services-delicious.xml
<!-- $Revision: 1.1 $ -->
<sect1 id="package.webservices.services-delicious">
 <title>Services_Delicious</title>

 <para>
  Object-oriented abstraction for del.icio.us XML API.
 </para>
  &package.webservices.services-delicious.intro;
  &package.webservices.services-delicious.example;
</sect1>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=webservices fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->

http://cvs.php.net/co.php/peardoc/en/package/webservices/services-delicious/example.xml?r=1.1&p=1
                
Index: peardoc/en/package/webservices/services-delicious/example.xml
+++ peardoc/en/package/webservices/services-delicious/example.xml
<!-- $Revision: 1.1 $ -->
<refentry id="package.webservices.services-delicious.example">
   <refnamediv>
    <refname>Example</refname>
    <refpurpose>Basic examples of Services_Delicious</refpurpose>
  </refnamediv>
  <refsect1 id="package.webservices.services-delicious.example.refsect1">
   <title>Basic examples of Services_Delicious</title>
   <simpara>
    The following examples show how to use some basic features
    of Services_Delicious:
   </simpara>
  <example>
   <title>Fetching your recent posts</title>
   <programlisting role="php">
    <![CDATA[require_once 'Services/Delicious.php';
    
$dlc = &new Services_Delicious($username, $password);

$posts = $dlc->getRecentPosts();
echo '<pre>';
print_r($posts);
echo '</pre>';
]]>
   </programlisting>
  </example>

  <example>
   <title>Getting all tags that you used in your bookmarks</title>
   <programlisting role="php">
    <![CDATA[require_once 'Services/Delicious.php';
    
$dlc = &new Services_Delicious($username, $password);

$tags = $dlc->getTags();
echo '<pre>';
print_r($tags);
echo '</pre>';
]]>
   </programlisting>
  </example>

  <example>
   <title>Adding a new bookmark</title>
   <programlisting role="php">
    <![CDATA[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';
}
]]>
   </programlisting>
  </example>
 </refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=webservices fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->  


http://cvs.php.net/co.php/peardoc/en/package/webservices/services-delicious/intro.xml?r=1.1&p=1
                
Index: peardoc/en/package/webservices/services-delicious/intro.xml
+++ peardoc/en/package/webservices/services-delicious/intro.xml
<!-- $Revision: 1.1 $ -->
<refentry id="package.webservices.services-delicious.intro">
   <refnamediv>
    <refname>Introduction</refname>
    <refpurpose>Introduction to Services_Delicious</refpurpose>
  </refnamediv>
  <refsect1 id="package.webservices.services-delicious.intro.refsect1">
   <title>Introduction to Services_Delicious</title>
   <para>
    Services_Delicious is an abstraction for the webservice of
    the social bookmarking site <ulink url="&url.delicious;">del.icio.us</ulink>.
    del.icio.us allows you to easily add sites you like to your personal collection
    of links, to categorize those sites with keywords, and to share your collection
    not only between your own browsers and machines, but also with others.
   </para>
   <para>
    del.icio.us is using &quot;tags&quot; to categorize your bookmarks and allows \
other  users to browse bookmarks by topic.
   </para>
   <para>
    Services_Delicious enables you to access, add and even delete your social \
bookmarks by  using a <classname>Services_Delicious</classname> class that provides \
functions like  <function>getAllPosts</function>, <function>addPost</function> or \
<function>deletePost</function>.  </para>
  </refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=webservices fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->  

-- 
PEAR Documentation List Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic