Ruby to Gallery2 remote API

S

Sajal Kayan

Hello all,

I am a total noob at ruby and not a programmer by trade.

Gallery2 is an image hosting script made in php which has an API as
defined at : http://codex.gallery2.org/Gallery_Remote:Protocol

What I want to accomplish is to be able to upload images to my Gallery2
from the ruby script. The upload feature is just a small function of the
script.

the add-item is defined at
http://codex.gallery2.org/Gallery_Remote:Protocol#add-item

What would be the best way to go about it?
What functions to look at?

There is an existing ruby script which can do most of the stuff, its a
little confusing but im able to use its classes to get properties, album
details, etc, but it doesnt have "add-item"

The ruby script is available at http://www.mvmanila.com/PhotoMv/chkg2.rb

Any pointers what would i need to do to upload images?

The perl script at
http://freshmeat.net/redir/galleryadd/56556/url_tgz/galleryadd-2.30.tar.gz
allows uploading images, in fact currently im calling it from ruby using
the system command, but i need to customise some fields and the perl
code is unreadable :p

Would appereciate any help.

Thanks in Advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,139
Messages
2,570,807
Members
47,356
Latest member
Tommyhotly

Latest Threads

Top