- Go to https://api.slack.com/
- Click "Start Building"
- Create a new app
As a reference: conversations.list
can be used with the permission channels:read
.
- Go to
Features -> OAuth & Permissions
- Navigate to
Scopes
add the permission, e.g.channels:read
- Go to
Settings -> Install App
- Go to
Settings -> Install App
- Copy the token
xo......202
- Go to your needed call, e.g. conversations.list
- Choose "Tester"
- Paste token
- (Optionally) Increase limit
- Choose "Test Method"
-
Save the output to a
dump.json
file -
Run it through
jq
to get desired informationcat dump.json | jq .channels[].name > res.txt
output json object has an entry
channels
.channels
is a list. Each object in the list has an entryname
.