BotFrameworkHttpClient class
Avviso
Questa API è ora deprecata.
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.
Costruttori
| Bot |
Crea una nuova istanza della classe BotFrameworkHttpClient |
Metodi
| post |
Inoltra un'attività a un altro bot. |
Dettagli costruttore
BotFrameworkHttpClient(ICredentialProvider, string)
Crea una nuova istanza della classe BotFrameworkHttpClient
new BotFrameworkHttpClient(credentialProvider: ICredentialProvider, channelService?: string)
Parametri
- credentialProvider
-
ICredentialProvider
Istanza di ICredentialProvider.
- channelService
-
string
Opzionale. Servizio di canale.
Dettagli metodo
postActivity<T>(string, string, string, string, string, Activity)
Inoltra un'attività a un altro bot.
function postActivity<T>(fromBotId: string, toBotId: string, toUrl: string, serviceUrl: string, conversationId: string, activity: Activity): Promise<InvokeResponse<T>>
Parametri
- fromBotId
-
string
MicrosoftAppId del bot che invia l'attività.
- toBotId
-
string
MicrosoftAppId del bot che riceve l'attività.
- toUrl
-
string
URL del bot che riceve l'attività.
- serviceUrl
-
string
URL di callback per l'host di competenze.
- conversationId
-
string
ID conversazione da usare per la conversazione con la competenza.
- activity
-
Activity
Attività da inoltrare.
Restituisce
Promise<InvokeResponse<T>>
Promessa che rappresenta l'operazione asincrona.