GithubHelp home page GithubHelp logo

ebay_ruby's Introduction

EbayRuby

Ebay access finding API with getting all items.

Gem Version

## Installation

Add this line to your application's Gemfile:

gem 'ebay_ruby'

And then execute:

$ bundle

Or install it yourself as:

$ gem install ebay_ruby

Usage

Find your App Id on ebay Account

 require 'ebay_ruby'
 c=EbayConnect.new("YOURAPPID")

Send two arguments keyword, number of entry per page

 items = c.find_items_by_keywords("Harry Potter", 3)
 items = c.find_items_by_category("CATEGORY_ID", 3)
 items  = c.find_items_by_product("ISBN/UPC/EAN", 3)
 item = items.first
 item.title
 item.globalId
 item.primaryCategory #to get categoryid and name [{"categoryId"=>["2444"], "categoryName"=>["Vintage"]}]
 item.galleryURL # to get gallery url
 item.viewItemURL #to get the original ebay url
 item.paymentMethod
 item.postalCode
 item.location
 item.country
 item.shippingInfo
 item.shipToLocations
 item.sellingStatus # it return current market price with currency [{"currentPrice"=>[{"@currencyId"=>"USD", "__value__"=>"10.0"}], "convertedCurrentPrice"=>[{"@currencyId"=>"USD", "__value__"=>"10.0"}], "bidCount"=>["0"], "sellingState"=>["Active"], "timeLeft"=>["P0DT1H41M35S"]}]


 item.listingInfo #[{"bestOfferEnabled"=>["false"], "buyItNowAvailable"=>["false"], "startTime"=>["2014-06-07T08:16:46.000Z"], "endTime"=>["2014-06-10T08:16:46.000Z"], "listingType"=>["Auction"], "gift"=>["false"]}]
 item.topRatedListing
...

So on

Contributing

  1. Fork it ( https://github.com/rajcybage/ebay_ruby/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

ebay_ruby's People

Stargazers

Jonny Banana avatar Stanley Stevens avatar Angus H. avatar Keith Hunniford avatar Rajars avatar

Watchers

Keith Hunniford avatar James Cloos avatar Rajars avatar

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.