aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorTeddy Wing2015-12-30 18:10:24 -0800
committerTeddy Wing2015-12-30 18:10:24 -0800
commitd5407a3c9af0002b2290d96da7593dee98dcb6c4 (patch)
tree0dfe24b37a19b1841a29e10ee98d034eafd2b9a8 /app/controllers
parentbbca4f8cf04d8ca3bdde981a53d7d49f3ff5bec0 (diff)
downloadEvernote-Rails-Example-d5407a3c9af0002b2290d96da7593dee98dcb6c4.tar.bz2
Trying to get notes from notebooks
Want to be able to get all notes from a given Evernote notebook. But it's proving harder than I thought. Geez, the Evernote SDK is so obtuse. Going to look for a different way to do this. Refactored the `EvernoteService` a bit in the process.
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/notes_controller.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/notes_controller.rb b/app/controllers/notes_controller.rb
index a4391f6..bf7f5ab 100644
--- a/app/controllers/notes_controller.rb
+++ b/app/controllers/notes_controller.rb
@@ -4,8 +4,10 @@ class NotesController < ApplicationController
def index
auth_token = 'S=s1:U=91e2f:E=151f92661a2:C=151f4000220:P=185:A=evernotesandbox199:V=2:H=5777502290baf1ae1b36ad6254592258'
notestore_url = 'https://sandbox.evernote.com/shard/s1/notestore'
-
+
e = EvernoteService.new(auth_token, notestore_url)
@notebooks = e.notebooks
+
+ # @notes = @notebooks.collect { |b| e.notes_from_notebook(b) }
end
end