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 +1 -1
- data/landslider.gemspec +1 -1
- data/lib/landslider.rb +12 -12
- metadata +1 -1
data/VERSION.yml
CHANGED
data/landslider.gemspec
CHANGED
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',
|
129
|
-
ans.add 'totalResultsRequested',
|
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',
|
154
|
-
lr.add 'totalResultsRequested',
|
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',
|
169
|
-
ans.add 'totalResultsRequested',
|
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',
|
185
|
-
ans.add 'totalResultsRequested',
|
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)
|