deepblue / springnote_resources
- Source
- Commits
- Network (1)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Tree:
f20959b
Bryan Kang (author)
Tue May 06 05:47:27 -0700 2008
commit f20959b7bd5217a510847e8ffd850e926d8adcf6
tree 95411a547763266246f3a68bce3ef2518652256c
parent 021055e5c2246e6e8b323bcc87869e815065f7fb
tree 95411a547763266246f3a68bce3ef2518652256c
parent 021055e5c2246e6e8b323bcc87869e815065f7fb
| name | age | message | |
|---|---|---|---|
| |
History.txt | ||
| |
Manifest.txt | ||
| |
README.korean.txt | ||
| |
README.txt | ||
| |
Rakefile | ||
| |
Todo.txt | ||
| |
init.rb | ||
| |
lib/ | ||
| |
spec/ |
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.

