1

使用 Evernote API for iOS,我可以毫无问题地创建笔记本和新笔记。但是,一旦我尝试获取某个笔记本(我知道其中的 guid)中的笔记列表,我就会收到此错误:

2012-08-23 22:15:09.734 Meernotes[9900:c07] FN error: Error Domain=com.evernote.sdk Code=3 "The operation couldn’t be completed. (com.evernote.sdk error 3.)" UserInfo=0xa554c80 {parameter=authenticationToken}

所以看起来好像我的 authenticationToken 有问题。为了创建笔记本或笔记,我也需要经过身份验证,所以我不明白为什么在笔记本中列出笔记时我没有经过身份验证。这是我正在调用的代码:

EDAMNoteFilter *filter = [[EDAMNoteFilter alloc] initWithOrder:1 ascending:FALSE words:nil notebookGuid:guid tagGuids:nil timeZone:nil inactive:NO];
EvernoteNoteStore *noteStore = [EvernoteNoteStore noteStore];
[noteStore findNotesWithFilter:filter offset:0 maxNotes:[EDAMLimitsConstants EDAM_USER_NOTES_MAX] success:^(EDAMNoteList *list) {
    //
    NSLog(@"all notes in notebook: %@", list.notes);
} failure:^(NSError *error) {
    //
    NSLog(@"FN error: %@", error);
}];
4

1 回答 1

4

好的,我刚刚找到了答案:我无法在具有 API 基本访问权限的笔记本中列出笔记。我再次注册并选择了“完全访问权限”。此外,我必须在沙盒环境中注册一个新的测试用户并在我的应用程序中注册该用户,以使我的应用程序完全访问沙盒用户的笔记。现在一切都很好!

于 2012-08-24T15:28:06.943 回答