Add this line to your application's Gemfile:
gem 'selly'
And then execute:
$ bundle
Or install it yourself as:
$ gem install selly
Visit the API documentation for complete method lists
require 'selly'
# Set API credentials
Selly.api_key = 'your api key'
Selly.api_email = 'your account email'
# List orders
Selly::Orders.list
# Pagination
Selly::Orders.list(page: 10)
# Get single resource
Selly::Orders.show('order id')
The gem is available as open source under the terms of the MIT License.