使用Evernote iOS sdk搜索笔记

时间:2013-04-06 14:37:07

标签: ios rubymotion evernote

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

1 个答案:

答案 0 :(得分:0)

创建API密钥时,您可能要求进行基本访问。您需要完全访问阅读笔记。更多信息here。您可以将其更改为完全访问权限here