Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filterParamAdded #241

Merged
merged 2 commits into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading