Skip to content

Commit

Permalink
Fixed Ebay Url argument typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Hoffman committed Oct 17, 2012
1 parent 91b0be2 commit e676bf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rebay/shopping.rb
Expand Up @@ -12,7 +12,7 @@ def self.base_url_suffix

#http://developer.ebay.com/DevZone/shopping/docs/CallRef/FindProducts.html
def find_products(params)
raise ArgumentError unless params[:categoryId] or params["productID.Value"] or params[:productId] or params[:queryKeywords]
raise ArgumentError unless params[:categoryId] or params["ProductID.Value"] or params[:productId] or params[:queryKeywords]
response = get_json_response(build_request_url('FindProducts', params))
if response.response.has_key?('Product')
response.results = response.response['Product']
Expand All @@ -22,7 +22,7 @@ def find_products(params)

#http://developer.ebay.com/DevZone/shopping/docs/CallRef/FindHalfProducts.html
def find_half_products(params)
raise ArgumentError unless params["productID.Value"] or params[:productId] or params[:queryKeywords]
raise ArgumentError unless params["ProductID.Value"] or params[:productId] or params[:queryKeywords]
response = get_json_response(build_request_url('FindHalfProducts', params))
if response.response.has_key?('Products') && response.response['Products'].has_key?('Product')
response.results = response.response['Products']['Product']
Expand Down

0 comments on commit e676bf9

Please sign in to comment.