Skip to content

Instantly share code, notes, and snippets.

@julen
julen / main.py
Last active July 24, 2017 13:14 — forked from evernotegists/main.py
from evernote.edam.type import ttypes
def makeNote(authToken, noteStore, noteTitle, noteBody, parentNotebook=None):
nBody = '<?xml version="1.0" encoding="UTF-8"?>'
nBody += '<!DOCTYPE en-note SYSTEM "http://xml.evernote.com/pub/enml2.dtd">'
nBody += '<en-note>%s</en-note>' % noteBody
## Create note object
ourNote = ttypes.Note()