Skip to content

Commit

Permalink
Merge pull request #241 from plivo/VT-7705
Browse files Browse the repository at this point in the history
filterParamAdded
  • Loading branch information
sandeep-plivo authored Jun 3, 2024
2 parents bb9554c + e4ceb8e commit 540da23
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## [4.59.1](https://github.com/plivo/plivo-ruby/tree/v4.59.1) (2023-05-31)
**Feature - Adding filtering support for List Application API**
- Added new filter param `app_name` in list application api

## [4.59.0)](https://github.com/plivo/plivo-go/tree/v4.59.0) (2024-05-31)
**Feature - SubAccount and GeoMatch**
- Added sub_account and geo_match support
Expand All @@ -8,13 +12,11 @@
**Feature - Adding support for location whatsapp messages**
- Added new param `location` to [send message API](https://www.plivo.com/docs/sms/api/message#send-a-message) to support location `whatsapp` messages
- Added new param `location` in templates to support location based templated messages
-

## [4.57.0](https://github.com/plivo/plivo-ruby/tree/v4.57.0) (2023-05-07)
**Feature - Adding support for interactive whatsapp messages**
- Added new param `interactive` to [send message API](https://www.plivo.com/docs/sms/api/message#send-a-message) to support interactive `whatsapp` messages


## [4.56.0](https://github.com/plivo/plivo-ruby/tree/v4.56.0) (2023-04-18)
**Feature - Support for dynamic button components when sending a templated WhatsApp message**
- Added new param `payload` in templates to support dynamic payload in templates
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The Plivo Ruby SDK makes it simpler to integrate communications into your Ruby a
Add this line to your application's Gemfile:

```ruby
gem 'plivo', '>= 4.59.0'
gem 'plivo', '>= 4.59.1'
```

And then execute:
Expand Down
6 changes: 6 additions & 0 deletions lib/plivo/resources/applications.rb
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ def create(app_name, options = nil)
# Lists all applications
# @param [Hash] options
# @option options [String] :subaccount
# @option options [String] :app_name
# @option options [Int] :offset
# @option options [Int] :limit
# @return [Hash]
Expand All @@ -190,6 +191,11 @@ def list(options = nil)
params[:subaccount] = options[:subaccount]
end

if options.key?(:app_name) &&
valid_param?(:app_name, options[:app_name], [String, Symbol], true)
params[:app_name] = options[:app_name]
end

%i[offset limit].each do |param|
if options.key?(param) && valid_param?(param, options[param],
[Integer, Integer], true)
Expand Down
2 changes: 1 addition & 1 deletion lib/plivo/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Plivo
VERSION = "4.59.0".freeze
VERSION = "4.59.1".freeze
end

0 comments on commit 540da23

Please sign in to comment.