Skip to content

Instantly share code, notes, and snippets.

@evernotegists
Created April 4, 2013 20:14
Show Gist options
  • Save evernotegists/5313966 to your computer and use it in GitHub Desktop.
Save evernotegists/5313966 to your computer and use it in GitHub Desktop.
def total_note_count
filter = Evernote::EDAM::NoteStore::NoteFilter.new
counts = note_store.findNoteCounts(auth_token, filter, false)
notebooks.inject(0) do |total_count, notebook|
total_count + (counts.notebookCounts[notebook.guid] || 0)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment