Created
March 23, 2012 21:23
-
-
Save rodrigomanhaes/2175219 to your computer and use it in GitHub Desktop.
How to use nsicloudooo gem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'nsicloudooo' | |
require 'base64' | |
oo = NSICloudooo::Client.new 'http://user:password@host:port' | |
filename = '/home/rodrigo/manual.odt' | |
f = File.open(filename) | |
doc = Base64.encode64(f.read) | |
response = oo.granulate(file: doc, filename: 'manual.odt') | |
key = response['key'] | |
oo.done(key) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment