UNPKG

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