Work with Apps

The following are Apex classes for the Slack apps API methods.

Sends a request to get a list of authorizations for the given event context. Each authorization represents an app installation that the event is visible to.

Usage

See Slack’s apps.event.authorizations.list method.

The following are methods for AppsEventAuthorizationsListRequest.

Builds a request object that's used when executing the API call.

Signature

Return Value

Type: Slack.AppsEventAuthorizationsListRequest.Builder


Contains methods to build an instance of the Slack.AppsEventAuthorizationsListRequest class.

A Builder object is obtained by invoking one of the AppsEventAuthorizationsListRequest.Builder methods defined by the AppsEventAuthorizationsListRequest class.

The following are methods for AppsEventAuthorizationsListRequest.Builder. These methods are optional unless specified otherwise.

Signature

Return Value

Type: Slack.AppsEventAuthorizationsListRequest

Signature

Parameters

cursor

Type: String

Return Value

Type: Slack.AppsEventAuthorizationsListRequest.Builder

Required. The event context identifies an event in each event payload sent to your app.

Signature

Parameters

eventContext

Type: String

Return Value

Type: Slack.AppsEventAuthorizationsListRequest.Builder

Signature

Parameters

limitValue

Type: Integer

Return Value

Type: Slack.AppsEventAuthorizationsListRequest.Builder


Gets a list of authorizations for the given event context. Each authorization represents an app installation that the event is visible to.

This class contains standard response methods.

The following are methods for AppsEventAuthorizationsListResponse.

Signature

Return Value

Type: List<Slack.AppsEventAuthorizationsListResponse.Authorization>

Signature

Return Value

Type: String

Signature

Parameters

authorization

Type: List<Slack.AppsEventAuthorizationsListResponse.Authorization>Add link.

Return Value

Type: void

Signature

Parameters

Type: String

Return Value

Type: void


Call these methods to see all the installations of your app than an event is visible to.

The following are methods for AppsEventAuthorizationsListResponse.Authorization.

Signature

Return Value

Type: String

Signature

Return Value

Type: Boolean

Signature

Return Value

Type: Boolean

Gets the workspace ID.

Signature

Return Value

Type: String

Gets the ID of the Slack user.

Signature

Return Value

Type: String

Sets the enterprise ID.

Signature

Parameters

enterpriseId

Type: String

Return Value

Type: void

Signature

Parameters

isBot

Type: Boolean

Return Value

Type: void

Signature

Parameters

isEnterpriseInstall

Type: Boolean

Return Value

Type: void

Sets the workspace ID.

Signature

Parameters

teamId

Type: String

Return Value

Type: void

Sets the ID of the Slack user.

Signature

Parameters

userId

Type: String

Return Value

Type: void


Sends a request to uninstall your app from a workspace.

The following are methods for AppsUninstallRequest.

Builds a request object that's used when executing the API call.

Signature

Return Value

Type: Slack.AppsUninstallRequest.Builder


Contains methods to build an instance of the Slack.AppsUninstallRequest class.

A Builder object is obtained by invoking one of the AppsUninstallRequest.Builder methods defined by the AppsUninstallRequest class.

The following are methods for AppsUninstallRequest.Builder.

Required. Builds an instance of the Slack.AppsUninstallRequest class.

Signature

Return Value

Type: Slack.AppsUninstallRequest

Required. The client ID that's issued when you created your Slack app.

Signature

Parameters

clientId

Type: String

Return Value

Type: Slack.AppsUninstallRequest.Builder

Required. The client secret that's issued when you created your Slack app.

Signature

Parameters

clientSecret

Type: String

Return Value

Type: Slack.AppsUninstallRequest.Builder


Uninstall your app from a workspace.

This class contains standard response methods.