BotFrameworkHttpClient class

Advertencia

Esta API ya está en desuso.

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.

Constructores

BotFrameworkHttpClient(ICredentialProvider, string)

Crea una nueva instancia de la clase BotFrameworkHttpClient .

Métodos

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

Reenvía una actividad a otro bot.

Detalles del constructor

BotFrameworkHttpClient(ICredentialProvider, string)

Crea una nueva instancia de la clase BotFrameworkHttpClient .

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

Parámetros

credentialProvider

ICredentialProvider

Instancia de ICredentialProvider.

channelService

string

Opcional. El servicio de canal.

Detalles del método

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

Reenvía una actividad a otro bot.

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

Parámetros

fromBotId

string

MicrosoftAppId del bot que envía la actividad.

toBotId

string

MicrosoftAppId del bot que recibe la actividad.

toUrl

string

Dirección URL del bot que recibe la actividad.

serviceUrl

string

Dirección URL de devolución de llamada del host de aptitudes.

conversationId

string

Identificador de conversación que se va a usar para la conversación con la aptitud.

activity

Activity

Actividad que se va a reenviar.

Devoluciones

Promise<InvokeResponse<T>>

Promesa que representa la operación asincrónica.