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.
string $_baseUri = 'http://simpy.com/simpy/api/rest/'
Base URI to which API methods and parameters will be appended
Zend_Http_Client $_http = ''
HTTP client for use in making web service calls
__construct(
string $username, string $password
)
:
void
Constructs a new Simpy (free) REST API Client
_makeRequest(
string $op, array $query
=
null
)
:
DOMDocument
Sends a request to the REST API service and does initial processing on the response.
deleteLink(
string $href
)
:
Zend_Service_Simpy
Deletes a given link.
deleteNote(
int $noteId
)
:
Zend_Service_Simpy
Deletes a given note.
getHttpClient(
)
:
Zend_Http_Client
Returns the HTTP client currently in use by this class for REST API calls, intended mainly for testing.
getLinks(
Zend_Service_Simpy_LinkQuery $q
=
null
)
:
Zend_Service_Simpy_LinkSet
Performs a query on existing links and returns the results or returns all links if no particular query is specified (which should be used sparingly to prevent overloading Simpy servers)
getNotes(
string $q
=
null, int $limit
=
null
)
:
Zend_Service_Simpy_NoteSet
Returns all notes in reverse chronological order by add date or by rank.
getTags(
int $limit
=
null
)
:
Zend_Service_Simpy_TagSet
Returns a list of all tags and their counts, ordered by count in decreasing order
getWatchlist(
int $watchlistId
)
:
Zend_Service_Simpy_Watchlist
Returns the meta-data for a given watchlist.
getWatchlists(
)
:
Zend_Service_Simpy_WatchlistSet
Return a list of watchlists and their meta-data, including the number of new links added to each watchlist since last login.
mergeTags(
string $fromTag1, string $fromTag2, string $toTag
)
:
Zend_Service_Simpy
Merges two tags into a new tag.
removeTag(
string $tag
)
:
Zend_Service_Simpy
Removes a tag.
renameTag(
string $fromTag, string $toTag
)
:
Zend_Service_Simpy
Renames a tag.
saveLink(
string $title, string $href, int $accessType, mixed $tags
=
null, string $urlNickname
=
null, string $note
=
null
)
:
Zend_Service_Simpy
Saves a given link.
saveNote(
string $title, mixed $tags
=
null, string $description
=
null, int $noteId
=
null
)
:
Zend_Service_Simpy
Saves a note.
splitTag(
string $tag, string $toTag1, string $toTag2
)
:
Zend_Service_Simpy
Splits a single tag into two separate tags.