A Ruby wrapper for the Big Cartel External REST API.
With the release of 1.0 I changed some of the design of the gem and should be considered a breaking change if you were using the 0.* versions of the gem. I hope this new design of the gem will be faster and also more useful in your applications.
gem install bigcartel
require 'rubygems'
require 'bigcartel', '>~ 1.0.0'
require 'pp'
client = BigCartel::Client.new
client.store("tonkapark", {:show_products => true, :product_limit => 2})
client.products("tonkapark", {:limit => 100})
client.page("tonkapark", "page-permalink")
store = BigCartel.store("tonkapark")
pp store.description
store.products.each do |product|
pp product.name
pp product.image.thumb
end
As part of the Big Cartel Themes and Templates available from Tonka Park there was a small web app built using the BigCartel gem to generate google products xml and also create a theme preview.
See the gem in action at http://carteltools.heroku.com
- 1.8.7
- 1.9.2
- Big Cartel changed url for their images again.
- fixed bug in regexp that broke images call when Big Cartel changed url for their images.
- redesigned wrapper from the ground up
- added rspec tests
- support for ruby 1.9.2 and 1.8.7
Copyright (c) 2011 Matt Anderson, Tonka Park
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.