Skip to content

Instantly share code, notes, and snippets.

@evernotegists
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evernotegists/a2deb347c58797711bd5 to your computer and use it in GitHub Desktop.
Save evernotegists/a2deb347c58797711bd5 to your computer and use it in GitHub Desktop.
note = Types.Note()
note.title = "I will soon have application data"
note.content = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
note.content += "<!DOCTYPE en-note SYSTEM \"http://xml.evernote.com/pub/enml2.dtd\">"
note.content += "<en-note>Content goes here</en-note>"
note = note_store.createNote(note)
# Now we have the note GUID and can add applicationData
dkey = "my-consumer-key" # the first part of your API key
dval = "I'm the value: an arbitrary string"
note_store.setNoteApplicationDataEntry(note.guid, dkey, dval)
note = note_store.updateNote(note)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment