saveNote(
'Test Note', // Title
'test,note', // Tags
'This is a test note.' // Description
);
/* Overwrite an existing note */
$simpy->saveNote(
'Updated Test Note', // Title
'test,note,updated', // Tags
'This is an updated test note.', // Description
$note->getId() // Unique identifier
);
/* Search for the 10 most recently added notes */
$noteSet = $simpy->getNotes(null, 10);
/* Display the notes */
foreach ($noteSet as $note) {
echo '';
echo $note->getTitle();
echo '
';
echo $note->getDescription();
echo '
';
echo $note->getTags();
echo '
';
}
/* Search for all notes with 'PHP' in the title */
$noteSet = $simpy->getNotes('title:PHP');
/* Search for all notes with 'PHP' in the title and
without 'framework' in the description */
$noteSet = $simpy->getNotes('+title:PHP -description:framework');
/* Delete a note */
$simpy->deleteNote($note->getId());
]]>