EmulatorApiClient class

此类的目的是模拟 API 客户端。

方法

emulateOAuthCards(AppCredentials, string, boolean)

OAuth 卡仿真。

方法详细信息

emulateOAuthCards(AppCredentials, string, boolean)

OAuth 卡仿真。

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

参数

credentials
AppCredentials

(xref:botframework-connector。适用于 OAuth 的 AppCredentials) 。

emulatorUrl

string

模拟器的 URL。

emulate

boolean

true 将模拟的 OAuth 卡发送到仿真器;或 false 不发送卡。

返回

Promise<boolean>

true 成功模拟 OAuthCards 时。

注解

如果仿真失败,将引发包含服务器状态代码的错误。