我正在使用 ruby-motion 在evernote-ios-sdk 之上构建一个应用程序。我可以创建标签和注释,但是当我尝试进行搜索时出现错误:domain=com.evernote.sdk, code=3 (EDAMErrorCode_PERMISSION_DENIED?)。这是权限问题还是代码问题?下面是我的带有和不带有 resultSpec 的代码。
note_store = EvernoteNoteStore.noteStore
filter = EDAMNoteFilter.alloc.initWithOrder 0, ascending:false, words:nil, notebookGuid:nil, tagGuids:nil, timeZone:nil, inactive:false, emphasized:nil
note_store.findNotesWithFilter filter, offset:0, maxNotes:10, success: notes_loaded, failure: output_error
spec = EDAMNotesMetadataResultSpec.alloc.initWithIncludeTitle false, includeContentLength:false, includeCreated:false, includeUpdated:false, includeUpdateSequenceNum:false, includeNotebookGuid:false, includeTagGuids:false, includeAttributes:false, includeLargestResourceMime:false, includeLargestResourceSize:false
note_store.findNotesMetadataWithFilter filter, offset:0, maxNotes:10, resultSpec:spec, success: notes_loaded, failure: output_error