Microsoft.Bot.Connector.HttpClientEx Class Reference

Static Public Member Functions

static async Task AddAPIAuthorization (this HttpClient client, string appId=null, string password=null)
 add Bearer authorization token for making API calls More...
 

Detailed Description

Definition at line 11 of file HttpClientEx.cs.

Member Function Documentation

static async Task Microsoft.Bot.Connector.HttpClientEx.AddAPIAuthorization ( this HttpClient  client,
string  appId = null,
string  password = null 
)
inlinestatic

add Bearer authorization token for making API calls

Parameters
clientThe http client
appId(default)Setting["microsoftAppId"]
password(default)Setting["microsoftAppPassword"]
Returns
HttpClient with Bearer Authorization header

Definition at line 20 of file HttpClientEx.cs.


The documentation for this class was generated from the following file: