BotFrameworkHttpClient class

HttpClient for calling skills from a Node.js BotBuilder V4 SDK bot.

Constructors

BotFrameworkHttpClient(ICredentialProvider, string)

Methods

postActivity(string, string, string, string, string, Activity)

Forwards an activity to a another bot.

postActivity(string, string, string, string, string, Activity)

Constructor Details

BotFrameworkHttpClient(ICredentialProvider, string)

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

Parameters

credentialProvider
ICredentialProvider
channelService
string

Method Details

postActivity(string, string, string, string, string, Activity)

Forwards an activity to a another bot.

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

Parameters

fromBotId
string

The MicrosoftAppId of the bot sending the activity.

toBotId
string

The MicrosoftAppId of the bot receiving the activity.

toUrl
string

The URL of the bot receiving the activity.

serviceUrl
string

The callback Url for the skill host.

conversationId
string

A conversation ID to use for the conversation with the skill.

activity
Activity

Activity to forward.

Returns

Promise<InvokeResponse<T>>

postActivity(string, string, string, string, string, Activity)

function postActivity(fromBotId: string, toBotId: string, toUrl: string, serviceUrl: string, conversationId: string, activity: Activity)

Parameters

fromBotId
string
toBotId
string
toUrl
string
serviceUrl
string
conversationId
string
activity
Activity

Returns

Promise<InvokeResponse>