Rails 2 style plugin that acts as wrapper for Ebay trading API
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.gitignore
MIT-LICENSE
README
Rakefile
init.rb
install.rb
uninstall.rb

README

TradingApi
=========

A basic wrapper for ebay Trading API. Since the Trading API is such a big beast modules/classes should be added to cover the wanted area of functionality. The GetItem class is included as an example of usage.

Example
=======

item = TradingApi::GetItem.new('1231231')
puts item.url

Extend
======

Let's add the GeteBayOfficialTimeRequest API call:

module TradingApi
  class GeteBayOfficialTimeRequest < CallName
    def custom_xml
      nil
    end
    
    def timestamp
      xml_response.at('Timestamp').text
    end
  end
end

time = TradingApi::GeteBayOfficialTimeRequest.new
time.timestamp

Copyright (c) 2010 Andrea Longhi, released under the MIT license