다음을 통해 공유


BotFrameworkHttpClient class

경고

이 API는 이제 사용되지 않습니다.

Use BotFrameworkAuthentication.createBotFrameworkClient() to obtain a client and perform the operations that were accomplished through BotFrameworkHttpClient. HttpClient for calling skills from a Node.js BotBuilder V4 SDK bot.

생성자

BotFrameworkHttpClient(ICredentialProvider, string)

BotFrameworkHttpClient 클래스의 새 인스턴스를 만듭니다.

메서드

postActivity<T>(string, string, string, string, string, Activity)

활동을 다른 봇에 전달합니다.

생성자 세부 정보

BotFrameworkHttpClient(ICredentialProvider, string)

BotFrameworkHttpClient 클래스의 새 인스턴스를 만듭니다.

new BotFrameworkHttpClient(credentialProvider: ICredentialProvider, channelService?: string)

매개 변수

credentialProvider

ICredentialProvider

ICredentialProvider인스턴스입니다.

channelService

string

선택적. 채널 서비스입니다.

메서드 세부 정보

postActivity<T>(string, string, string, string, string, Activity)

활동을 다른 봇에 전달합니다.

function postActivity<T>(fromBotId: string, toBotId: string, toUrl: string, serviceUrl: string, conversationId: string, activity: Activity): Promise<InvokeResponse<T>>

매개 변수

fromBotId

string

활동을 보내는 봇의 MicrosoftAppId입니다.

toBotId

string

활동을 수신하는 봇의 MicrosoftAppId입니다.

toUrl

string

활동을 수신하는 봇의 URL입니다.

serviceUrl

string

기술 호스트에 대한 콜백 URL입니다.

conversationId

string

기술과의 대화에 사용할 대화 ID입니다.

activity

Activity

전달할 활동입니다.

반환

Promise<InvokeResponse<T>>

비동기 작업을 나타내는 프라미스입니다.