Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajarshi Das committed Jun 13, 2014
1 parent 04f9f42 commit 5a91599
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,33 +21,33 @@ Or install it yourself as:

Find your App Id on ebay Account

$ require 'ebay_ruby'
$ c=EbayConnect.new("YOURAPPID")
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"]}]
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
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

Expand Down

0 comments on commit 5a91599

Please sign in to comment.