Liking cljdoc? Tell your friends :D

clojurenote.notes


access-tokenclj

(access-token {access-token :access-token})

basic-notes-for-notebookclj

(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.
raw docstring

byte-to-hexclj

(byte-to-hex b)

bytes-to-hexclj

(bytes-to-hex bs)

create-note-storeclj

(create-note-store notestore-url)

create-note-store-with-developer-tokenclj

(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
raw docstring

create-notebookclj

(create-notebook user notebook-name)

delete-noteclj

(delete-note user guid)

entity->guidclj

(entity->guid entity)

find-notebook-by-guidclj

(find-notebook-by-guid user notebook-guid)

find-notebook-by-nameclj

(find-notebook-by-name user notebook-name)

find-notebook-by-predicateclj

(find-notebook-by-predicate user pred)

get-all-tags-for-notebookclj

(get-all-tags-for-notebook user notebook-guid)

get-noteclj

(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)
raw docstring

get-note-application-data-entryclj

(get-note-application-data-entry user application-key guid)

list-notebooksclj

(list-notebooks user)

note-storeclj

(note-store {:keys [notestore notestore-url]})

note-thumbnail-urlclj

(note-thumbnail-url web-api-url-prefix note & options)

resource->bean-with-body-hash-hexclj

(resource->bean-with-body-hash-hex res)

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.
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.
raw docstring

resource-thumbnail-urlclj

(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

  • 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)
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)
raw docstring

resource-urlclj

(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

  • 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
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
raw docstring

set-note-application-data-entryclj

(set-note-application-data-entry user
                                 application-key
                                 guid
                                 application-data-entry)

write-noteclj

(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