如何为 getNoteWithResultSpec() 指定所有 guid?

How can I specify ALL guids for getNoteWithResultSpec()?

使用 Ruby 的 evernote api 新手。使用该示例尝试从笔记本中获取笔记列表。这个例子看起来很乱,所以我认为我的配置不正确。我不知道该放些什么来包含此页面的内容,http://dev.evernote.com/doc/reference/NoteStore.html#Fn_NoteStore_getNoteWithResultSpec

def note_store @note_store ||= client.note_store 结束

note_store.getNoteWtihResultSpec(auth_token, 真)

NoteStore.getNoteWithResultSpec 用于检索一个特定的注释。如果您需要查找属于某个笔记本的所有笔记,请使用 NoteStore.findNotesMetadata to find notes. In passed NoteFilter 结构您需要提供笔记本的 guid。

请注意,这意味着您需要执行与您拥有的笔记数量一样多的 NoteStore.getNoteWithResultSpec 次调用。一个更优雅的解决方案是同步您的笔记本:使用 NoteStore.getFilteredSyncChunk repeatedly to get note data in chunks. In SyncChunkFilter 结构指定您感兴趣的笔记本 guid 列表(可以只有一个)。

此外,如果您的目标是跟上笔记本中的变化,而不是使用 NoteStore.getFilteredSyncChunk 定期轮询新数据,您可以请求设置 webhook 以获得通知的变化。