landslider 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 4
4
- :patch: 1
4
+ :patch: 2
5
5
  :build:
data/landslider.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{landslider}
8
- s.version = "0.4.1"
8
+ s.version = "0.4.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jay Prall"]
data/lib/landslider.rb CHANGED
@@ -119,14 +119,14 @@ class Landslider < Handsoap::Service
119
119
  parse_get_account_opportunities_result(node)
120
120
  end
121
121
 
122
- def get_contact_notes(session_id, contact_id)
122
+ def get_contact_notes(session_id, contact_id, first_result_position=1, total_results_requested=25)
123
123
  self.session_id = session_id
124
124
 
125
125
  response = invoke("getContactNotes", :soap_action => :none) do |message|
126
126
  message.add('contactNote') { |ans|
127
127
  ans.add 'contactId', contact_id
128
- ans.add 'firstResultPosition', 1
129
- ans.add 'totalResultsRequested', 25
128
+ ans.add 'firstResultPosition', first_result_position
129
+ ans.add 'totalResultsRequested', total_results_requested
130
130
  }
131
131
  end
132
132
  node = response.document.xpath('//ns:getContactNotesResponse', ns)
@@ -144,29 +144,29 @@ class Landslider < Handsoap::Service
144
144
  parse_get_instance_information_result(node)
145
145
  end
146
146
 
147
- def get_leads(session_id, account_id)
147
+ def get_leads(session_id, account_id, first_result_position=1, total_results_requested=25)
148
148
  self.session_id = session_id
149
149
 
150
150
  response = invoke("getLeads", :soap_action => :none) do |message|
151
151
  message.add('leadRequest') { |lr|
152
152
 
153
- lr.add 'firstResultPosition', 1
154
- lr.add 'totalResultsRequested', 25
153
+ lr.add 'firstResultPosition', first_result_position
154
+ lr.add 'totalResultsRequested', total_results_requested
155
155
  }
156
156
  end
157
157
  node = response.document.xpath('//ns:getLeadsResponse', ns)
158
158
  parse_get_leads_result(node)
159
159
  end
160
160
 
161
- def get_lead_notes(session_id, lead_id)
161
+ def get_lead_notes(session_id, lead_id, first_result_position=1, total_results_requested=25)
162
162
  self.session_id = session_id
163
163
 
164
164
  response = invoke("getLeadNotes", :soap_action => :none) do |message|
165
165
  message.add('leadNote') { |ans|
166
166
 
167
167
  ans.add 'leadId', lead_id
168
- ans.add 'firstResultPosition', 1
169
- ans.add 'totalResultsRequested', 25
168
+ ans.add 'firstResultPosition', first_result_position
169
+ ans.add 'totalResultsRequested', total_results_requested
170
170
  }
171
171
  end
172
172
  node = response.document.xpath('//ns:getLeadNotesResponse', ns)
@@ -174,15 +174,15 @@ class Landslider < Handsoap::Service
174
174
  end
175
175
 
176
176
 
177
- def get_opportunity_notes(session_id, opportunity_id)
177
+ def get_opportunity_notes(session_id, opportunity_id, first_result_position=1, total_results_requested=25)
178
178
  self.session_id = session_id
179
179
 
180
180
  response = invoke("getOpportunityNotes", :soap_action => :none) do |message|
181
181
  message.add('opportunityNote') { |ans|
182
182
 
183
183
  ans.add 'opportunityId', opportunity_id
184
- ans.add 'firstResultPosition', 1
185
- ans.add 'totalResultsRequested', 25
184
+ ans.add 'firstResultPosition', first_result_position
185
+ ans.add 'totalResultsRequested', total_results_requested
186
186
  }
187
187
  end
188
188
  node = response.document.xpath('//ns:getOpportunityNotesResponse', ns)
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: landslider
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.4.1
5
+ version: 0.4.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jay Prall