다음을 통해 공유


SkillHttpClient class

대화 ID 생성을 캡슐화하는 기술에 특화된 BotFrameworkHttpClient입니다.

Extends

생성자

SkillHttpClient(ICredentialProvider, SkillConversationIdFactoryBase, string)

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

메서드

postToSkill(string, BotFrameworkSkill, string, Activity)

SkillConversationIdFactory를 사용하여 기술 대화 ID를 만들거나 검색하고 활동을 보냅니다.

postToSkill<T>(string, string, BotFrameworkSkill, string, Activity)

SkillConversationIdFactory를 사용하여 기술 대화 ID를 만들거나 검색하고 활동을 보냅니다.

상속된 메서드

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

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

생성자 세부 정보

SkillHttpClient(ICredentialProvider, SkillConversationIdFactoryBase, string)

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

new SkillHttpClient(credentialProvider: ICredentialProvider, conversationIdFactory: SkillConversationIdFactoryBase, channelService?: string)

매개 변수

credentialProvider

ICredentialProvider

ICredentialProvider인스턴스입니다.

conversationIdFactory

SkillConversationIdFactoryBase

SkillConversationIdFactoryBase파생된 클래스의 인스턴스입니다.

channelService

string

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

메서드 세부 정보

postToSkill(string, BotFrameworkSkill, string, Activity)

경고

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

This overload is deprecated. Please use SkillHttpClient.postToSkill() that takes an originatingAudience.

SkillConversationIdFactory를 사용하여 기술 대화 ID를 만들거나 검색하고 활동을 보냅니다.

function postToSkill(fromBotId: string, toSkill: BotFrameworkSkill, callbackUrl: string, activity: Activity): Promise<InvokeResponse>

매개 변수

fromBotId

string

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

toSkill

BotFrameworkSkill

대화 ID를 만드는 기술입니다.

callbackUrl

string

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

activity

Activity

보낼 활동입니다.

반환

Promise<InvokeResponse>

postToSkill<T>(string, string, BotFrameworkSkill, string, Activity)

SkillConversationIdFactory를 사용하여 기술 대화 ID를 만들거나 검색하고 활동을 보냅니다.

function postToSkill<T>(originatingAudience: string, fromBotId: string, toSkill: BotFrameworkSkill, callbackUrl: string, activity: Activity): Promise<InvokeResponse<T>>

매개 변수

originatingAudience

string

토큰 검색 중에 사용되는 OAuth 대상 범위입니다. (https://api.botframework.com 또는 봇 앱 ID)

fromBotId

string

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

toSkill

BotFrameworkSkill

대화 ID를 만드는 기술입니다.

callbackUrl

string

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

activity

Activity

보낼 활동입니다.

반환

Promise<InvokeResponse<T>>

상속된 메서드 세부 정보

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>>

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

BotFrameworkHttpClient.postActivity 상속된