試圖在Python/Django中構建與Evernote API連接的應用程序。對於下面的代碼,我收到以下錯誤消息:「'Store'對象沒有來自http://dev.evernote.com/documentation/reference/NoteStore.html#Svc_NoteStore的'NoteFilter'」屬性可以看到,NoteFilter是NoteStore的屬性。Python evernote api錯誤
def list(request):
nbname="mihkel's notebook"
client = EvernoteClient(token=token, sandbox=False)
note_store = client.get_note_store()
notebooks = note_store.listNotebooks()
for nb in notebooks:
if nbname == nb.name:
nb = nb
filter = note_store.NoteFilter()
filter.notebookGuid = nb.guid
notelist = note_store.findNotes(token,filter,0,10)
break
return render_to_response('list.html', {'nb': nb, 'notelist':notelist})