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

Added locale param for verify #243

Merged
merged 4 commits into from
Jul 11, 2024
Merged
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
Next Next commit
Added locale param for verify
rajneeshkatkam-plivo committed Jun 20, 2024
commit 4d8cc79508c0ab5f1b911761a54583550aaaf082
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) (2024-06-22)
**Feature - Adding support for Locale param in Create Session**
- Added new request param `locale` in create Session API

## [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.
6 changes: 4 additions & 2 deletions lib/plivo/resources/verify_session.rb
Original file line number Diff line number Diff line change
@@ -41,19 +41,21 @@ def get(session_uuid)
perform_get(session_uuid)
end

def create(app_uuid = nil, recipient = nil,channel = nil,url = nil, method = nil)
def create(app_uuid = nil, recipient = nil,channel = nil, url = nil, method = nil, locale=nil)
valid_param?(:app_uuid, app_uuid, [String, Symbol], false)
valid_param?(:recipient, recipient, [Integer, String, Symbol], true)
valid_param?(:channel, channel, [String, Symbol], false)
valid_param?(:url, url, [String], false)
valid_param?(:method, method, String, false, %w[POST GET])
valid_param?(:locale, locale, [String, Symbol], false)

params = {
app_uuid: app_uuid,
recipient: recipient,
channel: channel,
url: url,
method: method
method: method,
locale: locale
}
perform_create(params)
end
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