evernote api crud操作

时间:2014-04-28 12:19:04

标签: api permissions evernote endpoints

我正在开发一个Web项目来实现一些端点来为用户启用CRUD操作,我已经有了流量工作,我能够在我的沙箱帐户中列出笔记本但我只能从笔记本中列出笔记我选择公开分享,这是一些api密钥许可相关的问题,还是我在这里遗漏了一些东西,或者这应该发生?任何帮助深表感谢。我正在粘贴下面的错误

  

/Users/mac/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/evernote-thrift-1.25.1/lib/Evernote/EDAM/note_store.rb:486:in recv_findNotesMetadata' /Users/mac/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/evernote-thrift-1.25.1/lib/Evernote/EDAM/note_store.rb:476:in findNotesMetadata”   /Users/mac/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/evernote_oauth-0.2.3/lib/evernote_oauth/thrift_client_delegation.rb:16:in method_missing' /Users/mac/Documents/rails/ms-core/app/api/secm.rb:1158:in块( 3个级别)'   /Users/mac/Documents/rails/ms-core/app/api/secm.rb:1149:in each' /Users/mac/Documents/rails/ms-core/app/api/secm.rb:1149:in块(2级)in'   /Users/mac/Documents/rails/ms-core/app/api/helpers.rb:378:in`report_elegant_errors'

用于从笔记本中抓取笔记的代码是

  note_store ||= client.note_store
    notebooks ||= note_store.listNotebooks(token[:oauth_token])
    note_filter = Evernote::EDAM::NoteStore::NoteFilter.new
    notesMetadataResultSpec = Evernote::EDAM::NoteStore::NotesMetadataResultSpec.new        
    notebook_details = Array.new()
    notebookArray = Array.new()        
    notesMetadataResultSpec.includeTitle = true
    notebooks.each do |notebook|          
      note_filter.notebookGuid = notebook.guid
      notes_metadata = note_store.findNotesMetadata(token[:oauth_token],note_filter,0,10,notesMetadataResultSpec)          
      validnotes = notes_metadata.notes          
      validnotes.each do |note| 
        notebook_details << Array('noteTitle' => note.title, 'noteGuid'=>note.guid)
      end
    end

提前致谢。

1 个答案:

答案 0 :(得分:0)

Evernote API密钥有两个权限级别。 http://dev.evernote.com/doc/articles/permissions.php

如果是这种情况,您可以要求开发支持提升到完全访问权限。 http://dev.evernote.com/support/faq.php#getsupport

否则,请提供更多详细信息,例如您遇到的错误,代码段等。