The main configuration options for setting up the Rev API Client

interface Options {
    apiKey?: string;
    authCode?: string;
    code?: string;
    codeVerifier?: string;
    defaultStreamPreference?: "stream" | "webstream" | "nativestream";
    guestRegistrationToken?: string;
    jwtToken?: string;
    keepAlive?: boolean | KeepAliveOptions;
    log?: LogFunction;
    logEnabled?: boolean;
    oauthConfig?: Config;
    password?: string;
    publicOnly?: boolean;
    rateLimits?: boolean | RateLimits;
    secret?: string;
    session?: IRevSessionState;
    url: string;
    username?: string;
    webcastId?: string;
}

Hierarchy (View Summary)

API Key Login

apiKey?: string

API Key forRev User (for login) - this or username must be specified

secret?: string

API Secret for Rev User (for login) - this or password must be specified

Advanced

defaultStreamPreference?: "stream" | "webstream" | "nativestream"

Specify the default response type for streaming responses 'stream': whatever underlying library returns (NodeJS Readable for node-fetch, ReadableStream otherwise) 'webstream': always return a ReadableStream 'nativestream': always return native stream type (NodeJS Readable on NodeJS, ReadableStream otherwise)

keepAlive?: boolean | KeepAliveOptions

If true then automatically extend the Rev session at regular intervals, until rev.disconnect() is called. Optionally, pass in keepAlive options instead of true

Logging function - default is log to console

logEnabled?: boolean

Enable/disable logging

rateLimits?: boolean | RateLimits

Turn on/off rate limits Automatically throttle requests client-side to fit within Vbrick's API Request Rate Limits. Note that the default values (when value is true) is set to the account maximum

Custom Login

publicOnly?: boolean

use public APIs only - no authentication

existing token/extend session details

Guest Login

guestRegistrationToken?: string

Webcast Guest Registration

webcastId?: string

Webcast ID for Guest Registration

JWT Login

jwtToken?: string

JWT Token

OAuth Login

authCode?: string

authCode from deprecated legacy oauth authorization flow

code?: string

code from oauth2 authorization flow

codeVerifier?: string

code verifier from oauth2 authorization flow

oauthConfig?: Config

oauth configuration values for oauth token management

Required

url: string

URL of Rev account

Username Login

password?: string

Password of Rev User (for login) - this or secret must be specified

username?: string

Username of Rev User (for login) - this or apiKey must be specified