我正在尝试使用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对吗?在
用法似乎不错。 errorCode=2表示contentClass的格式错误。在
它必须遵循的正则表达式是here。在
相关问题 更多 >
编程相关推荐