TODO: Write a gem description
Add this line to your application's Gemfile:
gem 'forklift'
And then execute:
$ bundle
Or install it yourself as:
$ gem install forklift
client = Forklift.new(api_key: 'xxxx', shared_secret: 'axxxx')
# Get all sections under the root.
sections = client.sections # => {:count=>"32", :catalogs=>[#<Forklift::Client::Catalog:0x007fd49a91c028 ....]}
# Pass a Forklift::Client::Catalog to get all sites under a specified section.
sites = client.sites(sections[:catalogs].first)
# Or pass the parent no.
sites = client.sites(no: 123)
# Similarly to categories, subcategories ...
subcategories = client.subcategories(no: 345)
subcategories = client.subcategories(category)
# You can going down from a specified no and level_no
client.going_down(no: 3, level_no: 1)
# moreover, going down from a specified catalog
section = sections[:catalogs].first
section.going_downclient = Forklift.new(api_key: 'xxxx', shared_secret: 'axxxx')
gds = client.unboxing({no: 26, level_no: 1})
# Or pass a Forklift::Client::Catalog
gds = client.unboxing({no: 26, level_no: 1})
# unboxing from a specified catalog
gds = section.unboxing
# specify the page and page size
gds = client.unboxing(no: 26, level_no:1, page: 5, ps: 30)
gds = section.unboxing(page: 5, ps: 30)- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request


