Services_Delicious
[ class tree: Services_Delicious ] [ index: Services_Delicious ] [ all elements ]

Class: Services_Delicious

Source Location: /Services_Delicious-0.2.0beta/Delicious.php

Class Overview


Services_Delicious


Author(s):

Version:

  • 0.1

Methods


Inherited Variables

Inherited Methods


Class Details

[line 55]
Services_Delicious

Client for the REST-based webservice at http://del.ico.us

del.icio.us is a site for social bookmarking, that means that you bookmark your favourite sites, assign them to one or more topics (tags) and other users are able to browse through the bookmarks.

Services_Delicious allows you to

  • get
  • add
  • delete
your bookmarks from PHP.



[ Top ]


Method Detail

Services_Delicious (Constructor)   [line 96]

Services_Delicious Services_Delicious( string $user, string $passwd)

Create a new client
  • Access: public

Parameters:

string   $user   —  username
string   $passwd   —  password

[ Top ]

addPost   [line 273]

boolean addPost( string|array $url, [string $description = null], [string $extended = null], [ $tags = null], [ $date = null])

Add a post
  • Access: public

Parameters:

string|array   $url   —  url or all data for the post
string   $description   —  description
string   $extended   —  extended description
   $tags   — 
   $date   — 

[ Top ]

deletePost   [line 313]

boolean deletePost( string|array $url, string 1, string 2)

Delete a post
  • Access: public

Parameters:

string   1   —  description
string   2   —  extended description
string|array   $url   —  url or all data for the post

[ Top ]

getAllPosts   [line 247]

array getAllPosts( string|array 0, string 1)

Get all posts
  • Access: public

Parameters:

string|array   0   —  one or more tags
string   1   —  date

[ Top ]

getDates   [line 166]

array getDates( )

Get all tags

This will return an associative array containing dates in the keys and their occurences in the values:

  1.  Array
  2.  (
  3.     [2004-11-01=> 1
  4.     [2004-11-02=> 2
  5. )

  • Access: public

[ Top ]

getPosts   [line 187]

array getPosts( [string|array $tags = array()], [string $date = null])

Get posts
  • Access: public

Parameters:

string|array   $tags   —  one or more tags
string   $date   —  date

[ Top ]

getRecentPosts   [line 218]

array getRecentPosts( [string|array $tags = array()], [integer $max = 15])

Get recent posts
  • Access: public

Parameters:

string|array   $tags   —  one or more tags
integer   $max   —  maximum amount

[ Top ]

getTags   [line 118]

array getTags( )

Get all tags

This will return an associative array containing tags in the keys and their occurences in the values:

  1.  Array
  2.  (
  3.     [pear=> 1
  4.     [php=> 2
  5. )

  • Access: public

[ Top ]

renameTag   [line 139]

boolean renameTag( string $old, string $new)

Rename a tag
  • Access: public

Parameters:

string   $old   —  old name
string   $new   —  new name

[ Top ]


Documentation generated on Mon, 11 Mar 2019 13:58:55 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.