EmulatorApiClient class

The purpose of this class is to emulate an api client.

Methods

emulateOAuthCards(AppCredentials, string, boolean)

OAuth card emulation.

Method Details

emulateOAuthCards(AppCredentials, string, boolean)

OAuth card emulation.

static function emulateOAuthCards(credentials: AppCredentials, emulatorUrl: string, emulate: boolean): Promise<boolean>

Parameters

credentials
AppCredentials

(xref:botframework-connector.AppCredentials) for OAuth.

emulatorUrl

string

The URL of the emulator.

emulate

boolean

true to send an emulated OAuth card to the emulator; or false to not send the card.

Returns

Promise<boolean>

true on a successful emulation of OAuthCards.

Remarks

If the emulation fails, an error containing the status code from the server is thrown.