You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before getting started, make sure you have a development workspace where you have permissions to install apps. If you don’t have one setup, go ahead and [create one](https://slack.com/create).
6
+
## Setup
7
+
8
+
Before getting started, first make sure you have a development workspace where
9
+
you have permission to install apps. **Please note that the features in this
10
+
project require that the workspace be part of
11
+
[a Slack paid plan](https://slack.com/pricing).**
12
+
13
+
### Developer Program
14
+
15
+
Join the [Slack Developer Program](https://api.slack.com/developer-program) for
16
+
exclusive access to sandbox environments for building and testing your apps,
17
+
tooling, and resources created to help developers build and grow.
Every incoming request is routed to a "listener". Inside this directory, we group each listener based on the Slack Platform feature used, so `/listeners/shortcuts` handles incoming [Shortcuts](https://api.slack.com/interactivity/shortcuts) requests, `/listeners/views` handles [View submissions](https://api.slack.com/reference/interaction-payloads/views#view_submission), and so on.
115
+
Every incoming request is routed to a "listener". Inside this directory, we group each listener based on the Slack Platform feature used, so `/listeners/actions` handles incoming [Actions](https://docs.slack.dev/reference/interaction-payloads/block_actions-payload) requests and `/listeners/functions` handles [Workflow Steps](https://docs.slack.dev/workflows/workflow-steps).
94
116
95
117
### `/logback.xml`
96
118
@@ -99,29 +121,3 @@ Every incoming request is routed to a "listener". Inside this directory, we grou
99
121
### Tests
100
122
101
123
This project provides some sample unit tests. They can be found in `src/test`. They are to be used as examples to show how unit tests can be implemented. **As you modify this project don't hesitate to modify, add, or remove these tests.**
102
-
103
-
## App Distribution / OAuth
104
-
105
-
Only implement OAuth if you plan to distribute your application across multiple workspaces. A separate `OAuthMain.java` file can be found with relevant OAuth settings.
106
-
107
-
When using OAuth, Slack requires a public URL where it can send requests. In this template app, we've used [`ngrok`](https://ngrok.com/download). Checkout [this guide](https://ngrok.com/docs#getting-started-expose) for setting it up.
108
-
109
-
Start `ngrok` to access the app on an external network and create a redirect URL for OAuth.
110
-
111
-
```
112
-
ngrok http 3000
113
-
```
114
-
115
-
This output should include a forwarding address for `http` and `https` (we'll use `https`). It should look something like the following:
Navigate to **OAuth & Permissions** in your app configuration and click **Add a Redirect URL**. The redirect URL should be set to your `ngrok` forwarding address with the `slack/oauth/callback` path appended. For example:
122
-
123
-
```
124
-
https://3cb89939.ngrok.io/slack/oauth/callback
125
-
```
126
-
127
-
*NOTE:* if you do not require OAuth you can remove all `OAUTH DEPENDENCIES` in the `pom.xml` or `build.gradle` files, along with `src/main/java/OAuthMain.java`
0 commit comments