>>does the youtube-g gem handle the HTTP post for you (if so I'd like to >> know)?
Yes, there is an Upload method, which uses Json to send the post request over a secure channel.If the API is running on JSON, then you need to Have SSL to access it. I am adding this browse box, the next thing I need to check is embedding a flash player in a shoes window. Cheers Saurabh On Thu, Aug 6, 2009 at 5:07 AM, e deleflie <[email protected]> wrote: > yeah I might try that .... I found Mechanize caused SSL errors because > it imported SSL libraries, I guess there's a possibility that rest > client might do that too.... but I'll try it. thanks. > > Etienne > > On Thu, Aug 6, 2009 at 9:17 AM, Ehsanul Hoque<[email protected]> > wrote: > > You could use the rest_client library for http get/post/put/delete > requests: > > http://rest-client.heroku.com/rdoc/ > > > >> Subject: Re: Browse Box > >> From: [email protected] > >> To: [email protected] > >> Date: Thu, 6 Aug 2009 08:40:14 +1000 > >> > >> I have an app that does a similar thing, posts files to the internet. > >> > >> does the youtube-g gem handle the HTTP post for you (if so I'd like to > >> know)? I ask because shoes' 'download' method (which can do posts) is > >> broken on OSX raisins > >> (setting headers doesnt work), but works on Windows. You can use > >> net::http (if you handle the GUI threading yourself) but that only > >> works on OSX (domain names dont resolve on windows). > >> > >> you cannot use Mechanize because importing Mechanize causes SSL errors. > >> > >> ... and the ask_open_file method is broken on OSX raisins, it returns > >> a nill object. Since there's no copy paste functionality, your users > >> wont be able to copy paste a local file path into your app... they'll > >> have to type it in manually. > >> > >> I dont mean to be negative :) .... its just that this is exactly what > >> I am doing and I can tell you all the issues you will come across. If > >> the youtube-g gem handles the HTTP post for you, you might be OK. > >> > >> otherwise, sit tight (but hopefully not too tight) ... I have logged > >> all these bugs and, fingers crossed, _why will get to them soon. > >> > >> my advice to you, if you want cross-platform compatibility, is to > >> package your app and test on all platforms regularly. > >> > >> Etienne > >> > >> On Thu, Aug 6, 2009 at 4:51 AM, Saurabh > >> Bhatia<[email protected]> wrote: > >> > Hi Guys, > >> > > >> > I am making a shoes app called Shoetube, which uploads videos to > YouTube > >> > from the shoe app. > >> > > >> > I have got the api working using the youtube-g gem, but not able to > add > >> > a > >> > browse button to browse the file and send > >> > > >> > a post request to YouTube > >> > > >> > -- > >> > Best Regards > >> > > >> > Saurabh Bhatia > >> > www.safewlabs.com > >> > > >> > > >> > > > > > ________________________________ > > Get your vacation photos on your phone! Click here. > -- Best Regards Saurabh Bhatia www.safewlabs.com
