rock-solid is a simple solid commerce API integration tool.
Add this line to your application's Gemfile:
gem 'rock-solid', git: 'https://github.com/reertech/rock-solid'And then execute:
$ bundle
Configure it:
RockSolid.configure do |config|
config.app_key = 'your solid commerce API app key'
config.secret_key = 'your solid commerce API secret key'
endUse it: Get all products from store:
RockSolid::Repositories::ListItem.new.find_by_list_name('store name')Get product details:
RockSolid::Repositories::Product.new.get_details_by_id("product's sku")Get all product images:
RockSolid::Repositories::ProductImage.new.get_all_by_sku("product's sku")The gem is available as open source under the terms of the MIT License.