cafepress_api 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README +19 -0
  2. data/lib/cafepress_api/version.rb +1 -1
  3. metadata +4 -4
data/README CHANGED
@@ -18,5 +18,24 @@
18
18
  CafePressAPI is a simple Ruby wrapper for some of the CafePress API
19
19
  http://developer.cafepress.com/docs
20
20
 
21
+ == HOW TO ==
22
+ The library is fairly simple. Taking a look at the class methods defined in
23
+ cafepress_api.rb will give you a better idea of how things work. Configuration
24
+ stuff can either be passed as argument(s) when calling the methods, or placed
25
+ in environment variables.
26
+
27
+ $ irb
28
+ > require 'rubygems'
29
+ => true
30
+ > require 'cafepress_api'
31
+ => true
32
+ > CafePressAPI.get_store_products('carabinerpirate','YOUR-CAFEPRESS-API-KEY')
33
+ => [{: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=>"http://www.cafepress.com/buy/x/-/pv_design_prod/pg_1/p_2627625.164539429/pNo_164539429"}, ...]
34
+
35
+ I wrote this gem for a Rails app which creates a portal of multiple CafePress
36
+ basic stores (https://github.com/benjaminleesmith/cafepress_wrapper). This gem
37
+ was built with very specific use cases in mind. If you find it lacking, please
38
+ improve on it and contribute (https://github.com/benjaminleesmith/cafepress_api)
39
+
21
40
  == TODO ==
22
41
  * Lots.
@@ -15,5 +15,5 @@
15
15
  # along with CafePressAPI. If not, see <http://www.gnu.org/licenses/>.
16
16
 
17
17
  module CafePressAPI
18
- VERSION = "0.0.2"
18
+ VERSION = "0.0.3"
19
19
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cafepress_api
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Benjamin Lee Smith
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-01-26 00:00:00 -07:00
18
+ date: 2011-02-28 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies: []
21
21