Skip to content
This repository was archived by the owner on Nov 17, 2021. It is now read-only.

rubiojr/Everton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Thin wrapper around Evernote Ruby API (https://github.com/cgs/evernote)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages