Skip to content

veeqo/api2cart-ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Api2cart

Ruby client for API2Cart with proxy support, fully covered with tests. The DSL is similar to DSL of original gem therefore migration is easy.

Installation

Add this line to your application's Gemfile:

gem 'api2cart-ruby', require: 'api2cart'

And then execute:

$ bundle

Or install it yourself as:

$ gem install api2cart-ruby

Usage

Api2cart::Store.new(api_key, store_key).product_count
# => { 'products_count' => 76 }

With proxy:

Api2cart::Store.new(api_key, store_key, proxy: 'http://anti-throttling-proxy.local:1080').product_count
# => { 'products_count' => 76 }

Configuration

Api2cart.configure do |c|
  c.host = 'custom.example.com' # default is 'api.api2cart.com'
  c.api_version = '1.1'         # default is '1.0'
end

Contributors

Sponsored by Veeqo

About

Ruby client for API2Cart

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages