0
votes

I want to use slash commands in Slack to integrate with an external API. In the API I need to verify a request from Slack. The docs suggest that I should use the Python Events API SDK for that. Can anyone explain how exactly I should use that API? Can I listen for a particular event corresponding to slash commands, or should I somehow reuse the request verification code from that API?

1

1 Answers

0
votes

The docs suggest that you should aim to re-use an existing library that handles the signed secret verification, rather than writing your own code to do it, it possible.

But if none of the suggested libraries work you, I would suggest to rather write that code yourself then introducing a large library with 99% functions that you do not need. Especially since the algorithm is not that complex.

And no, Events and Slack commands are different concepts. So there is not slash command event to listen for.