Skip to content

Latest commit

 

History

History
189 lines (140 loc) · 2.94 KB

Apps.md

File metadata and controls

189 lines (140 loc) · 2.94 KB

Slack Apps API Methods (Go Back)

This PHP class provides methods to interact with the Slack Apps API. Below are instructions on how to use each method.

Method: listActivities

listActivities(
    string $appId,
    ?string $componentId = null,
    ?string $componentType = null,
    ?string $cursor = null,
    ?int $limit = null,
    ?string $logEventType = null,
    ?int $maxDateCreated = null,
    ?int $minDateCreated = null,
    ?string $minLogLevel = null,
    ?string $sortDirection = null,
    ?string $source = null,
    ?string $teamId = null,
    ?string $traceId = null
)

Retrieve a list of activities for an app.

Method: deleteExternalAuth

deleteExternalAuth(
    ?string $appId = null,
    ?string $externalTokenId = null,
    ?string $providerKey = null
)

Delete external authentication records for an app.

Method: getExternalAuth

getExternalAuth(
    string $externalTokenId,
    ?bool $forceRefresh = null
)

Retrieve external authentication data for an app.

Method: openConnection

openConnection()

Open a connection for an app.

Method: deleteDatastore

deleteDatastore(
    string $datastore,
    string $id,
    ?string $appId = null
)

Delete data from a datastore for an app.

Method: getDatastore

getDatastore(
    string $datastore,
    string $id,
    ?string $appId = null
)

Retrieve data from a datastore for an app.

Method: putDatastore

putDatastore(
    string $datastore,
    array $item,
    ?string $appId = null
)

Put data into a datastore for an app.

Method: queryDatastore

queryDatastore(
    string $datastore,
    ?string $appId = null,
    ?string $cursor = null,
    ?string $expression = null,
    ?array $expressionAttributes = null,
    ?array $expressionValues = null,
    ?int $limit = null
)

Query data from a datastore for an app.

Method: updateDatastore

updateDatastore(
    string $datastore,
    array $item,
    ?string $appId = null
)

Update data in a datastore for an app.

Method: listEventAuthorizations

listEventAuthorizations(
    string $eventContext,
    ?string $cursor = null,
    ?int $limit = null
)

List event authorizations for an app.

Method: createManifest

createManifest(array $manifest)

Create a manifest for an app.

Method: deleteManifest

deleteManifest(string $appId)

Delete a manifest for an app.

Method: exportManifest

exportManifest(string $appId)

Export a manifest for an app.

Method: updateManifest

updateManifest(
    string $appId,
    array $manifest
)

Update a manifest for an app.

Method: validateManifest

validateManifest(
    array $manifest,
    ?string $appId = null
)

Validate a manifest for an app.

Method: uninstallApp

uninstallApp(
    string $clientId,
    string $clientSecret
)

Uninstall an app using its client ID and client secret.