View Full Version : Ruby and gdata

Sep 2, 2010, 09:03 PM
I am crafting a folder action that will keep my semester's files in sync with my google docs accounts. I am writing it in ruby and using the gdata gem as an exercise in my ruby skills. Getting listings of folders and files has not been a problem so far, but I am at a loss for how to craft the MIME Post for uploading a document. I know that I have to use some sort of request through my GData::Client object, but I don't know what to do. Google's docs on crafting a upload request are pretty clear at http://code.google.com/apis/documents/docs/3.0/developers_guide_protocol.html#UploadingDocs, but I don't know how to format that request in ruby or send it. Does anyone have any experience here? Know of any worthwhile documentation? The ruby gdata docs are here http://code.google.com/apis/documents/docs/3.0/developers_guide_protocol.html#UploadingDocs. Obviously they don't break down all of their objects and methods and leave a lot up to you to pour through their source to decipher.

Thanks in advance,

even pointing me in the direction of a healthy ruby scripting community (not rails, just ruby) would be an enormous help. I have no idea what to do or who to go to for help.