I've forked and added more functionality to the ebayapi gem

If you want to create multi-user eBay apps, you'll need the ebayapi trading API XML gem created by Cody Fauser to let you:

  1. Get a session id (the existing version does not conform to the correct GetSessionID, passing XMLRequesterCredentials node instead of the specified one that passes DevID, AppID and AuthCert.
  2. Pass an RuName for your app from the config

The existing gem doesn't support these, but I've added it today. I'll probably post again soon about how to set up multi-user tokens as mentioned here using the updated ebayapi gem.

Here's the updated ebayapi gem on github. To install it on your machine, you can run:

XML-Mapping gem has really lame permission bug

You may have this error when require ‘xml/mapping’ in your ruby script:

/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- xml/mapping (LoadError)

Solution: go to the gem directory of XML-Mapping (mine is /usr/lib/ruby/gems/1.8/gems/xml-mapping-0.8.1/lib/) and chmod all files in this directory to 644.

Who is to point finger at here ? Rubygem or XML-Mapping authors ?

For some reason the default install has them installed with root-only permissions. I love how this is a Priority 3 bug assigned to nobody, and it blocks the use of this gem entirely.

Here's the fix (on OS X anyway)

sudo chmod -R a+r /Library/Ruby/Gems/1.8/gems/xml-mapping-0.8.1

Here's the thread to complain on.