This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |