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