landslider 0.4.3 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION.yml +1 -1
- data/landslider.gemspec +1 -1
- data/lib/landslider.rb +3 -3
- data/test/landslider_test.rb +2 -2
- metadata +1 -1
data/VERSION.yml
CHANGED
data/landslider.gemspec
CHANGED
data/lib/landslider.rb
CHANGED
@@ -48,12 +48,12 @@ class Landslider < Handsoap::Service
|
|
48
48
|
parse_api_version_result(node)
|
49
49
|
end
|
50
50
|
|
51
|
-
def get_accounts(session_id)
|
51
|
+
def get_accounts(session_id, first_result_position=1, total_results_requested=25)
|
52
52
|
self.session_id = session_id
|
53
53
|
response = invoke("getAccounts", :soap_action => :none) do |message|
|
54
54
|
message.add('accountsRequest') { |ar|
|
55
|
-
ar.add 'firstResultPosition',
|
56
|
-
ar.add 'totalResultsRequested',
|
55
|
+
ar.add 'firstResultPosition', first_result_position
|
56
|
+
ar.add 'totalResultsRequested', total_results_requested
|
57
57
|
# ar.add('searchCriteria') { |sc|
|
58
58
|
# # just find accounts with an empty main city
|
59
59
|
#
|
data/test/landslider_test.rb
CHANGED
@@ -64,9 +64,9 @@ class LandsliderTest < Test::Unit::TestCase
|
|
64
64
|
|
65
65
|
end
|
66
66
|
|
67
|
-
def test_landslider_get_account_contacts
|
67
|
+
def test_landslider_get_account_contacts
|
68
68
|
# exists on jaytest
|
69
|
-
result = Landslider.get_account_contacts($sid, 51857822)
|
69
|
+
result = Landslider.get_account_contacts($sid, 51857822)
|
70
70
|
|
71
71
|
validate_standard_api_result result
|
72
72
|
assert_equal Array, result[:contacts].class
|