infusionsoft 1.0.7 → 1.0.8b

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -28,7 +28,7 @@ All previous versions will need to update their calls to follow the new schema
28
28
  Infusionsoft.data_load('Contact', contact_id, [:FirstName, :LastName])
29
29
 
30
30
  # Update a contact with specific field values
31
- Infusionsoft.contact_upudate(contact_id, { :FirstName => 'first_name', :Email => 'test@test.com' })
31
+ Infusionsoft.contact_update(contact_id, { :FirstName => 'first_name', :Email => 'test@test.com' })
32
32
 
33
33
  # Add a new Contact
34
34
  Infusionsoft.contact_add({:FirstName => 'first_name', :LastName => 'last_name', :Email => 'test@test.com'})
@@ -8,9 +8,11 @@ module Infusionsoft
8
8
  include Connection
9
9
  include Request
10
10
 
11
+ attr_accessor :retry_count
11
12
  attr_accessor *Configuration::VALID_OPTION_KEYS
12
13
 
13
14
  def initialize(options={})
15
+ @retry_count = 0
14
16
  options = Infusionsoft.options.merge(options)
15
17
  Configuration::VALID_OPTION_KEYS.each do |key|
16
18
  send("#{key}=", options[key])
@@ -2,24 +2,24 @@ module Infusionsoft
2
2
  class Client
3
3
  module File
4
4
  def file_upload(contact_id, file_name, encoded_file_base64)
5
- response = get('FileService', 'uploadFile', contact_id, file_name, encoded_file_base64)
5
+ response = get('FileService.uploadFile', contact_id, file_name, encoded_file_base64)
6
6
  end
7
7
 
8
8
  # returns the Base64 encoded file contents
9
9
  def file_get(id)
10
- response = get('FileService', 'getFile', id)
10
+ response = get('FileService.getFile', id)
11
11
  end
12
12
 
13
13
  def file_url(id)
14
- response = get('FileService', 'getDownloadUrl', id)
14
+ response = get('FileService.getDownloadUrl', id)
15
15
  end
16
16
 
17
17
  def file_rename(id, new_name)
18
- response = get('FileService', 'renameFile', id, new_name)
18
+ response = get('FileService.renameFile', id, new_name)
19
19
  end
20
20
 
21
21
  def file_replace(id, encoded_file_base64)
22
- response = get('FileService', 'replaceFile', id, encoded_file_base64)
22
+ response = get('FileService.replaceFile', id, encoded_file_base64)
23
23
  end
24
24
  end
25
25
  end
@@ -4,13 +4,13 @@ module Infusionsoft
4
4
  # add move notes to existing tickets
5
5
  def ticket_add_move_notes(ticket_list, move_notes,
6
6
  move_to_stage_id, notify_ids)
7
- response = get('ServiceCallService', 'addMoveNotes', ticket_list,
7
+ response = get('ServiceCallService.addMoveNotes', ticket_list,
8
8
  move_notes, move_to_stage_id, notify_ids)
9
9
  end
10
10
 
11
11
  # add move notes to existing tickets
12
12
  def ticket_move_stage(ticket_id, ticket_stage, move_notes, notify_ids)
13
- response = get('ServiceCallService', 'moveTicketStage',
13
+ response = get('ServiceCallService.moveTicketStage',
14
14
  ticket_id, ticket_stage, move_notes, notify_ids)
15
15
  end
16
16
  end
@@ -4,8 +4,6 @@ module Infusionsoft
4
4
  module Connection
5
5
  private
6
6
 
7
- @retry_count = 0
8
-
9
7
  def connection(service_call, *args)
10
8
  server = XMLRPC::Client.new3({
11
9
  'host' => api_url,
@@ -1,4 +1,4 @@
1
1
  module Infusionsoft
2
2
  # The version of the gem
3
- VERSION = '1.0.7'.freeze unless defined?(::Infusionsoft::VERSION)
3
+ VERSION = '1.0.8b'.freeze unless defined?(::Infusionsoft::VERSION)
4
4
  end
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infusionsoft
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
5
- prerelease:
4
+ hash: 27
5
+ prerelease: 5
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 7
10
- version: 1.0.7
9
+ - 8
10
+ - b
11
+ version: 1.0.8b
11
12
  platform: ruby
12
13
  authors:
13
14
  - Nathan Leavitt
@@ -15,7 +16,7 @@ autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
18
 
18
- date: 2011-11-22 00:00:00 -07:00
19
+ date: 2012-04-04 00:00:00 -07:00
19
20
  default_executable:
20
21
  dependencies: []
21
22
 
@@ -71,18 +72,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
71
72
  required_rubygems_version: !ruby/object:Gem::Requirement
72
73
  none: false
73
74
  requirements:
74
- - - ">="
75
+ - - ">"
75
76
  - !ruby/object:Gem::Version
76
- hash: 23
77
+ hash: 25
77
78
  segments:
78
79
  - 1
79
80
  - 3
80
- - 6
81
- version: 1.3.6
81
+ - 1
82
+ version: 1.3.1
82
83
  requirements: []
83
84
 
84
85
  rubyforge_project:
85
- rubygems_version: 1.5.0
86
+ rubygems_version: 1.6.2
86
87
  signing_key:
87
88
  specification_version: 3
88
89
  summary: Ruby wrapper for the Infusionsoft API