Ecommerce Client
A Ruby client for Myfreecomm's Ecommerce REST API.
Installation
Add this line to your application's Gemfile:
gem 'ecommerce-client'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ecommerce-client
Configuration
To access the Ecommerce API, you must provide the token and the secret:
Ecommerce.configuration do |config|
config.token = 'YOUR-TOKEN'
config.secret = 'YOUR-SECRET'
end
Usage
Ecommerce endpoints are represented as Resources. To check the list of all available Resources, please visit Ecommerce::Resources module folder.
# listing orders of a plan
Ecommerce::Resources::Order.find_all('specific-plan')
=> #<Ecommerce::Resources::OrderCollection:0x000000028739b0...>
Contributing
- Fork it ( http://github.com//ecommerce-client-ruby/fork )
- 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