aboutsummaryrefslogtreecommitdiffstats
path: root/app/services
AgeCommit message (Collapse)Author
2015-12-31Remote services/evernote.rbTeddy Wing
This file is no longer used now that we're leveraging the cgs/kipcole9 'evernote' gem (https://github.com/teddywing/evernote).
2015-12-30Include 'kipcole9/evernote' note_store.rb directlyTeddy Wing
Copy 'note_store.rb' from 'kipcole9/evernote' directly into my Evernote service file. I was getting a `LoadError` when trying to load the 'evernote' gem so to get moving quickly I'm just including the code directly in this app. We can figure out the issue with the gem later. Updating `NotesController` to interface with the 'evernote' gem classes and get notebooks using its API.
2015-12-30Trying to get notes from notebooksTeddy Wing
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.
2015-12-30NotesController#index: List Evernote notebook namesTeddy Wing
List the names of all Evernote notebooks. We create a new service to make it easier to query the Evernote Ruby SDK and get all notebooks from it. This code to list notebooks was copied from the Evernote Ruby SDK's sample EDAMTest.rb file (https://github.com/evernote/evernote-sdk-ruby/blob/master/sample/client/EDAMTest.rb#L52-L62). In our controller, we call this service to get our notebooks and pass those to the view where we display each notebook's name. Hard-coded the my Evernote Sandbox access token and NoteStore URL because I didn't save them in the OmniAuth OAuth process. Using these to query the Evernote API using the SDK. Note to self: I'll want to deactivate that Evernote Sandbox account before releasing this.