Skip to content

brunoadacosta/lomadee

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lomadee

This is the lightweight wrapper for Lomadee API. (developer.buscape.com/api/api-e-documentacao-lomadee)

How to install?

Simple as:

gem install lomadee

How to use?

First instantiate a new ‘Lomadee::Base’ object with two parameters (application_id, sandbox? (default: false)), for example:

lomadee = Lomadee::Base.new("you_application_id")

Then you can use like this:

lomadee.offers(categoryId: 77)

This get all products in the cellphone category. Or like this:

lomadee.products(keyword: "Apple")

This get all products using the keyword “Apple”

Help me improving this gem (and the documentation of course)! Fork this project and feel free to help. :)