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 1 commit
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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

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

## [4.58.0](https://github.com/plivo/plivo-ruby/tree/v4.58.0) (2023-05-17)
**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
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.58.0'
gem 'plivo', '>= 4.58.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.58.0".freeze
VERSION = "4.58.1".freeze
end
Loading