contentClass 属性を使用して、ノートブックのメモを読み取り専用にしようとしています。
私のコードは以下の通りです:
他の属性を設定できますが、contentClass を設定しようとするとすぐに、メモの作成時に EDAM 例外がスローされます。(社名、アプリ名を変更しました)
attrib = Types.NoteAttributes()
attrib.sourceApplication = 'Company_evernoteApp'
attrib.source = 'Company'
attrib.contentClass = 'Company.App'
new_note.attributes = attrib
これはエラーをスローしています:
evernote.edam.error.ttypes.EDAMUserException: EDAMUserException(errorCode=2, parameter='NoteAttributes.contentClass')
後でコードで呼び出してみると、次のようになります。
new_note = note_store.createNote(new_note)
私は contentClass を正しく使用していますか?