【问题标题】:Evernote Python API Display Title of noteEvernote Python API 显示笔记标题
【发布时间】:2017-12-15 16:49:01
【问题描述】:

我已经设法让 Evernote Python API 工作并显示笔记(使用 getNoteContent(noteguid) 指令)。

但我只想显示笔记的标题(不是笔记本)。

被称为:

note.title = "Test note from EDAMTest.py"

使用 NoteStore.createNote(note)

创建笔记时

我尝试了一千种方法,但从未成功。在网上搜了一下,没有。

老实说,Eve​​rnote API 文档是蹩脚和过时的。

请问,有人知道怎么做吗?

现在,这就是我显示笔记内容的方式:

note = note_store.getNoteContent(noteguid)
notestr = ET.fromstring(note)
    for child in notestr:
    chose = check,' ',child.tail
    # that's the en-todo checklist type of note...

提前感谢您提供任何线索或答案!

【问题讨论】:

    标签: python api evernote


    【解决方案1】:

    getNoteContent 只返回笔记的内容。如果你使用getNote,它会返回包含笔记标题的Note对象。

    【讨论】:

    • 谢谢,但它说:已弃用。请参阅 getNoteWithResultSpec。而且我真的不知道如何让它工作
    • http://dev.evernote.com/doc/reference/NoteStore.html#Fn_NoteStore_getNoteWithResultSpec。如果需要笔记标题和内容,可以将 NoteResultspec.includeContent (dev.evernote.com/doc/reference/…) 设置为 true。
    猜你喜欢
    • 1970-01-01
    • 2017-10-31
    • 2011-09-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-04-13
    • 1970-01-01
    • 2017-05-19
    相关资源
    最近更新 更多