Project

everton

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Thin wrapper around evernote ruby api
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0.0
~> 1.5.2

Runtime

 Project Readme

Everton

Thin wrapper around Evernote ruby client library (https://github.com/cgs/evernote)

Installing

gem install everton

Usage

You'll need an Evernote API key to use this library. Get yourself a "Client application" API key from Evernote (http://www.evernote.com/about/developer/api/#key). For more info, see https://github.com/cgs/evernote/blob/master/README.mkd

require 'rubygems'
require 'everton'

config = {
  :username => 'myuser',
  :password => 'mypass',
  :consumer_key => 'key',
  :consumer_secret => 'secret',
  :user_store_url => 'http://sandbox.evernote.com/edam/user'
}

# Authenticate
Everton::Remote.authenticate config


# Iterate over all the netbooks and print the notebook name
Everton::Notebook.all.each do |n|
  puts n.name
end

# Get the first notebook
notebook = Everton::Notebook.all.first

# Get the notebook named 'bar'
bar_notebook = Everton::Notebook.find('bar')

# Add image to notebook 'bar'
bar_notebook.add_image 'note title', 'note content', '/home/rubiojr/Desktop/guns.jpg'

# Add a text note
bar_notebook.add_note 'note title', 'anothe note, only text'

Copyright

Copyright (c) 2011 Sergio Rubio. See LICENSE.txt for further details.