Language

SlackApi Class

Definition

Provides methods for calling the Slack Web API using HTTP requests. This class enables integration with Slack by sending API method calls and handling responses.

public class SlackApi
type SlackApi = class
Public Class SlackApi
Inheritance
SlackApi

Remarks

Instances of this class use an injected IHttpClientFactory to create named HTTP clients for making requests to Slack. The class is intended for use in applications that need to interact with Slack's API endpoints, such as sending messages, retrieving user information, or managing channels.

Constructors

Name Description
SlackApi(IHttpClientFactory, Action)

Initializes a new instance of the SlackApi class.

SlackApi(IHttpClientFactory)

Methods

Name Description
CallAsync(String, Object, String, CancellationToken)

Invokes a Slack Web API method asynchronously using the specified method name, options, and authentication token.

Applies to