2012-08-24 42 views
1

使用適用於iOS的Evernote API,我可以毫無問題地創建筆記本和新筆記。但是,一旦我試圖獲得在一定的筆記本電腦(其中我知道GUID)的註釋列表,我得到這個錯誤:適用於iOS的Evernote API:無法在本書中列出筆記

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

好吧,我剛剛找到了答案:我不能在API基本訪問的筆記本中列出筆記。我再次登記去了「完全訪問」。此外,我必須在沙盒環境中註冊一個新的測試用戶,並在我的應用中註冊該用戶,以便我的應用完全訪問沙盒用戶的筆記。現在一切都很好!

相關問題