mirror of
https://github.com/donl/plivo-node.git
synced 2026-05-25 22:07:10 -06:00
31 lines
892 B
TypeScript
31 lines
892 B
TypeScript
export class CreateTokenResponse {
|
|
constructor(params: object);
|
|
apiId: string;
|
|
token: string;
|
|
}
|
|
/**
|
|
* Represents a Token Interface
|
|
* @constructor
|
|
* @param {function} client - make api call
|
|
* @param {object} [data] - data of token
|
|
*/
|
|
export class TokenInterface extends PlivoResourceInterface {
|
|
constructor(client: Function, data ? : {});
|
|
/**
|
|
* Get Token Detail
|
|
* @method
|
|
* @promise {object} returns Call Object
|
|
* @fail {Error} returns Error
|
|
*/
|
|
create( iss: string, sub: string, nbf: number, exp: number, incoming_allow: boolean, outgoing_allow: boolean, app: string, params ? : {}): Promise < CreateTokenResponse > ;
|
|
/**
|
|
* Create a token
|
|
* @method
|
|
* @promise {object} returns PlivoGenericResponse Object
|
|
* @fail {Error} returns Error
|
|
*/
|
|
}
|
|
declare const clientKey: unique symbol;
|
|
import {
|
|
PlivoResourceInterface
|
|
} from "../base";
|