(access-token {access-token :access-token})
(basic-notes-for-notebook
user
notebook-guid
&
{:keys [note-filter offset max-notes result-spec]
:or {note-filter (doto (NoteFilter.)
(.setNotebookGuid notebook-guid)
(.setOrder (.getValue NoteSortOrder/CREATED))
(.setAscending false))
offset 0
max-notes 100
result-spec (NotesMetadataResultSpec.)}})
Get basic notes (i.e. without content) for a notebook. Is basically just a call to NoteStore.findNotesMetadata with defaults, and those defaults are overridable using optional arguments.
Get basic notes (i.e. without content) for a notebook. Is basically just a call to NoteStore.findNotesMetadata with defaults, and those defaults are overridable using optional arguments.
(byte-to-hex b)
(bytes-to-hex bs)
(create-note-store notestore-url)
(create-note-store-with-developer-token service dev-token)
Only use if you're using a developer token, rather than OAuth, to authenticate. service should be a key from the clojurenote.users/services map. For more info about developer keys see http://dev.evernote.com/doc/articles/authentication.php#devtoken
Only use if you're using a developer token, rather than OAuth, to authenticate. service should be a key from the clojurenote.users/services map. For more info about developer keys see http://dev.evernote.com/doc/articles/authentication.php#devtoken
(create-notebook user notebook-name)
(delete-note user guid)
(entity->guid entity)
(find-notebook-by-guid user notebook-guid)
(find-notebook-by-name user notebook-name)
(find-notebook-by-predicate user pred)
(get-all-tags-for-notebook user notebook-guid)
(get-note user
guid
&
{:keys [with-content with-resources-data with-resources-recognition
with-resources-alternate-data]
:or {with-content true
with-resources-data false
with-resources-recognition false
with-resources-alternate-data false}})
Get note for user and GUID. By default retrieves content, but not other options (See NoteStore.getNote for details of options)
Get note for user and GUID. By default retrieves content, but not other options (See NoteStore.getNote for details of options)
(get-note-application-data-entry user application-key guid)
(list-notebooks user)
(note-store {:keys [notestore notestore-url]})
(note-thumbnail-url web-api-url-prefix note & options)
(resource->bean-with-body-hash-hex res)
Takes a Resource (as returned by Note.getResources) and:
Takes a Resource (as returned by Note.getResources) and: - converts it to a map with bean (non recursively - data, recognition and attributes are still in Java Object form) - sets :body-hash-hex to be the hexadecimal string of .getBodyHash (and which can then be matched to the hash in <en-media> tags) - prunes out unnecessary fields, plus the fields. This is typically useful when needing the resources hashes when translating <en-media> tags in the Note's content.
(resource-thumbnail-url web-api-url-prefix res & options)
Return the URL for the thumbnail of a given resource, as described at http://dev.evernote.com/doc/articles/thumbnails.php
Return the URL for the thumbnail of a given resource, as described at http://dev.evernote.com/doc/articles/thumbnails.php - web-api-url-prefix must the same as for clojurenote.notes/resource-url - res should be the resource object taken from the resources list of the original note. It can be the original java object, or a bean'ed version - options are named parameters as follows: - :img-format [one of jpg, gif, bmp, png] - :size size (recommended to be 75, 150 or 300)
(resource-url web-api-url-prefix res)
Returns the URL for downloading a resource, as described at http://dev.evernote.com/doc/articles/resources.php#downloading
Returns the URL for downloading a resource, as described at http://dev.evernote.com/doc/articles/resources.php#downloading - web-api-url-prefix must be the webApiUrlPrefix field of the user's PublicUserInfo. To get this do something like: (-> (clojurenote.users/get-public-user-info-for-username username) (.getWebApiUrlPrefix)) - res should be the resource object taken from the resources list of the original note. It can be the original java object, or a bean'ed version
(set-note-application-data-entry user
application-key
guid
application-data-entry)
(write-note user notebook-guid title content-document)
(write-note user notebook-guid title content-document date)
(write-note user notebook-guid title content-document date tag-names)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close