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.

AppsEventAuthorizationsListRequest Methods

The following are methods for AppsEventAuthorizationsListRequest.

builder()

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.

AppsEventAuthorizationsListRequest.Builder Methods

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

build()

Signature

Return Value

Type: Slack.AppsEventAuthorizationsListRequest

cursor(cursor)

Signature

Parameters

cursor

Type: String

Return Value

Type: Slack.AppsEventAuthorizationsListRequest.Builder

eventContext(eventContext)

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

limitValue(limitValue)

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.

AppsEventAuthorizationsListResponse Methods

This class contains standard response methods.

The following are methods for AppsEventAuthorizationsListResponse.

getAuthorizations()

Signature

Return Value

Type: List<Slack.AppsEventAuthorizationsListResponse.Authorization>

getCursorNext()

Signature

Return Value

Type: String

setAuthorizations(authorizations)

Signature

Parameters

authorization

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

Return Value

Type: void

setCursorNext(cursorNext)

Signature

Parameters

Type: String

Return Value

Type: void


AppsEventAuthorizationsListResponse.Authorization Methods

The following are methods for AppsEventAuthorizationsListResponse.Authorization.

getEnterpriseId()

Signature

Return Value

Type: String

getIsBot()

Signature

Return Value

Type: Boolean

getIsEnterpriseInstall()

Signature

Return Value

Type: Boolean

getTeamId()

Gets the workspace ID.

Signature

Return Value

Type: String

getUserId()

Gets the ID of the Slack user.

Signature

Return Value

Type: String

setEnterpriseId(enterpriseId)

Sets the enterprise ID.

Signature

Parameters

enterpriseId

Type: String

Return Value

Type: void

setIsBot(isBot)

Signature

Parameters

isBot

Type: Boolean

Return Value

Type: void

setIsEnterpriseInstall(isEnterpriseInstall)

Signature

Parameters

isEnterpriseInstall

Type: Boolean

Return Value

Type: void

setTeamId(teamId)

Sets the workspace ID.

Signature

Parameters

teamId

Type: String

Return Value

Type: void

setUserId(userId)

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.

AppsUninstallRequest Methods

The following are methods for AppsUninstallRequest.

builder()

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.

AppsUninstallRequest.Builder Methods

The following are methods for AppsUninstallRequest.Builder.

build()

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

Signature

Return Value

Type: Slack.AppsUninstallRequest

clientId(clientId)

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

Signature

Parameters

clientId

Type: String

Return Value

Type: Slack.AppsUninstallRequest.Builder

clientSecret(clientSecret)

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.

AppsUninstallResponse Methods

This class contains standard response methods.