@dolbyio/dolbyio-rest-apis-client
Version:
Node.JS wrapper for the Dolby.io REST APIs
16 lines (15 loc) • 688 B
TypeScript
import { JwtToken } from './types/jwtToken';
/**
* Generates an API token.
*
* To make any API call, you must acquire a JWT (JSON Web Token) format API token.
*
* @link https://docs.dolby.io/media-apis/reference/get-api-token
*
* @param appKey Your Dolby.io App Key.
* @param appSecret Your Dolby.io App Secret.
* @param expiresIn API token expiration time in seconds. If no value is specified, the default is 1800, indicating 30 minutes. The maximum value is 86,400, indicating 24 hours.
*
* @returns A {@link JwtToken} object through a {@link Promise}.
*/
export declare const getApiAccessToken: (appKey: string, appSecret: string, expiresIn?: number) => Promise<JwtToken>;