Share via


BotFrameworkHttpClient class

Warnung

Diese API ist nun veraltet.

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.

Konstruktoren

BotFrameworkHttpClient(ICredentialProvider, string)

Erstellt eine neue Instanz der BotFrameworkHttpClient-Klasse .

Methoden

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

Leitet eine Aktivität an einen anderen Bot weiter.

Details zum Konstruktor

BotFrameworkHttpClient(ICredentialProvider, string)

Erstellt eine neue Instanz der BotFrameworkHttpClient-Klasse .

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

Parameter

credentialProvider

ICredentialProvider

Eine Instanz von ICredentialProvider.

channelService

string

Optional. Der Kanaldienst.

Details zur Methode

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

Leitet eine Aktivität an einen anderen Bot weiter.

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

Parameter

fromBotId

string

Die MicrosoftAppId des Bots, der die Aktivität sendet.

toBotId

string

Die MicrosoftAppId des Bots, der die Aktivität empfängt.

toUrl

string

Die URL des Bots, der die Aktivität empfängt.

serviceUrl

string

Die Rückruf-URL für den Skillhost.

conversationId

string

Eine Konversations-ID, die für die Unterhaltung mit dem Skill verwendet werden soll.

activity

Activity

Aktivität, die weitergeleitet werden soll.

Gibt zurück

Promise<InvokeResponse<T>>

Eine Zusage, die den asynchronen Vorgang darstellt.