Constructs a new Simpy (free) REST API Client
void
__construct
(string $username, string $password)
-
string
$username: Username for the Simpy user account
-
string
$password: Password for the Simpy user account
Deletes a given link.
-
string
$href: URL of the bookmark to delete
Deletes a given note.
-
int
$noteId: ID of the note to delete
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)
Returns all notes in reverse chronological order by add date or by rank.
-
string
$q: Query string formatted using Simpy search syntax and search fields (optional)
-
int
$limit: Limits the number notes returned (optional)
Returns a list of all tags and their counts, ordered by count in decreasing order
-
int
$limit: Limits the number of tags returned (optional)
Returns the meta-data for a given watchlist.
-
int
$watchlistId: ID of the watchlist to retrieve
Return a list of watchlists and their meta-data, including the number of new links added to each watchlist since last login.
Merges two tags into a new tag.
-
string
$fromTag1: First tag to merge.
-
string
$fromTag2: Second tag to merge.
-
string
$toTag: Tag to merge the two tags into.
Removes a tag.
-
string
$tag: Tag to be removed
Renames a tag.
-
string
$fromTag: Tag to be renamed
-
string
$toTag: New tag name
Saves a given link.
Zend_Service_Simpy
saveLink
(
string $title,
string $href,
int $accessType, [
mixed $tags =
null], [
string $urlNickname =
null], [
string $note =
null])
-
string
$title: Title of the page to save
-
string
$href: URL of the page to save
-
int
$accessType: ACCESSTYPE_PUBLIC or ACCESSTYPE_PRIVATE
-
mixed
$tags: String containing a comma-separated list of tags or array of strings containing tags (optional)
-
string
$urlNickname: Alternative custom title (optional)
-
string
$note: Free text note (optional)
Saves a note.
Zend_Service_Simpy
saveNote
(
string $title, [
mixed $tags =
null], [
string $description =
null], [
int $noteId =
null])
-
string
$title: Title of the note
-
mixed
$tags: String containing a comma-separated list of tags or array of strings containing tags (optional)
-
string
$description: Free-text note (optional)
-
int
$noteId: Unique identifier for an existing note to update (optional)
Splits a single tag into two separate tags.
-
string
$tag: Tag to split
-
string
$toTag1: First tag to split into
-
string
$toTag2: Second tag to split into
Sends a request to the REST API service and does initial processing on the response.
DOMDocument
_makeRequest
(string $op, [string|array $query = null])
-
string
$op: Name of the operation for the request
-
string|array
$query: Query data for the request (optional)