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

Class: Services_Delicious

Source Location: /Services_Delicious-0.5.0/Delicious.php

Class Overview


Services_Delicious


Author(s):

Version:

  • 0.5

Methods


Inherited Variables

Inherited Methods


Class Details

[line 56]
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 105]

Services_Delicious Services_Delicious( string $user, string $passwd)

Create a new client
  • Access: public

Parameters:

string   $user   —  username
string   $passwd   —  password

[ Top ]

addPost   [line 284]

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

Add a post
  • Access: public

Parameters:

string|array   $url   —  url or all data for the post
string   $description   —  description
string   $extended   —  extended description
string   $tags   —  tags for the items
string   $date   —  datestamp
string   $shared   —  make the item private if "$shared = 'no'"

[ Top ]

deletePost   [line 325]

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 256]

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 175]

array getDates( )

Get all dates on which posts have been added.

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 196]

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 227]

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 127]

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 148]

boolean renameTag( string $old, string $new)

Rename a tag
  • Access: public

Parameters:

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

[ Top ]


Documentation generated on Thu, 10 Dec 2015 05:40:51 +0000 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.