So the old remote interface is deprecated. I'm sorry, I'll update the
readme this week, I promise.
Anyway, the new interface is Hydra and Reqeust. Using those two your
code would look like this:
hydra = Typhoeus::Hydra.new
hydra.disable_memoization
request = Typhoeus::Request.new("
http://twitter.com/saved_searches/create.json",
:method => :post, :params => {:query => search_query}, :headers =>
{"Authorization" => "Basic #{Base64.b64encode(TWITTER_USERNAME + ":" +
TWITTER_PASSWORD)}"}
request.on_complete do |response|
JSON.parse(response.body)
end
hydra.queue request
hydra.run
Although, I'm not sure why the other method wouldn't work. It should.
Have you tried running it against a local server and seeing what the
POST params are?
I think this example also highlights an additional API need. To be
able to send single requests easily.
Anyway, let me know if that works for you.
Paul