In recenty days I wrote a initial version of OCW. It can work now, although it’s raw.
How to start?
1. Install ruby
2. Get an account from openomy
3. Get the source of OCW and openomy-ruby
4. run OCW.rb and login, you have 3 methods to login
- write your own ocw.yml file, which include:
if u provied unconfirmedtoken in yml, it will login automatically without any prompts while login.
login -u. You can type your unconfirmedtoken after the prompt, which can let u change account easily.
login. If no unconfirmedtoken is specifed, you will get a url, and then copy it to a explorer to authorize it. A truely non-web app .
After logined, u can ls, tag, mktag, rmtag, get, put and so on, treat openomy as a local file system.
It’s my first ruby program. All suggestions are welcome.
The bug is known. It’s caused by Tags::AddFileToTag, ‘“fileID” => fileId’ is neglected which passing the parameters into get_request.