Skip to content

Commit

Permalink
modified node sdk for number masking
Browse files Browse the repository at this point in the history
  • Loading branch information
Abinaya-Shunmugavel committed Jul 21, 2023
1 parent cf4b4b1 commit c78eb60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
12 changes: 0 additions & 12 deletions lib/resources/call.js
Original file line number Diff line number Diff line change
Expand Up @@ -504,18 +504,6 @@ export class Call extends PlivoResource {
params.isVoiceRequest = 'true';
return super.executeAction('Request/' + this.id + '/', 'DELETE', params, '');
}
getMaskingSession(params={}) {
params.isVoiceRequest = 'true';
return super.executeAction('Masking/Session/' + this.id, 'GET', params);
}
deleteMaskingSession(params={}) {
params.isVoiceRequest = 'true';
return super.executeAction('Masking/Session/' + this.id, 'DELETE', params);
}
updateMaskingSession(params) {
params.isVoiceRequest = 'true';
return super.executeAction('Masking/Session/' + this.id, 'POST', params);
}
}

const liveCallInterfaceKey = Symbol('liveCallInterface');
Expand Down
3 changes: 2 additions & 1 deletion types/resources/call.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,8 @@ export class CallInterface extends PlivoResourceInterface {
* @fail {Error} returns Error
*/
create(from: string, to: string, answerUrl: string, params ? : {}): Promise < CreateCallResponse > ;
/**

/**
* Hangup A Specific Call
* @method
* @param {string} callUUID - call uuid to hangup call
Expand Down

0 comments on commit c78eb60

Please sign in to comment.