Recharge 1.1.4 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
- metadata +4 -5
- data/examples/test.rb +0 -25
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: Recharge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 1.1.
|
9
|
+
- 5
|
10
|
+
version: 1.1.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Recharge
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-
|
18
|
+
date: 2012-03-09 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: happymapper
|
@@ -55,7 +55,6 @@ files:
|
|
55
55
|
- examples/customer.rb
|
56
56
|
- examples/paymethod.rb
|
57
57
|
- examples/product.rb
|
58
|
-
- examples/test.rb
|
59
58
|
- examples/transaction.rb
|
60
59
|
homepage: http://rechargebilling.com/api
|
61
60
|
licenses: []
|
data/examples/test.rb
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
# Examples for the Recharge API Gem
|
2
|
-
# Charge Resource
|
3
|
-
|
4
|
-
# Only 2 lines are required to get started:
|
5
|
-
# Require the recharge gem
|
6
|
-
require 'rubygems'
|
7
|
-
require 'recharge'
|
8
|
-
|
9
|
-
# Set your API key here, found in Recharge Settings > API Settings > API Private Key
|
10
|
-
# If incorrect or blank, any calls will raise a Response::NotAuthorized
|
11
|
-
Recharge.api_key = "14a1a867f39b4fdced2148871e4e542015cad979"
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
# deletes an existing product
|
16
|
-
puts "", "Delete Product"
|
17
|
-
|
18
|
-
begin
|
19
|
-
# find the product first
|
20
|
-
product = Recharge::Product.find('pr4f3192260b55d', 'APIKEY')
|
21
|
-
# call destroy on it to delete it
|
22
|
-
product.destroy('APIKEY')
|
23
|
-
rescue Exception => e
|
24
|
-
puts ">> error #{e.message}"
|
25
|
-
end
|