1 | VERSION: '1'
|
2 | ENDPOINT: https://slack.com/api
|
3 |
|
4 | auth:
|
5 | token: xoxp-139455775026-139455775090-147751461120-f224ed6ffee029869a0f138d0859e7d6
|
6 |
|
7 | GET /users.getPresence:
|
8 | ALIAS: presence
|
9 | PARAMS:
|
10 | <<:
|
11 |
|
12 | GET /channels.list:
|
13 | ALIAS: channel-list
|
14 | PARAMS:
|
15 | <<:
|
16 | exclude_archived: true
|
17 |
|
18 | GET /channels.info:
|
19 | ALIAS: channel-info
|
20 | PARAMS:
|
21 | <<:
|
22 | channel: $channel-list.response.body.channels.0.id
|
23 |
|
24 | POST /chat.postMessage:
|
25 | ALIAS: new-message
|
26 | PARAMS:
|
27 | <<:
|
28 | channel: $channel-info.response.body.channel.id
|
29 | text: 'Hey Seich!'
|
30 | parse: full
|
31 | link_names: true
|
32 | username: Beau
|
33 |
|
34 | GET /users.list:
|
35 | ALIAS: user-list
|
36 | PARAMS:
|
37 | <<:
|