deepblue / springnote_resources

ActiveResource wrapper library for Springnote.com's REST API

This URL has Read+Write access

README.txt
= Springnote Resources

* Homepage: http://myruby.net/pages/391111
* Author: Bryan Kang (http://myruby.net) and Changshin Lee (http://www.iasandcb.pe.kr)

== DESCRIPTIONS:

ActiveResource wrapper library for Springnote.com's REST API

== REQUIREMENTS:

* activesupport
* activeresource
* oauth
* ruby-hmac

== INSTALL:

* sudo gem install springnote_resources

== How to get keys

1. You need to register your application on Openmaru API Center and 
get the application key. Read http://dev.springnote.com/pages/438963 
for more details.

2. Now you need to get the user key for the application you registered.
Read http://dev.springnote.com/pages/438944 for more details.

3. You have user OpenID, user key, and application key. Configure SpringnoteResources 
with the information like following code:

Springnote::Base.configuration.set :app_key => '__ApplicationKey_Here__',
  :user_openid => 'http://user-open-id-url/',
  :user_key => '__UserKey_Here__'

== USAGE:

# Load a page
page = Springnote::Page.find(144)
puts page.source

# Update the page
page = Springnote::Page.find(144)
page.source = '<p>New Contents</p>'
page.save

# Create a new page
page = Springnote::Page.create :title => 'NewName', :source => 'NewContents'

# Destroy the page
Springnote::Page.find(144).destroy

== LICENSE:

(The MIT License)

Copyright (c) 2007 Bryan Kang and Changshin Lee

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.