Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Zend_Service_Delicious is a concrete implementation of the del.icio.us web service
API_URI = 'https://api.del.icio.us'
Details PATH_UPDATE = '/v1/posts/update'
Details PATH_TAGS = '/v1/tags/get'
Details PATH_TAG_RENAME = '/v1/tags/rename'
Details PATH_BUNDLES = '/v1/tags/bundles/all'
Details PATH_BUNDLE_DELETE = '/v1/tags/bundles/delete'
Details PATH_BUNDLE_ADD = '/v1/tags/bundles/set'
Details PATH_DATES = '/v1/posts/dates'
Details PATH_POST_DELETE = '/v1/posts/delete'
Details PATH_POSTS_GET = '/v1/posts/get'
Details PATH_POSTS_ALL = '/v1/posts/all'
Details PATH_POSTS_ADD = '/v1/posts/add'
Details PATH_POSTS_RECENT = '/v1/posts/recent'
Details JSON_URI = 'http://del.icio.us'
Details JSON_POSTS = '/feeds/json/%s/%s'
Details JSON_TAGS = '/feeds/json/tags/%s'
Details JSON_NETWORK = '/feeds/json/network/%s'
Details JSON_FANS = '/feeds/json/fans/%s'
Details JSON_URL = '/feeds/json/url/data'
Detailsstring $_authPass = ''Password
Detailsstring $_authUname = ''Username
Detailsfloat $_lastRequestTime = '0'Microtime of last request
DetailsZend_Service_Rest $_rest = ''Zend_Service_Rest instance
Details__construct(
string $uname
=
null, string $pass
=
null
)
:
voidConstructs a new del.icio.us Web Services Client
Details_evalXmlResult(
DOMDocument $response
)
:
voidEvaluates XML response
Details_parseXmlPostList(
DOMDocument $response
)
:
Zend_Service_Delicious_PostListConstructs Zend_Service_Delicious_PostList from XML response
Details_xmlResponseToArray(
DOMDocument $response, string $root, string $child, string $attKey, string $attValue
)
:
arrayTransform XML string to array
DetailsaddBundle(
string $bundle, array $tags
)
:
Zend_Service_DeliciousAdds a new bundle
DetailscreateNewPost(
$title, $url
)
:
Zend_Service_Delicious_PostCreate new post
DetailsdeleteBundle(
string $bundle
)
:
Zend_Service_DeliciousDelete a bundle
DetailsdeletePost(
string $url
)
:
Zend_Service_DeliciousDelete a post
DetailsgetAllPosts(
string $tag
=
null
)
:
Zend_Service_Delicious_PostListGet all posts
DetailsgetBundles(
)
:
arrayGet all bundles, returning an array with bundles as keys and array of tags as values
DetailsgetDates(
string $tag
=
null
)
:
arrayGet number of posts by date
Returns array where keys are dates and values are numbers of posts
DetailsgetLastUpdate(
)
:
Zend_DateGet time of the last update
DetailsgetPosts(
string $tag
=
null, Zend_Date $dt
=
null, string $url
=
null
)
:
Zend_Service_Delicious_PostListGet posts matching the arguments
If no date or url is given, most recent date will be used
DetailsgetRecentPosts(
string $tag
=
null, string $count
=
15
)
:
Zend_Service_Delicious_PostListGet recent posts
DetailsgetTags(
)
:
arrayGet all tags, returning an array with tags as keys and number of corresponding posts as values
DetailsgetUrlDetails(
string $url
)
:
arrayGet details on a particular bookmarked URL
Returned array contains four elements: - hash - md5 hash of URL - top_tags - array of tags and their respective usage counts - url - URL for which details were returned - total_posts - number of users that have bookmarked URL
If URL hasen't been bookmarked null is returned.
DetailsgetUserFans(
string $user
)
:
arrayGet fans of a user
DetailsgetUserNetwork(
string $user
)
:
arrayGet network of a user
DetailsgetUserPosts(
string $user, int $count
=
null, string $tag
=
null
)
:
Zend_Service_Delicious_PostListGet posts of a user
DetailsgetUserTags(
string $user, int $atleast
=
null, int $count
=
null, string $sort
=
alpha
)
:
arrayGet tags of a user
Returned array has tags as keys and number of posts as values
DetailsmakeRequest(
string $path, array $parms
=
array, string $type
=
xml
)
:
mixedHandles all GET requests to a web service
DetailsrenameTag(
string $old, string $new
)
:
Zend_Service_DeliciousRename a tag
DetailssetAuth(
string $uname, string $pass
)
:
Zend_Service_DeliciousSet client username and password
Details