PrestaShop is a ruby gem to interact with a Prestashop API
this gem was originally forked from Prestashopper
add presta_shop
Gemfile
gem 'presta_shop'
PrestaShop.api_enabled? 'my.prestashop.com'
=> true
PrestaShop.valid_key? 'my.prestashop.com', 'VALID_KEY'
=> true
api = PrestaShop::API.new 'my.prestashop.com', 'VALID_KEY'
api.resources
=> [:customers, :orders, :products]
order_ids = api.orders.list
=> [1, 2, 3, 4, 5, 6]
order = api.order.find(1)
=> #<PrestaShop::Order id=1, ...>
orders = api.orders.find(1, 2, 3)
=> [#<PrestaShop::Order id=1, ...>, #<PrestaShop::Order id=2, ...>, #<PrestaShop::Order id=3, ...>]