Git Product home page Git Product logo

rebay's People

Contributors

ccollins avatar hovatterz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

rebay's Issues

Can't get the constant EBAY_US

NoMethodError: undefined method `EBAY_US' for Rebay::Api:Class

after

shopping = Rebay::Shopping.new
shopping.get_category_info({:categoryId => '1'})

Pagination on find

I can see results info coming back from find_items_in_ebay_stores call but it doesn't handle pagination of the results. I can pass the pagination (page#) parameter but I get the same set (top 100 records) of data each time.

I need to be able to retrieve that other data (by pagenumber) and see the count info (totalPages and totalEntries)

in rebay / lib / rebay / finding.rb lines 57-58 you pull back only the 'items' array
It appears extra meta data is as follows (I see this after the 1st item record and before the next one (searchResult) )
Note: I changed data below where store to <>

"@count"=>"10
0"}, @response={"itemSearchURL"=>"http://stores.ebay.com/<>/_i.html?_fss=1&_saslop=1&LH_SpecificSeller=1&_ddo=1&_exm
aitems=1&_ipg=100&_pgn=1&_sid=1032732382&_ssn=<>", "ack"=>"Success", "paginationOutput"=>{"entriesPerPage"=>"10
0", "totalPages"=>"39", "totalEntries"=>"3826", "pageNumber"=>"1"}, "version"=>"1.12.0", "timestamp"=>"2012-10-0
9T05:16:31.558Z", "searchResult"=>{"item"

Code I'm using to call as follows:
response = finder.find_items_in_ebay_stores( {:storeName => '<>',
:pagination => {:entries_per_page => 100, :page_number => page_num}
}
)

Support for completed items under findCompletedItems service

It would be nice to have support for searching completed items under the findCompletedItems service (http://developer.ebay.com/DevZone/finding/CallRef/findCompletedItems.html). Example:

    def find_completed_items(params)
      raise ArgumentError unless params[:keywords] or params[:categoryId]
      response = get_json_response(build_request_url('findCompletedItems', params))
      response.trim(:findItemsAdvancedResponse)

      if response.response.has_key?('searchResult') && response.response['searchResult'].has_key?('item')
        response.results = response.response['searchResult']['item']
      end
      return response
    end

Sandbox URLs are not inherited in Rails 4.2

When configuring Rebay::Api in an initializer in a Rails 4.2 app, the sandbox boolean is not inherited by Rebay::Finding or Rebay::Shopping.

Workaround:

Rebay::Api.configure do |rebay|
rebay.app_id = "whatever"
rebay.sandbox = true
end

Rebay::Finding.configure do |rebay|
rebay.sandbox = true
end

Rebay::Shopping.configure do |rebay|
rebay.sandbox = true
end

"Ack" is sometimes "ack" in responses

Given:

finder = Rebay::Finding.new
response = finder.find_items_by_keywords(:keywords => query)

The response I'm getting (at least sometimes?):

{"ack"=>"Success", "version"=>"1.11.0", "timestamp"=>"2012-02-17T02:25:21.841Z"

The success? method only checks "Ack". Checking for both fixes the issue for me.

Do you need dev_id and cert_id also?

I added an initliazer and set it with my application id.

When making a simple call:

finder = Rebay::Finding.new response = finder.get_search_keywords_recommendation({:keywords => 'acordian'})

I am getting the error:

#<Rebay::Response:0x102d39598 @response={"errorMessage"=>{"error"=>{"parameter"=>{"@name"=>"Param1", "__value__"=>"Invalid Application: xxxxxxx"}, "category"=>"System", "errorId"=>"11002", "domain"=>"Security", "subdomain"=>"Authentication", "severity"=>"Error", "message"=>"Authentication failed : Invalid Application: xxxxxxx"}}}> 

(xxx is my app_id)

Little confused why I would be getting this? My app_id is setup correctly I would think. Does anything look wrong?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.