使用contentClass的Evernote只读注释

2024-06-16 14:49:59 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试使用contentClass属性在笔记本中创建只读笔记。在

我的代码如下:

我可以设置其他属性,但是只要我尝试设置contentClass,它就会在create note上抛出一个EDAM异常。(公司和应用程序名称已更改)

attrib = Types.NoteAttributes()
attrib.sourceApplication = 'Company_evernoteApp'
attrib.source = 'Company'
attrib.contentClass = 'Company.App'
new_note.attributes = attrib

这将引发错误:

^{pr2}$

稍后在代码中尝试调用:

new_note = note_store.createNote(new_note)

我使用contentClass对吗?在


Tags: 代码名称应用程序new属性create公司笔记本