- 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
Scopesadd 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.jsonfile -
Run it through
jqto get desired informationcat dump.json | jq .channels[].name > res.txt
output json object has an entry
channels.channelsis a list. Each object in the list has an entryname.