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

非同期操作を表す promise。