BotFrameworkHttpClient class
Peringatan
API ini sudah tidak digunakan lagi.
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.
Konstruktor
| Bot |
Membuat instans baru kelas BotFrameworkHttpClient |
Metode
| post |
Meneruskan aktivitas ke bot lain. |
Detail Konstruktor
BotFrameworkHttpClient(ICredentialProvider, string)
Membuat instans baru kelas BotFrameworkHttpClient
new BotFrameworkHttpClient(credentialProvider: ICredentialProvider, channelService?: string)
Parameter
- credentialProvider
-
ICredentialProvider
Instans ICredentialProvider.
- channelService
-
string
Fakultatif. Layanan saluran.
Detail Metode
postActivity<T>(string, string, string, string, string, Activity)
Meneruskan aktivitas ke bot lain.
function postActivity<T>(fromBotId: string, toBotId: string, toUrl: string, serviceUrl: string, conversationId: string, activity: Activity): Promise<InvokeResponse<T>>
Parameter
- fromBotId
-
string
MicrosoftAppId dari bot yang mengirim aktivitas.
- toBotId
-
string
MicrosoftAppId dari bot yang menerima aktivitas.
- toUrl
-
string
URL bot yang menerima aktivitas.
- serviceUrl
-
string
Url panggilan balik untuk host keterampilan.
- conversationId
-
string
ID percakapan yang digunakan untuk percakapan dengan keterampilan.
- activity
-
Activity
Aktivitas untuk diteruskan.
Mengembalikan
Promise<InvokeResponse<T>>
Janji yang mewakili operasi asinkron.