Skip to content

Instantly share code, notes, and snippets.

@sdqali
Created June 10, 2010 09:38
Show Gist options
  • Select an option

  • Save sdqali/432773 to your computer and use it in GitHub Desktop.

Select an option

Save sdqali/432773 to your computer and use it in GitHub Desktop.
require 'xmlrpc/client'
handler = XMLRPC::Client.new2('http://localhost/bugzilla3/xmlrpc.cgi')
user = handler.proxy("User")
user.login({'login' => 'mira@localhost.localdomain', 'password' => 'fgffty', 'remember' => 'true'})
bugs = handler.proxy("Bug")
puts bugs.get({'ids' => [1]})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment