使用 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);
}];