2013-07-03 6 views
0

contentClass 속성을 사용하여 읽기 전용으로 노트를 작성하려고합니다.contentClass를 사용하는 Evernote 읽기 전용 노트

내 코드는 다음과 같습니다 :

내가 다른 속성을 설정할 수 있지만 최대한 빨리 시도하고 contentClass 설정으로,이 메모를 생성에 에담 예외가 발생합니다. 내가 사용하고

new_note = note_store.createNote(new_note) 

을 : 나는 시도하고 호출 할 때 코드에서 나중에

evernote.edam.error.ttypes.EDAMUserException: EDAMUserException(errorCode=2, parameter='NoteAttributes.contentClass') 

:

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

이 오류를 던지고있다 (회사와 응용 프로그램 이름이 변경되었습니다) contentClass 맞지?

답변

1

사용량이 양호한 것 같습니다. errorCode = 2는 contentClass의 형식이 잘못되었음을 의미합니다.

따라야하는 정규식은 here입니다.

+0

그래, 내 형식은 꺼져있었습니다. 감사! – tknickman