diff --git a/README.md b/README.md index 84feb77..355ce03 100644 --- a/README.md +++ b/README.md @@ -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