我正在使用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