Zend_Service_Delicious is a concrete implementation of the del.icio.us web service
category | Zend |
---|---|
package | Zend_Service |
subpackage | Delicious |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
__construct(string $uname= null
, string $pass= null
) : void
string
Client username
string
Client password
addBundle(string $bundle, array $tags) : \Zend_Service_Delicious
string
Name of new bundle
array
Array of tags
\Zend_Service_Delicious
Provides a fluent interfacecreateNewPost($title, $url) : \Zend_Service_Delicious_Post
\Zend_Service_Delicious_Post
deleteBundle(string $bundle) : \Zend_Service_Delicious
string
Name of bundle to be deleted
\Zend_Service_Delicious
Provides a fluent interfacedeletePost(string $url) : \Zend_Service_Delicious
string
URL of post to be deleted
\Zend_Service_Delicious
Provides a fluent interfacegetAllPosts(string $tag = null
) : \Zend_Service_Delicious_PostList
string
Optional filtering by tag
\Zend_Service_Delicious_PostList
getBundles() : array
array
list of bundlesgetDates(string $tag = null
) : array
Returns array where keys are dates and values are numbers of posts
string
Optional filtering by tag
array
list of datesgetLastUpdate() : \Zend_Date
\Zend_Service_Delicious_Exception |
---|
\Zend_Date
getPosts(string $tag= null
, \Zend_Date $dt= null
, string $url= null
) : \Zend_Service_Delicious_PostList
If no date or url is given, most recent date will be used
string
Optional filtering by tag
\Zend_Date
Optional filtering by date
string
Optional filtering by url
\Zend_Service_Delicious_Exception |
---|
\Zend_Service_Delicious_PostList
getRecentPosts(string $tag= null
, string $count= 15
) : \Zend_Service_Delicious_PostList
string
Optional filtering by tag
string
Maximum number of posts to be returned (default 15)
\Zend_Service_Delicious_PostList
getTags() : array
array
list of tagsgetUrlDetails(string $url) : array
Returned array contains four elements:
If URL hasen't been bookmarked null is returned.
string
URL for which to get details
array
getUserFans(string $user) : array
string
Owner of the fans
array
getUserNetwork(string $user) : array
string
Owner of the network
array
getUserPosts(string $user, integer $count= null
, string $tag= null
) : \Zend_Service_Delicious_PostList
string
Owner of the posts
integer
Number of posts (default 15, max. 100)
string
Optional filtering by tag
\Zend_Service_Delicious_PostList
getUserTags(string $user, integer $atleast= null
, integer $count= null
, string $sort= 'alpha'
) : array
Returned array has tags as keys and number of posts as values
string
Owner of the posts
integer
Include only tags for which there are at least ### number of posts
integer
Number of tags to get (default all)
string
Order of returned tags ('alpha' || 'count')
array
makeRequest(string $path, array $parms= array()
, string $type= 'xml'
) : mixed
string
Path
array
Array of GET parameters
string
Type of a request ("xml"|"json")
\Zend_Service_Delicious_Exception |
---|
mixed
decoded response from web servicerenameTag(string $old, string $new) : \Zend_Service_Delicious
string
Old tag name
string
New tag name
\Zend_Service_Delicious
Provides a fluent interfacesetAuth(string $uname, string $pass) : \Zend_Service_Delicious
string
Client user name
string
Client password
\Zend_Service_Delicious
Provides a fluent interface_evalXmlResult(\DOMDocument $response) : void
\DOMDocument
\Zend_Service_Delicious_Exception |
---|
_parseXmlPostList(\DOMDocument $response) : \Zend_Service_Delicious_PostList
\DOMDocument
\Zend_Service_Delicious_Exception |
---|
\Zend_Service_Delicious_PostList
_xmlResponseToArray(\DOMDocument $response, string $root, string $child, string $attKey, string $attValue) : array
\DOMDocument
string
Name of root tag
string
Name of children tags
string
Attribute of child tag to be used as a key
string
Attribute of child tag to be used as a value
\Zend_Service_Delicious_Exception |
---|
array
$_authPass : string
$_authUname : string
$_lastRequestTime : float
0
$_rest : \Zend_Service_Rest
API_URI = 'https://api.del.icio.us'
JSON_FANS = '/feeds/json/fans/%s'
JSON_NETWORK = '/feeds/json/network/%s'
JSON_POSTS = '/feeds/json/%s/%s'
JSON_TAGS = '/feeds/json/tags/%s'
JSON_URI = 'http://del.icio.us'
JSON_URL = '/feeds/json/url/data'
PATH_BUNDLES = '/v1/tags/bundles/all'
PATH_BUNDLE_ADD = '/v1/tags/bundles/set'
PATH_BUNDLE_DELETE = '/v1/tags/bundles/delete'
PATH_DATES = '/v1/posts/dates'
PATH_POSTS_ADD = '/v1/posts/add'
PATH_POSTS_ALL = '/v1/posts/all'
PATH_POSTS_GET = '/v1/posts/get'
PATH_POSTS_RECENT = '/v1/posts/recent'
PATH_POST_DELETE = '/v1/posts/delete'
PATH_TAGS = '/v1/tags/get'
PATH_TAG_RENAME = '/v1/tags/rename'
PATH_UPDATE = '/v1/posts/update'