Indix

Offical Ruby Wrapper for Indix API

Installation

Add this line to your application's Gemfile:

gem 'indix'

And then execute:

$ bundle

Or install it yourself as:

$ gem install indix

Usage

Require the Gem:

require 'indix'

Configure Indix client with the app_id and app_key provided to you

Indix::Config.setup({:app_id => '12345', :app_key => '12345abcde'})

or

Indix::Config.app_id = '12345'
Indix::Config.app_key = '12345abcde'

Call the API endpoints

Indix::Stores.search('amazon')
Indix::Products.search(query: 'nike', store_id: 1234)

Use the response

products_response = Indix::Products.search(query: 'nike')
puts products_response.count
puts products_response.products[0].id
puts products_response.products[0].offers_count