From d5407a3c9af0002b2290d96da7593dee98dcb6c4 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 30 Dec 2015 18:10:24 -0800 Subject: 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. --- app/controllers/notes_controller.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app/controllers') 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 -- cgit v1.2.3