Skip to content

Commit

Permalink
Merge pull request #231 from plivo/SMS-6439
Browse files Browse the repository at this point in the history
 SMS-6439: Adding registration_status filter option for Ruby SDK
  • Loading branch information
narayana-plivo authored Nov 23, 2023
2 parents 3f52a55 + 2424c35 commit eb29a8e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
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.55.0](https://github.com/plivo/plivo-ruby/tree/v4.55.0) (2023-11-20)
**Feature - Added New Param 'registration_status' for Campaign List**
- Added new query param "registration_status" for campaign list

## [4.54.0](https://github.com/plivo/plivo-ruby/tree/v4.54.0) (2023-11-17)
**Feature - Verify Caller Id API support**
- API support for verifying, updating, getting and deleting caller IDs.
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.54.1'
gem 'plivo', '>= 4.55.0'
```

And then execute:
Expand Down
3 changes: 2 additions & 1 deletion lib/plivo/resources/campaign.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,15 @@ def get(campaign_id)
# @option options [String] :brand_id
# @option options [Status] :usecase
# @option options [String] :campaign_source
# @option options [String] :registration_status
# @option options [Status] :limit
# @option options [Status] :offset
# @return [Hash]
def list(options=nil)
return perform_list_without_object if options.nil?

params = {}
%i[usecase brand_id campaign_source limit offset].each do |param|
%i[usecase brand_id campaign_source limit offset registration_status].each do |param|
if options.key?(param) && valid_param?(param, options[param],
[String, Integer], true)
params[param] = options[param]
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.54.0".freeze
VERSION = "4.55.0".freeze
end

0 comments on commit eb29a8e

Please sign in to comment.