aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/notes_controller.rb
blob: bf7f5aba3899362066fae772f4a4931124611a15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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) }
  end
end