EmulatorApiClient class
이 클래스의 목적은 api 클라이언트를 에뮬레이트하는 것입니다.
메서드
| emulate |
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
에뮬레이터에 에뮬레이트된 OAuth 카드를 보내는 true. 또는 카드를 보내지 않을 false.
반환
Promise<boolean>
OAuthCards의 성공적인 에뮬레이션에 true.
설명
에뮬레이션이 실패하면 서버의 상태 코드가 포함된 오류가 throw됩니다.