diff --git a/lib/plivo/resources/brand.rb b/lib/plivo/resources/brand.rb index bd6d19e2..3ed21849 100644 --- a/lib/plivo/resources/brand.rb +++ b/lib/plivo/resources/brand.rb @@ -51,10 +51,6 @@ def list(options=nil) params[param] = options[param] end end - if options.key?(:limit) && (options[:limit] > 20 || options[:limit] <= 0) - raise_invalid_request('The maximum number of results that can be '\ - "fetched is 20. limit can't be more than 20 or less than 1") - end if options.key?(:offset) && options[:offset] < 0 raise_invalid_request("Offset can't be negative") end diff --git a/lib/plivo/resources/campaign.rb b/lib/plivo/resources/campaign.rb index 0e30254d..b492c1ca 100644 --- a/lib/plivo/resources/campaign.rb +++ b/lib/plivo/resources/campaign.rb @@ -51,10 +51,6 @@ def list(options=nil) params[param] = options[param] end end - if options.key?(:limit) && (options[:limit] > 20 || options[:limit] <= 0) - raise_invalid_request('The maximum number of results that can be '\ - "fetched is 20. limit can't be more than 20 or less than 1") - end if options.key?(:offset) && options[:offset] < 0 raise_invalid_request("Offset can't be negative") end @@ -98,10 +94,6 @@ def get_numbers(campaign_id, options = nil) params[param] = options[param] end end - if options.key?(:limit) && (options[:limit] > 20 || options[:limit] <= 0) - raise_invalid_request('The maximum number of results that can be '\ - "fetched is 20. limit can't be more than 20 or less than 1") - end if options.key?(:offset) && options[:offset] < 0 raise_invalid_request("Offset can't be negative") end diff --git a/lib/plivo/resources/profile.rb b/lib/plivo/resources/profile.rb index 793fb434..f443be0e 100644 --- a/lib/plivo/resources/profile.rb +++ b/lib/plivo/resources/profile.rb @@ -42,10 +42,6 @@ def list(options = nil) params[param] = options[param] end end - if options.key?(:limit) && (options[:limit] > 20 || options[:limit] <= 0) - raise_invalid_request('The maximum number of results that can be '\ - "fetched is 20. limit can't be more than 20 or less than 1") - end if options.key?(:offset) && options[:offset] < 0 raise_invalid_request("Offset can't be negative") end