How to save configuration items in a Slack application

How to store persistent data in Slack Application?

For example, the Opsidian slack app has the command to add your AWS keys. Where does he store these keys and how does he know to use specific keys for certain commands?

Is it on the side of Opsidian? If so, just use team.info endpoint and use this command to match it?

I searched their documentation and google with no luck.

+3
source share
1 answer

The Slack app usually consists of program code (e.g. PHP) and a database (e.g. MySQL) that runs on the server and interacts with Slack through one of the APIs. All information about a specific Slack command is stored in a user database using a unique command identifier as a key. The server must be accessible from the Internet so that Slack can communicate with it. The server for running the application program code and a custom database for the application is not provided by Slack, but it must be configured and maintained by the developer of the Slack application.

In Slack mode, only the basic configuration for the application is stored (everything that you see in the "Your Applications" section, for example, the verification token) and some basic settings for each command after installation (for example, that the application is installed and who installed it). Any other specific information of the application must be stored by the application in its database.

The Slack application developer must also provide their own website to allow the installation of the Slack application for the team. See this answer for more information on installation and how to obtain an access token for a specific command.

+2
source

Source: https://habr.com/ru/post/1013258/


All Articles