Milo

Ruby wrapper for the eBay Milo API

View project onGitHub

Milo Build Status Dependency Status

Description

Track in real time the price and availability of every product carried by every location of every merchant through eBay Milo API. More info about eBay Milo API https://www.x.com/developers/documentation-tools/milo/endpoints.html

Usage

First:

milo = Milo::Main.new("ec17621f92c4b199a7a041bfe27a0c00")

Get all products, IS DEPRECATED IN VERSION 0.0.7:

milo.get_products 

Get product by id:

milo.get_product_by_id("20482374")

Get product by upc code:

milo.get_product_by_upc("037000185062")

Find products by postal code:

milo.get_product_by_postal_code("07032")

More complex, find by id and pass show options for products:

milo.get_product_by_id("20482374", show: "PnamePminUpcImg45")

Milo version 0.0.7 supports this kind of queries:

milo.get_product_by_postal_code("07032", {q: "basketball", show_defaults: "false", show: "PidPnameMidsPminPmaxDescPurlImg200Rate"})

Search Query

The search query allows users to search for products by various text signals. A simple search query would include only words such as apple ipad.

q: "ipad"

New Common Parameters (show_defaults)

It is another common parameter like show option

show_defaults: "false"

Api doc -> https://www.x.com/developers/documentation-tools/milo/endpoints.html

Contributing to Milo

  1. Fork the project.
  2. Make your feature addition or bug fix.
  3. Add tests for it. This is important so I don’t break it in a future version unintentionally.
  4. Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull).
  5. Send me a pull request. Bonus points for topic branches.