blob: 6b40ca3648ffc9d32ab1139e8e0425957a25ece3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
require_relative '../services/evernote'
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) }
access_token = auth_token
note_store = EvernoteService::NoteStore.new(notestore_url, access_token)
@notebooks = note_store.list_notebooks
end
end
|