Skip to content

Commit

Permalink
Add locale param for create session
Browse files Browse the repository at this point in the history
  • Loading branch information
rajneeshkatkam-plivo committed Jun 20, 2024
1 parent 03c3cdc commit 1015fea
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 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

## [v4.68.0](https://github.com/plivo/plivo-node/tree/v4.68.0) (2024-06-22)
**Feature - Locale param supported for Create Verify Session API's**
- Added new param 'locale' to Create Session API

## [v4.67.0](https://github.com/plivo/plivo-node/tree/v4.67.0) (2024-05-22)
**Feature - Adding support for participant level recording**
- Added new param `recordParticipantTrack` to [add participant API](https://www.plivo.com/docs/voice/api/multiparty-call/participants#add-a-participant) to support `participant` level recording
Expand Down
6 changes: 5 additions & 1 deletion lib/resources/verify.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,14 +138,15 @@ export class SessionInterface extends PlivoResourceInterface {
create(sessionReq){

var isObject = arguments.length;
var app_uuid, recipient, url, method, channel
var app_uuid, recipient, url, method, channel, locale

if (isObject === 1) {
app_uuid = sessionReq.app_uuid
recipient = sessionReq.recipient
url = sessionReq.url
method = sessionReq.method
channel = sessionReq.channel
locale = sessionReq.locale
}

let errors = validate([{
Expand All @@ -170,6 +171,9 @@ export class SessionInterface extends PlivoResourceInterface {
if(channel) {
params.channel = channel
}
if(locale) {
params.locale = locale
}
if(url) {
params.url = url
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "plivo",
"version": "4.67.0",
"version": "4.68.0",
"description": "A Node.js SDK to make voice calls and send SMS using Plivo and to generate Plivo XML",
"homepage": "https://github.com/plivo/plivo-node",
"files": [
Expand Down

0 comments on commit 1015fea

Please sign in to comment.