Skip to content
A gem wrapping CafePress API and trying to make up for the API's inadequacies
Find file
Failed to load latest commit information.
lib added view cart base url
.gitignore ignoring redcar conf
Gemfile added license
LICENSE added license
README added add-to-cart url generator
Rakefile added license
cafepress_api.gemspec added license


# Copyright 2011 Benjamin Lee Smith <>
# This file is part of CafePressAPI.
# CafePressAPI is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# CafePressAPI is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with CafePressAPI.  If not, see <>.

CafePressAPI is a simple Ruby wrapper for some of the CafePress API

== HOW TO ==
The library is fairly simple. Taking a look at the class methods defined in
cafepress_api.rb will give you a better idea of how things work. Configuration
stuff can either be passed as argument(s) when calling the methods, or placed
in environment variables.

$ irb
> require 'rubygems'
=> true
> require 'cafepress_api'
=> true
> CafePressAPI.get_store_products('carabinerpirate','YOUR-CAFEPRESS-API-KEY')
=> [{:cafepress_design_id=>"21823412", :cafepress_back_design_id=>nil, :default_caption=>"Women's Long Sleeve Dark T-Shirt", :cafepress_product_id=>"164539429", :name=>"Pirates of the Carabiner Women's Long Sleeve Shirt", :url=>""}, ...]
> CafePressAPI.add_to_cart_url('164539432', '6', '29', 2, '')
=> ""

I wrote this gem for a Rails app which creates a portal of multiple CafePress
basic stores ( This gem
was built with very specific use cases in mind. If you find it lacking, please
improve on it and contribute (

== TODO ==
* Lots.
Something went wrong with that request. Please try again.