Skip to content

Commit 76cbd2c

Browse files
committed
v1.3.0
Added how to get token in README
1 parent 1f71730 commit 76cbd2c

File tree

2 files changed

+26
-4
lines changed

2 files changed

+26
-4
lines changed

README.md

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,28 @@
11
# slack-dump
22
Generate an export of Channel, Private Group and / or Direct Message history and export it as a ZIP file compatible with Slack's import tool.
33

4+
## Token
5+
6+
1. Visit https://api.slack.com/
7+
2. Click "Create an app"
8+
3. Select "From scratch"
9+
4. Input App Name and pick a workspace
10+
5. Click "Features" → "OAuth & Permissions" of sidebar
11+
6. Go to "Scopes" and set as below for Bot tokens and User tokens
12+
13+
* channels:read
14+
* groups:read
15+
* im:read
16+
* mpim:read
17+
* channels:history
18+
* groups:history
19+
* im:history
20+
* mpim:history
21+
22+
7. Go to "OAuth Tokens for Your Workspace" and click "Install to Workspace"
23+
8. Accept
24+
9. OAuth Token is displayed in "OAuth Tokens for Your Workspace"
25+
426
## Usage
527

628
```
@@ -13,19 +35,19 @@ USAGE:
1335
main [global options] command [command options] [arguments...]
1436
1537
VERSION:
16-
1.2.1
38+
1.3.0
1739
1840
AUTHORS:
1941
Joe Fitzgerald <jfitzgerald@pivotal.io>
2042
Sunyong Lim <dicebattle@gmail.com>
2143
Yoshihiro Misawa <myoshi321go@gmail.com>
22-
takameron <contact@takameron.info>
44+
takameron <tech@takameron.info>
2345
2446
COMMANDS:
2547
help, h Shows a list of commands or help for one command
2648
2749
GLOBAL OPTIONS:
28-
--token value, -t value a Slack API token: (see: https://api.slack.com/web) [$SLACK_API_TOKEN]
50+
--token value, -t value a Slack API token: (see: https://api.slack.com/apis) [$SLACK_API_TOKEN]
2951
--output value, -o value Output directory path. Default: current directory path [$]
3052
--help, -h show help (default: false)
3153
--version, -v print the version (default: false)

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func main() {
6464
Email: "tech@takameron.info",
6565
},
6666
}
67-
app.Version = "1.2.1"
67+
app.Version = "1.3.0"
6868
app.Action = func(c *cli.Context) error {
6969
token := c.String("token")
7070
if token == "" {

0 commit comments

Comments
 (0)