From 05b88faeec75d603ca944886cb3338704a0e0d42 Mon Sep 17 00:00:00 2001 From: manas-plivo Date: Tue, 6 Sep 2022 17:32:18 +0530 Subject: [PATCH] remove limit threshold --- lib/plivo/resources/brand.rb | 4 ---- lib/plivo/resources/campaign.rb | 8 -------- lib/plivo/resources/profile.rb | 4 ---- 3 files changed, 16 deletions(-) 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