infusion_api 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/infusion_api.gemspec +1 -1
- data/lib/infusion_api.rb +12 -12
- data/lib/infusion_api/version.rb +1 -1
- metadata +4 -4
data/infusion_api.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.email = ["matt.the.dev@gmail.com"]
|
11
11
|
s.homepage = ""
|
12
12
|
s.summary = %q{Infusionsoft API Wrapper}
|
13
|
-
s.description = %q{Simple wrapper gem for the Infusionsoft XMLRPC API}
|
13
|
+
s.description = %q{Simple wrapper gem for the Infusionsoft XMLRPC API -- **NOT READY FOR PRODUCTION USE YET**}
|
14
14
|
|
15
15
|
s.rubyforge_project = "infusion_api"
|
16
16
|
|
data/lib/infusion_api.rb
CHANGED
@@ -3,18 +3,11 @@ module InfusionApi
|
|
3
3
|
|
4
4
|
class Api
|
5
5
|
|
6
|
-
def initialize(
|
6
|
+
def initialize(app_name, key)
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
else
|
11
|
-
@key = key
|
12
|
-
@client = XMLRPC::Client.new3({'host' => app_name, 'path' => '/api/xmlrpc', 'port' => 443, 'use_ssl' => true })
|
13
|
-
end
|
8
|
+
@key = key
|
9
|
+
@client = XMLRPC::Client.new3({'host' => app_name, 'path' => '/api/xmlrpc', 'port' => 443, 'use_ssl' => true})
|
14
10
|
|
15
|
-
if single_instance
|
16
|
-
@inst = self
|
17
|
-
end
|
18
11
|
|
19
12
|
self
|
20
13
|
end
|
@@ -36,9 +29,16 @@ module InfusionApi
|
|
36
29
|
end
|
37
30
|
|
38
31
|
def contact_load(id, return_fields)
|
39
|
-
send_call("ContactService.load", return_fields)
|
32
|
+
send_call("ContactService.load", id, return_fields)
|
33
|
+
end
|
34
|
+
|
35
|
+
def contact_find()
|
36
|
+
|
40
37
|
end
|
41
38
|
|
39
|
+
def contact_save()
|
40
|
+
|
41
|
+
end
|
42
42
|
|
43
43
|
|
44
44
|
#API class private methods
|
@@ -52,7 +52,7 @@ module InfusionApi
|
|
52
52
|
result = @client.call(method, @key, *args)
|
53
53
|
|
54
54
|
rescue XMLRPC::FaultException => e
|
55
|
-
puts "ERROR: Infusionsoft API || #{e.faultCode} - #{e.faultString}"
|
55
|
+
puts "ERROR: Infusionsoft API || #{method} -- #{e.faultCode} - #{e.faultString}"
|
56
56
|
end
|
57
57
|
|
58
58
|
result
|
data/lib/infusion_api/version.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 3
|
9
|
+
version: 0.0.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Matt Merrill
|
@@ -14,11 +14,11 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-01-
|
17
|
+
date: 2011-01-05 00:00:00 -07:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|
21
|
-
description: Simple wrapper gem for the Infusionsoft XMLRPC API
|
21
|
+
description: Simple wrapper gem for the Infusionsoft XMLRPC API -- **NOT READY FOR PRODUCTION USE YET**
|
22
22
|
email:
|
23
23
|
- matt.the.dev@gmail.com
|
24
24
|
executables: []
|