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
Copy file name to clipboardExpand all lines: messaging/work-objects/README.md
+17-14Lines changed: 17 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,32 +6,35 @@ You can also [post](https://docs.slack.dev/messaging/work-objects/#implementatio
6
6
7
7
Read the [docs](https://docs.slack.dev/messaging/work-objects/) to learn more!
8
8
9
-
## Running locally
9
+
## Setup
10
10
11
-
### 0. Create an app
11
+
### Option 1: Create a new app with the Slack CLI
12
12
13
-
Create an app and add `myappdomain.com`as an [app unfurl domain](https://docs.slack.dev/messaging/unfurling-links-in-messages/#configuring_domains) (or update the unfurl URLs in `metadata.py` with your domain). Also enable [Work Object Previews](https://docs.slack.dev/messaging/work-objects/#implementation) for your app.
13
+
```bash
14
+
slack init && slack run
15
+
```
16
+
17
+
### Option 2: Create a Slack App in the UI and copy over your tokens
14
18
15
-
### 1. Setup environment variables
19
+
Create an app on [https://api.slack.com/apps](https://api.slack.com/apps) from the app manifest in this repo (`manifest.json`).
16
20
17
-
```zsh
18
-
# Replace with your tokens
21
+
Configure environment variables:
22
+
```bash
23
+
# OAuth & Permissions → Bot User OAuth Token
19
24
export SLACK_BOT_TOKEN=<your-bot-token>
20
-
export SLACK_APP_TOKEN=<your-app-level-token>
25
+
# Basic Information → App-Level Tokens (create one with the `connections:write` scope)
0 commit comments