SigningSecret = Environment.GetEnvironmentVariable("SIGNING_SECRET")īuilder.Services. var builder = WebApplication.CreateBuilder(args) Implement the ITokenStore to store/remote on install/uninstall flows. Return Task.FromResult(new EventHandledResponse("yolo")) Public Task Handle(EventMetaData meta, AppMentionEvent stuff!") Public bool ShouldHandle(AppMentionEvent slackEvent) => ("hi") Needed to verify that incoming event payloads are from SlackĬ.SigningSecret = Environment.GetEnvironmentVariable("SIGNING_SECRET") Single workspace Slack app var builder = WebApplication.CreateBuilder(args) $ dotnet add package Supported eventsĪ slack app can be distributed either as a single-workspace application (1 single Slack token), or as a distributed Slack application where other workspaces can install it them self either via a web page, or via the Slack App Store. Select Slack Web API Set Up Slack WEB API as shown: 3. From the Intelligence console, select Integrations Workflow Connectors and click Add. Installing with OAuth Use OAuth 2.0 to provide an installation flow that allows your apps to be added to any workspace, and distributed in the App Directory. Navigate to Features > OAuth & Permissions and go to the OAuth Tokens for Your Workspace section. An opinionated ASP.NET Core middleware to create simple Slackbots using the Slack event API. Learn how to create a new Slack app that uses the latest and greatest installation and permissions model.
0 Comments
Leave a Reply. |