Constructs a new Simpy (free) REST API Client
-
string
$username: Username for the Simpy user account
-
string
$password: Password for the Simpy user account
Deletes a given link.
void
deleteLink
(string $href)
-
string
$href: URL of the bookmark 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.
void
mergeTags
(string $fromTag1, string $fromTag2, string $toTag)
-
string
$fromTag1: First tag to merge.
-
string
$fromTag2: Second tag to merge.
-
string
$toTag: Tag to merge the two tags into.
Removes a tag.
void
removeTag
(string $tag)
-
string
$tag: Tag to be removed
Renames a tag.
void
renameTag
(string $fromTag, string $toTag)
-
string
$fromTag: Tag to be renamed
-
string
$toTag: New tag name
Saves a given link.
void
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 new note.
void
saveNote
(string $title, [mixed $tags = null], [string $description = 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)
Splits a single tag into two separate tags.
void
splitTag
(string $tag, string $toTag1, string $toTag2)
-
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)