mirror of
https://github.com/donl/plivo-node.git
synced 2026-06-30 06:12:08 -06:00
Remove extra params being sent in request
This commit is contained in:
parent
5d9458d149
commit
a52057bc5f
2 changed files with 3 additions and 3 deletions
|
|
@ -63,7 +63,7 @@ export class CreateTokenResponse {
|
|||
return errors;
|
||||
}
|
||||
|
||||
let params = optionalParams || {};
|
||||
let params = {};
|
||||
params.per = {};
|
||||
params.per.voice = {};
|
||||
if(optionalParams.sub) {
|
||||
|
|
|
|||
4
types/resources/token.d.ts
vendored
4
types/resources/token.d.ts
vendored
|
|
@ -17,7 +17,7 @@ export class CreateTokenResponse {
|
|||
* @promise {object} returns Call Object
|
||||
* @fail {Error} returns Error
|
||||
*/
|
||||
create( iss: string, sub: string, nbf: number, exp: number, incoming_allowed: boolean, outgoing_allowed: boolean, app: string, params ? : {}): Promise < CreateTokenResponse > ;
|
||||
create( iss: string, sub: string, nbf: number, exp: number, incoming_allow: boolean, outgoing_allow: boolean, app: string, params ? : {}): Promise < CreateTokenResponse > ;
|
||||
/**
|
||||
* Create a token
|
||||
* @method
|
||||
|
|
@ -28,4 +28,4 @@ export class CreateTokenResponse {
|
|||
declare const clientKey: unique symbol;
|
||||
import {
|
||||
PlivoResourceInterface
|
||||
} from "../base";
|
||||
} from "../base";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue