codyfauser / ebay Goto Github PK
View Code? Open in Web Editor NEWRuby interface to the eBay XML Trading API
Home Page: http://ebayapi.rubyforge.org/
License: MIT License
Ruby interface to the eBay XML Trading API
Home Page: http://ebayapi.rubyforge.org/
License: MIT License
ebay.get_category_specifics(:category_id => "3629",:category_specifics => [])
I got an empty array. :( I take around 2 weeks to find solutions, but it's not solved yet.
I need help please
kewin@office~/ebay_project/ebay/examples>ruby -v
ruby 1.9.2p180 (2011-02-18 revision 30909) [i686-linux]
kewin@office~/ebay_project/ebay/examples>ruby get_ebay_time.rb
No XML "RequestPassword" or "RequestToken" was found in XML Request.
kewin@office~/ebay_project/ebay/examples>rvm use system
Now using system ruby.
kewin@office~/ebay_project/ebay/examples>ruby get_ebay_time.rb
The returned class is: Ebay::Responses::GeteBayOfficialTime
The current eBay time is: Tue Aug 23 07:58:15 UTC 2011
kewin@office~/ebay_project/ebay/examples>
For example i when i do:
item = Ebay::Types::Item.new(
:item_id => ARGV.first,
:description => 'Revised Body'
)
i got:
ArgumentError: wrong number of arguments (1 for 0)
from /usr/lib/ruby/gems/1.8/gems/xml-mapping-0.9.1/lib/xml/../xml/mapping/base.rb:170:in initialize' from /usr/lib/ruby/gems/1.8/gems/xml-mapping-0.9.1/lib/xml/../xml/mapping/base.rb:170:in
initialize'
from /usr/lib/ruby/gems/1.8/gems/ebayapi-0.12.0/lib/ebay/initializer.rb:4:in initialize' from (irb):3:in
new'
from (irb):3
ebay = Ebay::Api.new(:site_id => 3) cats = ebay.get_categories pp cats
Gives:
Ebay::Responses::GetCategories:0xb736bcb4 @ack="Success", @bot_block=nil, @build="E643_INTL_BUNDLED_10296971_R1", @categories=[], @category_count=nil, @category_version="83", @correlation_id=nil, @duplicate_invocation_details=nil, @eias_token=nil, @errors=[], @external_user_data=nil, @hard_expiration_warning=nil, @message=nil, @minimum_reserve_price=50.0, @notification_event_name=nil, @notification_signature=nil, @recipient_user_id=nil, @reduce_reserve_allowed=nil, @reserve_price_allowed=true, @timestamp=Thu Dec 03 16:35:36 UTC 2009, @update_time=Mon Jun 15 14:51:45 UTC 2009, @version="643"
Seems to return an empty category list ?
It seems that there is a conflict between rails 2.3 and money 1.7.1.
Why ebay gem is only compatible with money 1.7.1 ?
Thanks.
Hey Cody,
Just wondering if you were planning to support ruby 1.9.x and the latest version of money or if you know anyone who is....
I need it for a rails 3 project running ruby 1.9.2 and the latest version of money. And am about to fork and do it myself but just wanted to check if you working on it at the moment?
Cheers,
Dave
Hi i'm pretty new to ruby but I tried using the gem and after fixing the xml-mapping issue was running into this error in trying to run official_time.rb
C:/Ruby192/lib/ruby/gems/1.9.1/gems/ebayapi-0.12.0/lib/ebay/request/connection.r
b:60:in http': undefined method
use_ssl' for #<Net::HTTP api.sandbox.ebay.com:
443 open=false> (NoMethodError)
I went into the connection.rb and commented out the 'if http.use_ssl' part on line 59 and it works now. Just thought I'd add this.
Hi,
I am trying to run add_item.rb. I have already installed config 0.0.1. But when I execute the add_item.rb, I am getting following error:
/home/subhash/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:53:in require': cannot load such file -- config (LoadError) from /home/subhash/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:53:in
require'
from add_item.rb:6:in `
I am new to ruby and may have missed something. Please help me resolve the issue.
Thanks
kewin@office~/ebay_project/ebay/examples>ruby add_item.rb
/usr/local/lib/ruby/1.8/rexml/text.rb:292:in normalize': private method
gsub' called for #Money::Currency:0xb77b00e0 (NoMethodError)
from /usr/local/lib/ruby/1.8/rexml/element.rb:1085:in []=' from /usr/local/lib/ruby/gems/1.8/gems/xml-mapping-0.8.1/lib/xml/../xml/xxpath.rb:257:in
_textis_orig'
from (eval):15:in text=' from ./../lib/support/xml_mapping/money_node.rb:20:in
set_attr_value'
from /usr/local/lib/ruby/gems/1.8/gems/xml-mapping-0.8.1/lib/xml/../xml/mapping/base.rb:377:in obj_to_xml' from /usr/local/lib/ruby/gems/1.8/gems/xml-mapping-0.8.1/lib/xml/../xml/mapping/base.rb:157:in
fill_into_xml'
from /usr/local/lib/ruby/gems/1.8/gems/xml-mapping-0.8.1/lib/xml/../xml/mapping/base.rb:156:in each' from /usr/local/lib/ruby/gems/1.8/gems/xml-mapping-0.8.1/lib/xml/../xml/mapping/base.rb:156:in
fill_into_xml'
from /usr/local/lib/ruby/gems/1.8/gems/xml-mapping-0.8.1/lib/xml/../xml/mapping/standard_nodes.rb:96:in initialize_impl' from /usr/local/lib/ruby/gems/1.8/gems/xml-mapping-0.8.1/lib/xml/../xml/mapping/standard_nodes.rb:266:in
call'
from /usr/local/lib/ruby/gems/1.8/gems/xml-mapping-0.8.1/lib/xml/../xml/mapping/standard_nodes.rb:266:in set_attr_value' from /usr/local/lib/ruby/gems/1.8/gems/xml-mapping-0.8.1/lib/xml/../xml/mapping/standard_nodes.rb:265:in
each'
from /usr/local/lib/ruby/gems/1.8/gems/xml-mapping-0.8.1/lib/xml/../xml/mapping/standard_nodes.rb:265:in set_attr_value' from /usr/local/lib/ruby/gems/1.8/gems/xml-mapping-0.8.1/lib/xml/../xml/mapping/base.rb:377:in
obj_to_xml'
from /usr/local/lib/ruby/gems/1.8/gems/xml-mapping-0.8.1/lib/xml/../xml/mapping/base.rb:157:in fill_into_xml' from /usr/local/lib/ruby/gems/1.8/gems/xml-mapping-0.8.1/lib/xml/../xml/mapping/base.rb:156:in
each'
from /usr/local/lib/ruby/gems/1.8/gems/xml-mapping-0.8.1/lib/xml/../xml/mapping/base.rb:156:in fill_into_xml' from /usr/local/lib/ruby/gems/1.8/gems/xml-mapping-0.8.1/lib/xml/../xml/mapping/standard_nodes.rb:96:in
initialize_impl'
from /usr/local/lib/ruby/gems/1.8/gems/xml-mapping-0.8.1/lib/xml/../xml/mapping/standard_nodes.rb:151:in call' from /usr/local/lib/ruby/gems/1.8/gems/xml-mapping-0.8.1/lib/xml/../xml/mapping/standard_nodes.rb:151:in
set_attr_value'
from /usr/local/lib/ruby/gems/1.8/gems/xml-mapping-0.8.1/lib/xml/../xml/mapping/base.rb:377:in obj_to_xml' from /usr/local/lib/ruby/gems/1.8/gems/xml-mapping-0.8.1/lib/xml/../xml/mapping/base.rb:157:in
fill_into_xml'
from /usr/local/lib/ruby/gems/1.8/gems/xml-mapping-0.8.1/lib/xml/../xml/mapping/base.rb:156:in each' from /usr/local/lib/ruby/gems/1.8/gems/xml-mapping-0.8.1/lib/xml/../xml/mapping/base.rb:156:in
fill_into_xml'
from /usr/local/lib/ruby/gems/1.8/gems/xml-mapping-0.8.1/lib/xml/../xml/mapping/standard_nodes.rb:96:in initialize_impl' from /usr/local/lib/ruby/gems/1.8/gems/xml-mapping-0.8.1/lib/xml/../xml/mapping/standard_nodes.rb:151:in
call'
from /usr/local/lib/ruby/gems/1.8/gems/xml-mapping-0.8.1/lib/xml/../xml/mapping/standard_nodes.rb:151:in set_attr_value' from /usr/local/lib/ruby/gems/1.8/gems/xml-mapping-0.8.1/lib/xml/../xml/mapping/base.rb:377:in
obj_to_xml'
from /usr/local/lib/ruby/gems/1.8/gems/xml-mapping-0.8.1/lib/xml/../xml/mapping/base.rb:157:in fill_into_xml' from /usr/local/lib/ruby/gems/1.8/gems/xml-mapping-0.8.1/lib/xml/../xml/mapping/base.rb:156:in
each'
from /usr/local/lib/ruby/gems/1.8/gems/xml-mapping-0.8.1/lib/xml/../xml/mapping/base.rb:156:in fill_into_xml' from /usr/local/lib/ruby/gems/1.8/gems/xml-mapping-0.8.1/lib/xml/../xml/mapping/base.rb:168:in
save_to_xml'
from ./../lib/ebay/api.rb:154:in build_body' from ./../lib/ebay/api.rb:130:in
invoke'
from ./../lib/ebay/api.rb:125:in commit' from ./../lib/ebay/api_methods.rb:34:in
add_item'
from add_item.rb:72
Hi, I installed yesterday the ebayapi gem, but I couldn't have it working because I had some problems with the gem xml-mapping. xml-mapping was version 0.9.1, after uninstalling it and installing the version 0.8.1 I could have it working
There is no gemspec on the github page so when you install the gem using bundler gem 'ebayapi', :git => 'http://github.com/codyfauser/ebay.git' you get an error
/var/lib/gems/1.8/gems/xml-mapping-0.9.1/lib/xml/../xml/xxpath.rb:45:in initialize': XPath (/ConvertedMaxBid/): unknown axis: ConvertedMaxBid (XML::XXPathError) from /var/lib/gems/1.8/gems/xml-mapping-0.9.1/lib/xml/../xml/xxpath.rb:32:in
each'
from /var/lib/gems/1.8/gems/xml-mapping-0.9.1/lib/xml/../xml/xxpath.rb:32:in initialize' from /ebay/lib/support/xml_mapping/money_node.rb:6:in
new'
from /ebay/lib/support/xml_mapping/money_node.rb:6:in initialize_impl' from /var/lib/gems/1.8/gems/xml-mapping-0.9.1/lib/xml/../xml/mapping/base.rb:641:in
initialize'
from (eval):2:in new' from (eval):2:in
money_node'
from /ebay/lib/ebay/types/bidding_details.rb:15
from /var/lib/gems/1.8/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in require' from /var/lib/gems/1.8/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in
require'
from /var/lib/gems/1.8/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:225:in load_dependency' from /var/lib/gems/1.8/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:591:in
new_constants_in'
from /var/lib/gems/1.8/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:225:in load_dependency' from /var/lib/gems/1.8/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in
require'
from /ebay/lib/ebay/types/item.rb:5
from /var/lib/gems/1.8/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in require' from /var/lib/gems/1.8/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in
require'
from /var/lib/gems/1.8/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:225:in load_dependency' from /var/lib/gems/1.8/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:591:in
new_constants_in'
from /var/lib/gems/1.8/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:225:in load_dependency' from /var/lib/gems/1.8/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in
require'
from /ebay/lib/ebay/requests/add_fixed_price_item.rb:1
from /var/lib/gems/1.8/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in require' from /var/lib/gems/1.8/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in
require'
from /var/lib/gems/1.8/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:225:in load_dependency' from /var/lib/gems/1.8/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:591:in
new_constants_in'
from /var/lib/gems/1.8/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:225:in load_dependency' from /var/lib/gems/1.8/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in
require'
from /ebay/lib/ebay/requests.rb:4
from /var/lib/gems/1.8/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in require' from /var/lib/gems/1.8/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in
require'
from /var/lib/gems/1.8/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:225:in load_dependency' from /var/lib/gems/1.8/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:591:in
new_constants_in'
from /var/lib/gems/1.8/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:225:in load_dependency' from /var/lib/gems/1.8/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in
require'
from /ebay/lib/ebay/ebay.rb:30
from /var/lib/gems/1.8/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in require' from /var/lib/gems/1.8/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in
require'
from /var/lib/gems/1.8/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:225:in load_dependency' from /var/lib/gems/1.8/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:591:in
new_constants_in'
from /var/lib/gems/1.8/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:225:in load_dependency' from /var/lib/gems/1.8/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in
require'
from /ebay/lib/ebay.rb:24
from /var/lib/gems/1.8/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in require' from /var/lib/gems/1.8/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in
require'
from /var/lib/gems/1.8/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:225:in load_dependency' from /var/lib/gems/1.8/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:591:in
new_constants_in'
from /var/lib/gems/1.8/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:225:in load_dependency' from /var/lib/gems/1.8/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in
require'
from /ebay/init.rb:1
from /var/lib/gems/1.8/gems/railties-3.0.1/lib/rails/plugin.rb:81
from /var/lib/gems/1.8/gems/railties-3.0.1/lib/rails/initializable.rb:25:in instance_exec' from /var/lib/gems/1.8/gems/railties-3.0.1/lib/rails/initializable.rb:25:in
run'
from /var/lib/gems/1.8/gems/railties-3.0.1/lib/rails/initializable.rb:50:in run_initializers' from /var/lib/gems/1.8/gems/railties-3.0.1/lib/rails/initializable.rb:49:in
each'
from /var/lib/gems/1.8/gems/railties-3.0.1/lib/rails/initializable.rb:49:in run_initializers' from /var/lib/gems/1.8/gems/railties-3.0.1/lib/rails/application.rb:134:in
initialize!'
from /var/lib/gems/1.8/gems/railties-3.0.1/lib/rails/application.rb:77:in send' from /var/lib/gems/1.8/gems/railties-3.0.1/lib/rails/application.rb:77:in
method_missing'
from /config/environment.rb:19
from /var/lib/gems/1.8/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in require' from /var/lib/gems/1.8/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in
require'
from /var/lib/gems/1.8/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:225:in load_dependency' from /var/lib/gems/1.8/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:591:in
new_constants_in'
from /var/lib/gems/1.8/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:225:in load_dependency' from /var/lib/gems/1.8/gems/activesupport-3.0.1/lib/active_support/dependencies.rb:239:in
require'
from /config.ru:3
from /var/lib/gems/1.8/gems/rack-1.2.2/lib/rack/builder.rb:46:in instance_eval' from /var/lib/gems/1.8/gems/rack-1.2.2/lib/rack/builder.rb:46:in
initialize'
from /config.ru:1:in `new'
from /config.ru:1
I use xml-mapping (0.9.1) and the gem ebayapi (0.12.0).
When i do require 'ebay' i got:
XML::XXPathError: XPath (/ConvertedMaxBid/): unknown axis: ConvertedMaxBid
from /usr/lib/ruby/gems/1.8/gems/xml-mapping-0.9.1/lib/xml/../xml/xxpath.rb:45:in `initialize'
from /usr/lib/ruby/gems/1.8/gems/xml-mapping-0.9.1/lib/xml/../xml/xxpath.rb:32:in `each'
from /usr/lib/ruby/gems/1.8/gems/xml-mapping-0.9.1/lib/xml/../xml/xxpath.rb:32:in `initialize'
from /usr/lib/ruby/gems/1.8/gems/ebayapi-0.12.0/lib/support/xml_mapping/money_node.rb:6:in `new'
from /usr/lib/ruby/gems/1.8/gems/ebayapi-0.12.0/lib/support/xml_mapping/money_node.rb:6:in `initialize_impl'
from /usr/lib/ruby/gems/1.8/gems/xml-mapping-0.9.1/lib/xml/../xml/mapping/base.rb:641:in `initialize'
from (eval):2:in `new'
from (eval):2:in `money_node'
from /usr/lib/ruby/gems/1.8/gems/ebayapi-0.12.0/lib/ebay/types/bidding_details.rb:15
....
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.