slack-ruby-client 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/slack/version.rb +1 -1
- data/lib/slack/web/api/endpoints/channels.rb +16 -16
- data/lib/slack/web/api/endpoints/chat.rb +11 -5
- data/lib/slack/web/api/endpoints/files.rb +4 -4
- data/lib/slack/web/api/endpoints/groups.rb +19 -19
- data/lib/slack/web/api/endpoints/im.rb +7 -7
- data/lib/slack/web/api/endpoints/pins.rb +5 -5
- data/lib/slack/web/api/endpoints/reactions.rb +7 -7
- data/lib/slack/web/api/endpoints/stars.rb +37 -1
- data/lib/slack/web/api/endpoints/users.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d12ef0347f8c84a91ad907b2ae329f5ca2abe1cd
|
4
|
+
data.tar.gz: 8377fe5d8228f8c7abdcbfb66c0b7953dc5a54df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1de719bc5339ae3022e36b7ed197d5a4e1e70f611824cca3f042fc588dd8d89ef65c27dc5825d68d876b1f14b89b8d8c36ea3123d5790fd8bfafbc3f878af314
|
7
|
+
data.tar.gz: a2b144b55158facc2c0db9fad0f16cab541817c3ac6d74d81ac77fb5a42d3e42f500ef165bd28ae2234c121b5de72f88d6fb27c8a4048f3106f96a4406f118ef
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
### 0.3.1 (10/16/2015)
|
2
|
+
|
3
|
+
* Added `stars.list`, `add` and `remove` - [@dblock](https://github.com/dblock).
|
4
|
+
* Added `attachments`, `parse` and `link_names` to `chat.update` - [@dblock](https://github.com/dblock).
|
5
|
+
|
1
6
|
### 0.3.0 (9/1/2015)
|
2
7
|
|
3
8
|
* Added `team.info` and `accessLogs` - [@dblock](https://github.com/dblock).
|
data/lib/slack/version.rb
CHANGED
@@ -8,7 +8,7 @@ module Slack
|
|
8
8
|
#
|
9
9
|
# This method archives a channel.
|
10
10
|
#
|
11
|
-
# @option options [
|
11
|
+
# @option options [channel] :channel
|
12
12
|
# Channel to archive.
|
13
13
|
# @see https://api.slack.com/methods/channels.archive
|
14
14
|
# @see https://github.com/dblock/slack-api-ref/blob/master/methods/channels.archive.json
|
@@ -34,11 +34,11 @@ module Slack
|
|
34
34
|
# To read the entire history for a channel, call the method with no latest or
|
35
35
|
# oldest arguments, and then continue paging using the instructions below.
|
36
36
|
#
|
37
|
-
# @option options [
|
37
|
+
# @option options [channel] :channel
|
38
38
|
# Channel to fetch history for.
|
39
|
-
# @option options [
|
39
|
+
# @option options [timestamp] :latest
|
40
40
|
# End of time range of messages to include in results.
|
41
|
-
# @option options [
|
41
|
+
# @option options [timestamp] :oldest
|
42
42
|
# Start of time range of messages to include in results.
|
43
43
|
# @option options [Object] :inclusive
|
44
44
|
# Include messages with latest or oldest timestamp in results.
|
@@ -52,7 +52,7 @@ module Slack
|
|
52
52
|
#
|
53
53
|
# This method returns information about a team channel.
|
54
54
|
#
|
55
|
-
# @option options [
|
55
|
+
# @option options [channel] :channel
|
56
56
|
# Channel to get info on.
|
57
57
|
# @see https://api.slack.com/methods/channels.info
|
58
58
|
# @see https://github.com/dblock/slack-api-ref/blob/master/methods/channels.info.json
|
@@ -64,9 +64,9 @@ module Slack
|
|
64
64
|
#
|
65
65
|
# This method is used to invite a user to a channel. The calling user must be a member of the channel.
|
66
66
|
#
|
67
|
-
# @option options [
|
67
|
+
# @option options [channel] :channel
|
68
68
|
# Channel to invite user to.
|
69
|
-
# @option options [
|
69
|
+
# @option options [user] :user
|
70
70
|
# User to invite to channel.
|
71
71
|
# @see https://api.slack.com/methods/channels.invite
|
72
72
|
# @see https://github.com/dblock/slack-api-ref/blob/master/methods/channels.invite.json
|
@@ -92,9 +92,9 @@ module Slack
|
|
92
92
|
#
|
93
93
|
# This method allows a user to remove another member from a team channel.
|
94
94
|
#
|
95
|
-
# @option options [
|
95
|
+
# @option options [channel] :channel
|
96
96
|
# Channel to remove user from.
|
97
|
-
# @option options [
|
97
|
+
# @option options [user] :user
|
98
98
|
# User to remove from channel.
|
99
99
|
# @see https://api.slack.com/methods/channels.kick
|
100
100
|
# @see https://github.com/dblock/slack-api-ref/blob/master/methods/channels.kick.json
|
@@ -107,7 +107,7 @@ module Slack
|
|
107
107
|
#
|
108
108
|
# This method is used to leave a channel.
|
109
109
|
#
|
110
|
-
# @option options [
|
110
|
+
# @option options [channel] :channel
|
111
111
|
# Channel to leave.
|
112
112
|
# @see https://api.slack.com/methods/channels.leave
|
113
113
|
# @see https://github.com/dblock/slack-api-ref/blob/master/methods/channels.leave.json
|
@@ -132,9 +132,9 @@ module Slack
|
|
132
132
|
#
|
133
133
|
# This method moves the read cursor in a channel.
|
134
134
|
#
|
135
|
-
# @option options [
|
135
|
+
# @option options [channel] :channel
|
136
136
|
# Channel to set reading cursor in.
|
137
|
-
# @option options [
|
137
|
+
# @option options [timestamp] :ts
|
138
138
|
# Timestamp of the most recently seen message.
|
139
139
|
# @see https://api.slack.com/methods/channels.mark
|
140
140
|
# @see https://github.com/dblock/slack-api-ref/blob/master/methods/channels.mark.json
|
@@ -147,7 +147,7 @@ module Slack
|
|
147
147
|
#
|
148
148
|
# This method renames a team channel.
|
149
149
|
#
|
150
|
-
# @option options [
|
150
|
+
# @option options [channel] :channel
|
151
151
|
# Channel to rename.
|
152
152
|
# @option options [Object] :name
|
153
153
|
# New name for channel.
|
@@ -162,7 +162,7 @@ module Slack
|
|
162
162
|
#
|
163
163
|
# This method is used to change the purpose of a channel. The calling user must be a member of the channel.
|
164
164
|
#
|
165
|
-
# @option options [
|
165
|
+
# @option options [channel] :channel
|
166
166
|
# Channel to set the purpose of.
|
167
167
|
# @option options [Object] :purpose
|
168
168
|
# The new purpose.
|
@@ -177,7 +177,7 @@ module Slack
|
|
177
177
|
#
|
178
178
|
# This method is used to change the topic of a channel. The calling user must be a member of the channel.
|
179
179
|
#
|
180
|
-
# @option options [
|
180
|
+
# @option options [channel] :channel
|
181
181
|
# Channel to set the topic of.
|
182
182
|
# @option options [Object] :topic
|
183
183
|
# The new topic.
|
@@ -192,7 +192,7 @@ module Slack
|
|
192
192
|
#
|
193
193
|
# This method unarchives a channel. The calling user is added to the channel.
|
194
194
|
#
|
195
|
-
# @option options [
|
195
|
+
# @option options [channel] :channel
|
196
196
|
# Channel to unarchive.
|
197
197
|
# @see https://api.slack.com/methods/channels.unarchive
|
198
198
|
# @see https://github.com/dblock/slack-api-ref/blob/master/methods/channels.unarchive.json
|
@@ -8,9 +8,9 @@ module Slack
|
|
8
8
|
#
|
9
9
|
# This method deletes a message from a channel.
|
10
10
|
#
|
11
|
-
# @option options [
|
11
|
+
# @option options [timestamp] :ts
|
12
12
|
# Timestamp of the message to be deleted.
|
13
|
-
# @option options [
|
13
|
+
# @option options [channel] :channel
|
14
14
|
# Channel containing the message to be deleted.
|
15
15
|
# @see https://api.slack.com/methods/chat.delete
|
16
16
|
# @see https://github.com/dblock/slack-api-ref/blob/master/methods/chat.delete.json
|
@@ -23,7 +23,7 @@ module Slack
|
|
23
23
|
#
|
24
24
|
# This method posts a message to a public channel, private group, or IM channel.
|
25
25
|
#
|
26
|
-
# @option options [
|
26
|
+
# @option options [channel] :channel
|
27
27
|
# Channel, private group, or IM channel to send message to. Can be an encoded ID, or a name. See below for more details.
|
28
28
|
# @option options [Object] :text
|
29
29
|
# Text of the message to send. See below for an explanation of formatting.
|
@@ -56,12 +56,18 @@ module Slack
|
|
56
56
|
#
|
57
57
|
# This method updates a message in a channel.
|
58
58
|
#
|
59
|
-
# @option options [
|
59
|
+
# @option options [timestamp] :ts
|
60
60
|
# Timestamp of the message to be updated.
|
61
|
-
# @option options [
|
61
|
+
# @option options [channel] :channel
|
62
62
|
# Channel containing the message to be updated.
|
63
63
|
# @option options [Object] :text
|
64
64
|
# New text for the message, using the default formatting rules.
|
65
|
+
# @option options [Object] :attachments
|
66
|
+
# Structured message attachments.
|
67
|
+
# @option options [Object] :parse
|
68
|
+
# Change how messages are treated. See below.
|
69
|
+
# @option options [Object] :link_names
|
70
|
+
# Find and link channel names and usernames.
|
65
71
|
# @see https://api.slack.com/methods/chat.update
|
66
72
|
# @see https://github.com/dblock/slack-api-ref/blob/master/methods/chat.update.json
|
67
73
|
def chat_update(options = {})
|
@@ -8,7 +8,7 @@ module Slack
|
|
8
8
|
#
|
9
9
|
# This method deletes a file from your team.
|
10
10
|
#
|
11
|
-
# @option options [
|
11
|
+
# @option options [file] :file
|
12
12
|
# ID of file to delete.
|
13
13
|
# @see https://api.slack.com/methods/files.delete
|
14
14
|
# @see https://github.com/dblock/slack-api-ref/blob/master/methods/files.delete.json
|
@@ -20,7 +20,7 @@ module Slack
|
|
20
20
|
#
|
21
21
|
# This method returns information about a file in your team.
|
22
22
|
#
|
23
|
-
# @option options [
|
23
|
+
# @option options [file] :file
|
24
24
|
# File to fetch info for.
|
25
25
|
# @see https://api.slack.com/methods/files.info
|
26
26
|
# @see https://github.com/dblock/slack-api-ref/blob/master/methods/files.info.json
|
@@ -32,7 +32,7 @@ module Slack
|
|
32
32
|
#
|
33
33
|
# This method returns a list of files within the team. It can be filtered and sliced in various ways.
|
34
34
|
#
|
35
|
-
# @option options [
|
35
|
+
# @option options [user] :user
|
36
36
|
# Filter files created by a single user.
|
37
37
|
# @option options [Object] :ts_from
|
38
38
|
# Filter files created after this timestamp (inclusive).
|
@@ -61,7 +61,7 @@ module Slack
|
|
61
61
|
#
|
62
62
|
# This method allows you to create or upload an existing file.
|
63
63
|
#
|
64
|
-
# @option options [
|
64
|
+
# @option options [file] :file
|
65
65
|
# File contents via multipart/form-data.
|
66
66
|
# @option options [Object] :content
|
67
67
|
# File contents via a POST var.
|
@@ -8,7 +8,7 @@ module Slack
|
|
8
8
|
#
|
9
9
|
# This method archives a private group.
|
10
10
|
#
|
11
|
-
# @option options [
|
11
|
+
# @option options [group] :channel
|
12
12
|
# Private group to archive.
|
13
13
|
# @see https://api.slack.com/methods/groups.archive
|
14
14
|
# @see https://github.com/dblock/slack-api-ref/blob/master/methods/groups.archive.json
|
@@ -20,7 +20,7 @@ module Slack
|
|
20
20
|
#
|
21
21
|
# This method closes a private group.
|
22
22
|
#
|
23
|
-
# @option options [
|
23
|
+
# @option options [group] :channel
|
24
24
|
# Group to open.
|
25
25
|
# @see https://api.slack.com/methods/groups.close
|
26
26
|
# @see https://github.com/dblock/slack-api-ref/blob/master/methods/groups.close.json
|
@@ -44,7 +44,7 @@ module Slack
|
|
44
44
|
#
|
45
45
|
# This method takes an existing private group and performs the following steps:
|
46
46
|
#
|
47
|
-
# @option options [
|
47
|
+
# @option options [group] :channel
|
48
48
|
# Group to clone and archive.
|
49
49
|
# @see https://api.slack.com/methods/groups.createChild
|
50
50
|
# @see https://github.com/dblock/slack-api-ref/blob/master/methods/groups.createChild.json
|
@@ -58,11 +58,11 @@ module Slack
|
|
58
58
|
# To read the entire history for a group, call the method with no latest or
|
59
59
|
# oldest arguments, and then continue paging using the instructions below.
|
60
60
|
#
|
61
|
-
# @option options [
|
61
|
+
# @option options [group] :channel
|
62
62
|
# Group to fetch history for.
|
63
|
-
# @option options [
|
63
|
+
# @option options [timestamp] :latest
|
64
64
|
# End of time range of messages to include in results.
|
65
|
-
# @option options [
|
65
|
+
# @option options [timestamp] :oldest
|
66
66
|
# Start of time range of messages to include in results.
|
67
67
|
# @option options [Object] :inclusive
|
68
68
|
# Include messages with latest or oldest timestamp in results.
|
@@ -76,7 +76,7 @@ module Slack
|
|
76
76
|
#
|
77
77
|
# This method returns information about a private group.
|
78
78
|
#
|
79
|
-
# @option options [
|
79
|
+
# @option options [group] :channel
|
80
80
|
# Group to get info on.
|
81
81
|
# @see https://api.slack.com/methods/groups.info
|
82
82
|
# @see https://github.com/dblock/slack-api-ref/blob/master/methods/groups.info.json
|
@@ -88,9 +88,9 @@ module Slack
|
|
88
88
|
#
|
89
89
|
# This method is used to invite a user to a private group. The calling user must be a member of the group.
|
90
90
|
#
|
91
|
-
# @option options [
|
91
|
+
# @option options [group] :channel
|
92
92
|
# Private group to invite user to.
|
93
|
-
# @option options [
|
93
|
+
# @option options [user] :user
|
94
94
|
# User to invite.
|
95
95
|
# @see https://api.slack.com/methods/groups.invite
|
96
96
|
# @see https://github.com/dblock/slack-api-ref/blob/master/methods/groups.invite.json
|
@@ -103,9 +103,9 @@ module Slack
|
|
103
103
|
#
|
104
104
|
# This method allows a user to remove another member from a private group.
|
105
105
|
#
|
106
|
-
# @option options [
|
106
|
+
# @option options [group] :channel
|
107
107
|
# Group to remove user from.
|
108
|
-
# @option options [
|
108
|
+
# @option options [user] :user
|
109
109
|
# User to remove from group.
|
110
110
|
# @see https://api.slack.com/methods/groups.kick
|
111
111
|
# @see https://github.com/dblock/slack-api-ref/blob/master/methods/groups.kick.json
|
@@ -118,7 +118,7 @@ module Slack
|
|
118
118
|
#
|
119
119
|
# This method is used to leave a private group.
|
120
120
|
#
|
121
|
-
# @option options [
|
121
|
+
# @option options [group] :channel
|
122
122
|
# Group to leave.
|
123
123
|
# @see https://api.slack.com/methods/groups.leave
|
124
124
|
# @see https://github.com/dblock/slack-api-ref/blob/master/methods/groups.leave.json
|
@@ -142,9 +142,9 @@ module Slack
|
|
142
142
|
#
|
143
143
|
# This method moves the read cursor in a private group.
|
144
144
|
#
|
145
|
-
# @option options [
|
145
|
+
# @option options [group] :channel
|
146
146
|
# Group to set reading cursor in.
|
147
|
-
# @option options [
|
147
|
+
# @option options [timestamp] :ts
|
148
148
|
# Timestamp of the most recently seen message.
|
149
149
|
# @see https://api.slack.com/methods/groups.mark
|
150
150
|
# @see https://github.com/dblock/slack-api-ref/blob/master/methods/groups.mark.json
|
@@ -157,7 +157,7 @@ module Slack
|
|
157
157
|
#
|
158
158
|
# This method opens a private group.
|
159
159
|
#
|
160
|
-
# @option options [
|
160
|
+
# @option options [group] :channel
|
161
161
|
# Group to open.
|
162
162
|
# @see https://api.slack.com/methods/groups.open
|
163
163
|
# @see https://github.com/dblock/slack-api-ref/blob/master/methods/groups.open.json
|
@@ -169,7 +169,7 @@ module Slack
|
|
169
169
|
#
|
170
170
|
# This method renames a private group.
|
171
171
|
#
|
172
|
-
# @option options [
|
172
|
+
# @option options [group] :channel
|
173
173
|
# Group to rename.
|
174
174
|
# @option options [Object] :name
|
175
175
|
# New name for group.
|
@@ -184,7 +184,7 @@ module Slack
|
|
184
184
|
#
|
185
185
|
# This method is used to change the purpose of a private group. The calling user must be a member of the private group.
|
186
186
|
#
|
187
|
-
# @option options [
|
187
|
+
# @option options [group] :channel
|
188
188
|
# Private group to set the purpose of.
|
189
189
|
# @option options [Object] :purpose
|
190
190
|
# The new purpose.
|
@@ -199,7 +199,7 @@ module Slack
|
|
199
199
|
#
|
200
200
|
# This method is used to change the topic of a private group. The calling user must be a member of the private group.
|
201
201
|
#
|
202
|
-
# @option options [
|
202
|
+
# @option options [group] :channel
|
203
203
|
# Private group to set the topic of.
|
204
204
|
# @option options [Object] :topic
|
205
205
|
# The new topic.
|
@@ -214,7 +214,7 @@ module Slack
|
|
214
214
|
#
|
215
215
|
# This method unarchives a private group.
|
216
216
|
#
|
217
|
-
# @option options [
|
217
|
+
# @option options [group] :channel
|
218
218
|
# Group to unarchive.
|
219
219
|
# @see https://api.slack.com/methods/groups.unarchive
|
220
220
|
# @see https://github.com/dblock/slack-api-ref/blob/master/methods/groups.unarchive.json
|
@@ -8,7 +8,7 @@ module Slack
|
|
8
8
|
#
|
9
9
|
# This method closes a direct message channel.
|
10
10
|
#
|
11
|
-
# @option options [
|
11
|
+
# @option options [im] :channel
|
12
12
|
# Direct message channel to close.
|
13
13
|
# @see https://api.slack.com/methods/im.close
|
14
14
|
# @see https://github.com/dblock/slack-api-ref/blob/master/methods/im.close.json
|
@@ -22,11 +22,11 @@ module Slack
|
|
22
22
|
# To read the entire history for a direct message channel, call the method with no latest or
|
23
23
|
# oldest arguments, and then continue paging using the instructions below.
|
24
24
|
#
|
25
|
-
# @option options [
|
25
|
+
# @option options [im] :channel
|
26
26
|
# Direct message channel to fetch history for.
|
27
|
-
# @option options [
|
27
|
+
# @option options [timestamp] :latest
|
28
28
|
# End of time range of messages to include in results.
|
29
|
-
# @option options [
|
29
|
+
# @option options [timestamp] :oldest
|
30
30
|
# Start of time range of messages to include in results.
|
31
31
|
# @option options [Object] :inclusive
|
32
32
|
# Include messages with latest or oldest timestamp in results.
|
@@ -49,9 +49,9 @@ module Slack
|
|
49
49
|
#
|
50
50
|
# This method moves the read cursor in a direct message channel.
|
51
51
|
#
|
52
|
-
# @option options [
|
52
|
+
# @option options [im] :channel
|
53
53
|
# Direct message channel to set reading cursor in.
|
54
|
-
# @option options [
|
54
|
+
# @option options [timestamp] :ts
|
55
55
|
# Timestamp of the most recently seen message.
|
56
56
|
# @see https://api.slack.com/methods/im.mark
|
57
57
|
# @see https://github.com/dblock/slack-api-ref/blob/master/methods/im.mark.json
|
@@ -64,7 +64,7 @@ module Slack
|
|
64
64
|
#
|
65
65
|
# This method opens a direct message channel with another member of your Slack team.
|
66
66
|
#
|
67
|
-
# @option options [
|
67
|
+
# @option options [user] :user
|
68
68
|
# User to open a direct message channel with.
|
69
69
|
# @see https://api.slack.com/methods/im.open
|
70
70
|
# @see https://github.com/dblock/slack-api-ref/blob/master/methods/im.open.json
|
@@ -9,9 +9,9 @@ module Slack
|
|
9
9
|
# This method pins an item (file, file comment, channel message, or group message) to a particular channel.
|
10
10
|
# The channel argument is required and one of file, file_comment, or timestamp must also be specified.
|
11
11
|
#
|
12
|
-
# @option options [
|
12
|
+
# @option options [channel] :channel
|
13
13
|
# Channel to pin the item in.
|
14
|
-
# @option options [
|
14
|
+
# @option options [file] :file
|
15
15
|
# File to pin.
|
16
16
|
# @option options [Object] :file_comment
|
17
17
|
# File comment to pin.
|
@@ -27,7 +27,7 @@ module Slack
|
|
27
27
|
#
|
28
28
|
# This method lists the items pinned to a channel.
|
29
29
|
#
|
30
|
-
# @option options [
|
30
|
+
# @option options [channel] :channel
|
31
31
|
# Channel to get pinned items for.
|
32
32
|
# @see https://api.slack.com/methods/pins.list
|
33
33
|
# @see https://github.com/dblock/slack-api-ref/blob/master/methods/pins.list.json
|
@@ -40,9 +40,9 @@ module Slack
|
|
40
40
|
# This method un-pins an item (file, file comment, channel message, or group message) from a channel.
|
41
41
|
# The channel argument is required and one of file, file_comment, or timestamp must also be specified.
|
42
42
|
#
|
43
|
-
# @option options [
|
43
|
+
# @option options [channel] :channel
|
44
44
|
# Channel where the item is pinned to.
|
45
|
-
# @option options [
|
45
|
+
# @option options [file] :file
|
46
46
|
# File to un-pin.
|
47
47
|
# @option options [Object] :file_comment
|
48
48
|
# File comment to un-pin.
|
@@ -11,11 +11,11 @@ module Slack
|
|
11
11
|
#
|
12
12
|
# @option options [Object] :name
|
13
13
|
# Reaction (emoji) name.
|
14
|
-
# @option options [
|
14
|
+
# @option options [file] :file
|
15
15
|
# File to add reaction to.
|
16
16
|
# @option options [Object] :file_comment
|
17
17
|
# File comment to add reaction to.
|
18
|
-
# @option options [
|
18
|
+
# @option options [channel] :channel
|
19
19
|
# Channel where the message to add reaction to was posted.
|
20
20
|
# @option options [Object] :timestamp
|
21
21
|
# Timestamp of the message to add reaction to.
|
@@ -29,11 +29,11 @@ module Slack
|
|
29
29
|
#
|
30
30
|
# This method returns a list of all reactions for a single item (file, file comment, channel message, group message, or direct message).
|
31
31
|
#
|
32
|
-
# @option options [
|
32
|
+
# @option options [file] :file
|
33
33
|
# File to get reactions for.
|
34
34
|
# @option options [Object] :file_comment
|
35
35
|
# File comment to get reactions for.
|
36
|
-
# @option options [
|
36
|
+
# @option options [channel] :channel
|
37
37
|
# Channel where the message to get reactions for was posted.
|
38
38
|
# @option options [Object] :timestamp
|
39
39
|
# Timestamp of the message to get reactions for.
|
@@ -48,7 +48,7 @@ module Slack
|
|
48
48
|
#
|
49
49
|
# This method returns a list of all items (file, file comment, channel message, group message, or direct message) reacted to by a user.
|
50
50
|
#
|
51
|
-
# @option options [
|
51
|
+
# @option options [user] :user
|
52
52
|
# Show reactions made by this user. Defaults to the authed user.
|
53
53
|
# @option options [Object] :full
|
54
54
|
# If true always return the complete reaction list.
|
@@ -64,11 +64,11 @@ module Slack
|
|
64
64
|
#
|
65
65
|
# @option options [Object] :name
|
66
66
|
# Reaction (emoji) name.
|
67
|
-
# @option options [
|
67
|
+
# @option options [file] :file
|
68
68
|
# File to remove reaction from.
|
69
69
|
# @option options [Object] :file_comment
|
70
70
|
# File comment to remove reaction from.
|
71
|
-
# @option options [
|
71
|
+
# @option options [channel] :channel
|
72
72
|
# Channel where the message to remove reaction from was posted.
|
73
73
|
# @option options [Object] :timestamp
|
74
74
|
# Timestamp of the message to remove reaction from.
|
@@ -5,16 +5,52 @@ module Slack
|
|
5
5
|
module Api
|
6
6
|
module Endpoints
|
7
7
|
module Stars
|
8
|
+
#
|
9
|
+
# This method adds a star to an item (message, file, file comment, channel, private group, or DM) on behalf of the authenticated user.
|
10
|
+
# One of file, file_comment, channel, or the combination of channel and timestamp must be specified.
|
11
|
+
#
|
12
|
+
# @option options [file] :file
|
13
|
+
# File to add star to.
|
14
|
+
# @option options [Object] :file_comment
|
15
|
+
# File comment to add star to.
|
16
|
+
# @option options [channel] :channel
|
17
|
+
# Channel to add star to, or channel where the message to add star to was posted (used with timestamp).
|
18
|
+
# @option options [Object] :timestamp
|
19
|
+
# Timestamp of the message to add star to.
|
20
|
+
# @see https://api.slack.com/methods/stars.add
|
21
|
+
# @see https://github.com/dblock/slack-api-ref/blob/master/methods/stars.add.json
|
22
|
+
def stars_add(options = {})
|
23
|
+
post('stars.add', options)
|
24
|
+
end
|
25
|
+
|
8
26
|
#
|
9
27
|
# This method lists the items starred by a user.
|
10
28
|
#
|
11
|
-
# @option options [
|
29
|
+
# @option options [user] :user
|
12
30
|
# Show stars by this user. Defaults to the authed user.
|
13
31
|
# @see https://api.slack.com/methods/stars.list
|
14
32
|
# @see https://github.com/dblock/slack-api-ref/blob/master/methods/stars.list.json
|
15
33
|
def stars_list(options = {})
|
16
34
|
post('stars.list', options)
|
17
35
|
end
|
36
|
+
|
37
|
+
#
|
38
|
+
# This method removes a star from an item (message, file, file comment, channel, private group, or DM) on behalf of the authenticated user.
|
39
|
+
# One of file, file_comment, channel, or the combination of channel and timestamp must be specified.
|
40
|
+
#
|
41
|
+
# @option options [file] :file
|
42
|
+
# File to remove star from.
|
43
|
+
# @option options [Object] :file_comment
|
44
|
+
# File comment to remove star from.
|
45
|
+
# @option options [channel] :channel
|
46
|
+
# Channel to remove star from, or channel where the message to remove star from was posted (used with timestamp).
|
47
|
+
# @option options [Object] :timestamp
|
48
|
+
# Timestamp of the message to remove star from.
|
49
|
+
# @see https://api.slack.com/methods/stars.remove
|
50
|
+
# @see https://github.com/dblock/slack-api-ref/blob/master/methods/stars.remove.json
|
51
|
+
def stars_remove(options = {})
|
52
|
+
post('stars.remove', options)
|
53
|
+
end
|
18
54
|
end
|
19
55
|
end
|
20
56
|
end
|
@@ -9,7 +9,7 @@ module Slack
|
|
9
9
|
# This method lets you find out information about a user's presence.
|
10
10
|
# Consult the presence documentation for more details.
|
11
11
|
#
|
12
|
-
# @option options [
|
12
|
+
# @option options [user] :user
|
13
13
|
# User to get presence info on. Defaults to the authed user.
|
14
14
|
# @see https://api.slack.com/methods/users.getPresence
|
15
15
|
# @see https://github.com/dblock/slack-api-ref/blob/master/methods/users.getPresence.json
|
@@ -21,7 +21,7 @@ module Slack
|
|
21
21
|
#
|
22
22
|
# This method returns information about a team member.
|
23
23
|
#
|
24
|
-
# @option options [
|
24
|
+
# @option options [user] :user
|
25
25
|
# User to get info on.
|
26
26
|
# @see https://api.slack.com/methods/users.info
|
27
27
|
# @see https://github.com/dblock/slack-api-ref/blob/master/methods/users.info.json
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slack-ruby-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Doubrovkine
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|