slack-api 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 56820829530b95e9d0e96bcabe76c6300f6d94ee
4
- data.tar.gz: fde611640ede2148a8415911649dc8f73e0266ba
3
+ metadata.gz: 11c9e5a9b4028a006780adf4ba5ccfb158d7b25b
4
+ data.tar.gz: e8c4937e8cbbf6583ee5fce7ce4a0dd47aa9f526
5
5
  SHA512:
6
- metadata.gz: 6215be33d787b12fe2e91d63ac5cb32efd9ce9c41d3b2806d0e646e8b3ff87f970f5b6050ccb952a98b970b0cbade7af3aab012478dbe37e3b8e2e1fbc9cee89
7
- data.tar.gz: e62a20d71ed0fc36d900a0ba2cd0e37d6e5077356a3cb62603140853044125a85882544caf22e7bd2dbef9c3d17dbd905e177732923d3bdbb00af1540e171e7b
6
+ metadata.gz: 4912400acb9bcb0abd0f2e1b2ccff7fd0c06759c2f6c39850b141af528130000e23311cbb8a2b26ac878762d91c19c27a921e298b09c76d9e10d79d0c1f14127
7
+ data.tar.gz: a758ccf87e742621f46f6dab7e22baf7faadec6d24bfe1c37954f3c24138501d7aaf1c7356022255c94f0a2eddc4d7f5e60d781c96f7073f1f434169413e8b62
@@ -16,8 +16,8 @@ module Slack
16
16
  <% end %>
17
17
  <% end %>
18
18
  # @see https://api.slack.com/methods/<%= group %>.<%= name %>
19
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/<%= group %>.<%= name %>.md
20
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/<%= group %>.<%= name %>.json
19
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/<%= group %>.<%= name %>.md
20
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/<%= group %>.<%= name %>.json
21
21
  def <%= group %>_<%= name %>(options={})
22
22
  <% data["args"].reject{|k, v| k=="token"}.select{|k,v| v["required"]}.each do |arg_name, arg_v| %>
23
23
  throw ArgumentError.new("Required arguments :<%= arg_name %> missing") if options[:<%= arg_name %>].nil?
@@ -16,6 +16,7 @@ require_relative 'endpoint/reactions'
16
16
  require_relative 'endpoint/search'
17
17
  require_relative 'endpoint/stars'
18
18
  require_relative 'endpoint/team'
19
+ require_relative 'endpoint/usergroups'
19
20
  require_relative 'endpoint/users'
20
21
 
21
22
  module Slack
@@ -36,6 +37,7 @@ module Slack
36
37
  include Search
37
38
  include Stars
38
39
  include Team
40
+ include Usergroups
39
41
  include Users
40
42
  end
41
43
  end
@@ -11,8 +11,8 @@ module Slack
11
11
  # @option options [Object] :foo
12
12
  # example property to return
13
13
  # @see https://api.slack.com/methods/api.test
14
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/api.test.md
15
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/api.test.json
14
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/api.test.md
15
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/api.test.json
16
16
  def api_test(options={})
17
17
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
18
18
  post("api.test", options)
@@ -7,8 +7,8 @@ module Slack
7
7
  # This method checks authentication and tells you who you are.
8
8
  #
9
9
  # @see https://api.slack.com/methods/auth.test
10
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/auth.test.md
11
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/auth.test.json
10
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/auth.test.md
11
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/auth.test.json
12
12
  def auth_test(options={})
13
13
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
14
14
  post("auth.test", options)
@@ -9,8 +9,8 @@ module Slack
9
9
  # @option options [Object] :channel
10
10
  # Channel to archive
11
11
  # @see https://api.slack.com/methods/channels.archive
12
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.archive.md
13
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.archive.json
12
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/channels.archive.md
13
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/channels.archive.json
14
14
  def channels_archive(options={})
15
15
  throw ArgumentError.new("Required arguments :channel missing") if options[:channel].nil?
16
16
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
@@ -23,8 +23,8 @@ module Slack
23
23
  # @option options [Object] :name
24
24
  # Name of channel to create
25
25
  # @see https://api.slack.com/methods/channels.create
26
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.create.md
27
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.create.json
26
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/channels.create.md
27
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/channels.create.json
28
28
  def channels_create(options={})
29
29
  throw ArgumentError.new("Required arguments :name missing") if options[:name].nil?
30
30
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
@@ -49,8 +49,8 @@ module Slack
49
49
  # @option options [Object] :unreads
50
50
  # Include unread_count_display in the output?
51
51
  # @see https://api.slack.com/methods/channels.history
52
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.history.md
53
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.history.json
52
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/channels.history.md
53
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/channels.history.json
54
54
  def channels_history(options={})
55
55
  throw ArgumentError.new("Required arguments :channel missing") if options[:channel].nil?
56
56
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
@@ -63,8 +63,8 @@ module Slack
63
63
  # @option options [Object] :channel
64
64
  # Channel to get info on
65
65
  # @see https://api.slack.com/methods/channels.info
66
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.info.md
67
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.info.json
66
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/channels.info.md
67
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/channels.info.json
68
68
  def channels_info(options={})
69
69
  throw ArgumentError.new("Required arguments :channel missing") if options[:channel].nil?
70
70
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
@@ -79,8 +79,8 @@ module Slack
79
79
  # @option options [Object] :user
80
80
  # User to invite to channel.
81
81
  # @see https://api.slack.com/methods/channels.invite
82
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.invite.md
83
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.invite.json
82
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/channels.invite.md
83
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/channels.invite.json
84
84
  def channels_invite(options={})
85
85
  throw ArgumentError.new("Required arguments :channel missing") if options[:channel].nil?
86
86
  throw ArgumentError.new("Required arguments :user missing") if options[:user].nil?
@@ -95,8 +95,8 @@ module Slack
95
95
  # @option options [Object] :name
96
96
  # Name of channel to join
97
97
  # @see https://api.slack.com/methods/channels.join
98
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.join.md
99
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.join.json
98
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/channels.join.md
99
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/channels.join.json
100
100
  def channels_join(options={})
101
101
  throw ArgumentError.new("Required arguments :name missing") if options[:name].nil?
102
102
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
@@ -111,8 +111,8 @@ module Slack
111
111
  # @option options [Object] :user
112
112
  # User to remove from channel.
113
113
  # @see https://api.slack.com/methods/channels.kick
114
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.kick.md
115
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.kick.json
114
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/channels.kick.md
115
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/channels.kick.json
116
116
  def channels_kick(options={})
117
117
  throw ArgumentError.new("Required arguments :channel missing") if options[:channel].nil?
118
118
  throw ArgumentError.new("Required arguments :user missing") if options[:user].nil?
@@ -126,8 +126,8 @@ module Slack
126
126
  # @option options [Object] :channel
127
127
  # Channel to leave
128
128
  # @see https://api.slack.com/methods/channels.leave
129
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.leave.md
130
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.leave.json
129
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/channels.leave.md
130
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/channels.leave.json
131
131
  def channels_leave(options={})
132
132
  throw ArgumentError.new("Required arguments :channel missing") if options[:channel].nil?
133
133
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
@@ -142,8 +142,8 @@ module Slack
142
142
  # @option options [Object] :exclude_archived
143
143
  # Don't return archived channels.
144
144
  # @see https://api.slack.com/methods/channels.list
145
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.list.md
146
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.list.json
145
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/channels.list.md
146
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/channels.list.json
147
147
  def channels_list(options={})
148
148
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
149
149
  post("channels.list", options)
@@ -157,8 +157,8 @@ module Slack
157
157
  # @option options [Object] :ts
158
158
  # Timestamp of the most recently seen message.
159
159
  # @see https://api.slack.com/methods/channels.mark
160
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.mark.md
161
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.mark.json
160
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/channels.mark.md
161
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/channels.mark.json
162
162
  def channels_mark(options={})
163
163
  throw ArgumentError.new("Required arguments :channel missing") if options[:channel].nil?
164
164
  throw ArgumentError.new("Required arguments :ts missing") if options[:ts].nil?
@@ -174,8 +174,8 @@ module Slack
174
174
  # @option options [Object] :name
175
175
  # New name for channel.
176
176
  # @see https://api.slack.com/methods/channels.rename
177
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.rename.md
178
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.rename.json
177
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/channels.rename.md
178
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/channels.rename.json
179
179
  def channels_rename(options={})
180
180
  throw ArgumentError.new("Required arguments :channel missing") if options[:channel].nil?
181
181
  throw ArgumentError.new("Required arguments :name missing") if options[:name].nil?
@@ -191,8 +191,8 @@ module Slack
191
191
  # @option options [Object] :purpose
192
192
  # The new purpose
193
193
  # @see https://api.slack.com/methods/channels.setPurpose
194
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.setPurpose.md
195
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.setPurpose.json
194
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/channels.setPurpose.md
195
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/channels.setPurpose.json
196
196
  def channels_setPurpose(options={})
197
197
  throw ArgumentError.new("Required arguments :channel missing") if options[:channel].nil?
198
198
  throw ArgumentError.new("Required arguments :purpose missing") if options[:purpose].nil?
@@ -208,8 +208,8 @@ module Slack
208
208
  # @option options [Object] :topic
209
209
  # The new topic
210
210
  # @see https://api.slack.com/methods/channels.setTopic
211
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.setTopic.md
212
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.setTopic.json
211
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/channels.setTopic.md
212
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/channels.setTopic.json
213
213
  def channels_setTopic(options={})
214
214
  throw ArgumentError.new("Required arguments :channel missing") if options[:channel].nil?
215
215
  throw ArgumentError.new("Required arguments :topic missing") if options[:topic].nil?
@@ -223,8 +223,8 @@ module Slack
223
223
  # @option options [Object] :channel
224
224
  # Channel to unarchive
225
225
  # @see https://api.slack.com/methods/channels.unarchive
226
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.unarchive.md
227
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/channels.unarchive.json
226
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/channels.unarchive.md
227
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/channels.unarchive.json
228
228
  def channels_unarchive(options={})
229
229
  throw ArgumentError.new("Required arguments :channel missing") if options[:channel].nil?
230
230
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
@@ -11,8 +11,8 @@ module Slack
11
11
  # @option options [Object] :channel
12
12
  # Channel containing the message to be deleted.
13
13
  # @see https://api.slack.com/methods/chat.delete
14
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/chat.delete.md
15
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/chat.delete.json
14
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/chat.delete.md
15
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/chat.delete.json
16
16
  def chat_delete(options={})
17
17
  throw ArgumentError.new("Required arguments :ts missing") if options[:ts].nil?
18
18
  throw ArgumentError.new("Required arguments :channel missing") if options[:channel].nil?
@@ -46,8 +46,8 @@ module Slack
46
46
  # @option options [Object] :icon_emoji
47
47
  # emoji to use as the icon for this message. Overrides icon_url.
48
48
  # @see https://api.slack.com/methods/chat.postMessage
49
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/chat.postMessage.md
50
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/chat.postMessage.json
49
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/chat.postMessage.md
50
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/chat.postMessage.json
51
51
  def chat_postMessage(options={})
52
52
  throw ArgumentError.new("Required arguments :channel missing") if options[:channel].nil?
53
53
  throw ArgumentError.new("Required arguments :text missing") if options[:text].nil?
@@ -71,8 +71,8 @@ module Slack
71
71
  # @option options [Object] :link_names
72
72
  # Find and link channel names and usernames.
73
73
  # @see https://api.slack.com/methods/chat.update
74
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/chat.update.md
75
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/chat.update.json
74
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/chat.update.md
75
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/chat.update.json
76
76
  def chat_update(options={})
77
77
  throw ArgumentError.new("Required arguments :ts missing") if options[:ts].nil?
78
78
  throw ArgumentError.new("Required arguments :channel missing") if options[:channel].nil?
@@ -7,8 +7,8 @@ module Slack
7
7
  # This method lists the custom emoji for a team.
8
8
  #
9
9
  # @see https://api.slack.com/methods/emoji.list
10
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/emoji.list.md
11
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/emoji.list.json
10
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/emoji.list.md
11
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/emoji.list.json
12
12
  def emoji_list(options={})
13
13
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
14
14
  post("emoji.list", options)
@@ -9,8 +9,8 @@ module Slack
9
9
  # @option options [Object] :file
10
10
  # ID of file to delete.
11
11
  # @see https://api.slack.com/methods/files.delete
12
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/files.delete.md
13
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/files.delete.json
12
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/files.delete.md
13
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/files.delete.json
14
14
  def files_delete(options={})
15
15
  throw ArgumentError.new("Required arguments :file missing") if options[:file].nil?
16
16
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
@@ -27,8 +27,8 @@ module Slack
27
27
  # @option options [Object] :page
28
28
  # Page number of results to return.
29
29
  # @see https://api.slack.com/methods/files.info
30
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/files.info.md
31
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/files.info.json
30
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/files.info.md
31
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/files.info.json
32
32
  def files_info(options={})
33
33
  throw ArgumentError.new("Required arguments :file missing") if options[:file].nil?
34
34
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
@@ -63,8 +63,8 @@ module Slack
63
63
  # @option options [Object] :page
64
64
  # Page number of results to return.
65
65
  # @see https://api.slack.com/methods/files.list
66
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/files.list.md
67
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/files.list.json
66
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/files.list.md
67
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/files.list.json
68
68
  def files_list(options={})
69
69
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
70
70
  post("files.list", options)
@@ -88,8 +88,8 @@ module Slack
88
88
  # @option options [Object] :channels
89
89
  # Comma separated list of channels to share the file into.
90
90
  # @see https://api.slack.com/methods/files.upload
91
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/files.upload.md
92
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/files.upload.json
91
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/files.upload.md
92
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/files.upload.json
93
93
  def files_upload(options={})
94
94
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
95
95
  post("files.upload", options)
@@ -9,8 +9,8 @@ module Slack
9
9
  # @option options [Object] :channel
10
10
  # Private group to archive
11
11
  # @see https://api.slack.com/methods/groups.archive
12
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/groups.archive.md
13
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/groups.archive.json
12
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/groups.archive.md
13
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/groups.archive.json
14
14
  def groups_archive(options={})
15
15
  throw ArgumentError.new("Required arguments :channel missing") if options[:channel].nil?
16
16
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
@@ -21,10 +21,10 @@ module Slack
21
21
  # This method closes a private group.
22
22
  #
23
23
  # @option options [Object] :channel
24
- # Group to open.
24
+ # Group to close.
25
25
  # @see https://api.slack.com/methods/groups.close
26
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/groups.close.md
27
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/groups.close.json
26
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/groups.close.md
27
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/groups.close.json
28
28
  def groups_close(options={})
29
29
  throw ArgumentError.new("Required arguments :channel missing") if options[:channel].nil?
30
30
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
@@ -37,8 +37,8 @@ module Slack
37
37
  # @option options [Object] :name
38
38
  # Name of group to create
39
39
  # @see https://api.slack.com/methods/groups.create
40
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/groups.create.md
41
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/groups.create.json
40
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/groups.create.md
41
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/groups.create.json
42
42
  def groups_create(options={})
43
43
  throw ArgumentError.new("Required arguments :name missing") if options[:name].nil?
44
44
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
@@ -51,8 +51,8 @@ module Slack
51
51
  # @option options [Object] :channel
52
52
  # Group to clone and archive.
53
53
  # @see https://api.slack.com/methods/groups.createChild
54
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/groups.createChild.md
55
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/groups.createChild.json
54
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/groups.createChild.md
55
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/groups.createChild.json
56
56
  def groups_createChild(options={})
57
57
  throw ArgumentError.new("Required arguments :channel missing") if options[:channel].nil?
58
58
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
@@ -77,8 +77,8 @@ module Slack
77
77
  # @option options [Object] :unreads
78
78
  # Include unread_count_display in the output?
79
79
  # @see https://api.slack.com/methods/groups.history
80
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/groups.history.md
81
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/groups.history.json
80
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/groups.history.md
81
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/groups.history.json
82
82
  def groups_history(options={})
83
83
  throw ArgumentError.new("Required arguments :channel missing") if options[:channel].nil?
84
84
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
@@ -91,8 +91,8 @@ module Slack
91
91
  # @option options [Object] :channel
92
92
  # Group to get info on
93
93
  # @see https://api.slack.com/methods/groups.info
94
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/groups.info.md
95
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/groups.info.json
94
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/groups.info.md
95
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/groups.info.json
96
96
  def groups_info(options={})
97
97
  throw ArgumentError.new("Required arguments :channel missing") if options[:channel].nil?
98
98
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
@@ -107,8 +107,8 @@ module Slack
107
107
  # @option options [Object] :user
108
108
  # User to invite.
109
109
  # @see https://api.slack.com/methods/groups.invite
110
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/groups.invite.md
111
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/groups.invite.json
110
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/groups.invite.md
111
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/groups.invite.json
112
112
  def groups_invite(options={})
113
113
  throw ArgumentError.new("Required arguments :channel missing") if options[:channel].nil?
114
114
  throw ArgumentError.new("Required arguments :user missing") if options[:user].nil?
@@ -124,8 +124,8 @@ module Slack
124
124
  # @option options [Object] :user
125
125
  # User to remove from group.
126
126
  # @see https://api.slack.com/methods/groups.kick
127
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/groups.kick.md
128
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/groups.kick.json
127
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/groups.kick.md
128
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/groups.kick.json
129
129
  def groups_kick(options={})
130
130
  throw ArgumentError.new("Required arguments :channel missing") if options[:channel].nil?
131
131
  throw ArgumentError.new("Required arguments :user missing") if options[:user].nil?
@@ -139,8 +139,8 @@ module Slack
139
139
  # @option options [Object] :channel
140
140
  # Group to leave
141
141
  # @see https://api.slack.com/methods/groups.leave
142
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/groups.leave.md
143
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/groups.leave.json
142
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/groups.leave.md
143
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/groups.leave.json
144
144
  def groups_leave(options={})
145
145
  throw ArgumentError.new("Required arguments :channel missing") if options[:channel].nil?
146
146
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
@@ -154,8 +154,8 @@ module Slack
154
154
  # @option options [Object] :exclude_archived
155
155
  # Don't return archived groups.
156
156
  # @see https://api.slack.com/methods/groups.list
157
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/groups.list.md
158
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/groups.list.json
157
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/groups.list.md
158
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/groups.list.json
159
159
  def groups_list(options={})
160
160
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
161
161
  post("groups.list", options)
@@ -169,8 +169,8 @@ module Slack
169
169
  # @option options [Object] :ts
170
170
  # Timestamp of the most recently seen message.
171
171
  # @see https://api.slack.com/methods/groups.mark
172
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/groups.mark.md
173
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/groups.mark.json
172
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/groups.mark.md
173
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/groups.mark.json
174
174
  def groups_mark(options={})
175
175
  throw ArgumentError.new("Required arguments :channel missing") if options[:channel].nil?
176
176
  throw ArgumentError.new("Required arguments :ts missing") if options[:ts].nil?
@@ -184,8 +184,8 @@ module Slack
184
184
  # @option options [Object] :channel
185
185
  # Group to open.
186
186
  # @see https://api.slack.com/methods/groups.open
187
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/groups.open.md
188
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/groups.open.json
187
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/groups.open.md
188
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/groups.open.json
189
189
  def groups_open(options={})
190
190
  throw ArgumentError.new("Required arguments :channel missing") if options[:channel].nil?
191
191
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
@@ -200,8 +200,8 @@ module Slack
200
200
  # @option options [Object] :name
201
201
  # New name for group.
202
202
  # @see https://api.slack.com/methods/groups.rename
203
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/groups.rename.md
204
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/groups.rename.json
203
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/groups.rename.md
204
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/groups.rename.json
205
205
  def groups_rename(options={})
206
206
  throw ArgumentError.new("Required arguments :channel missing") if options[:channel].nil?
207
207
  throw ArgumentError.new("Required arguments :name missing") if options[:name].nil?
@@ -217,8 +217,8 @@ module Slack
217
217
  # @option options [Object] :purpose
218
218
  # The new purpose
219
219
  # @see https://api.slack.com/methods/groups.setPurpose
220
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/groups.setPurpose.md
221
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/groups.setPurpose.json
220
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/groups.setPurpose.md
221
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/groups.setPurpose.json
222
222
  def groups_setPurpose(options={})
223
223
  throw ArgumentError.new("Required arguments :channel missing") if options[:channel].nil?
224
224
  throw ArgumentError.new("Required arguments :purpose missing") if options[:purpose].nil?
@@ -234,8 +234,8 @@ module Slack
234
234
  # @option options [Object] :topic
235
235
  # The new topic
236
236
  # @see https://api.slack.com/methods/groups.setTopic
237
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/groups.setTopic.md
238
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/groups.setTopic.json
237
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/groups.setTopic.md
238
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/groups.setTopic.json
239
239
  def groups_setTopic(options={})
240
240
  throw ArgumentError.new("Required arguments :channel missing") if options[:channel].nil?
241
241
  throw ArgumentError.new("Required arguments :topic missing") if options[:topic].nil?
@@ -249,8 +249,8 @@ module Slack
249
249
  # @option options [Object] :channel
250
250
  # Group to unarchive
251
251
  # @see https://api.slack.com/methods/groups.unarchive
252
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/groups.unarchive.md
253
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/groups.unarchive.json
252
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/groups.unarchive.md
253
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/groups.unarchive.json
254
254
  def groups_unarchive(options={})
255
255
  throw ArgumentError.new("Required arguments :channel missing") if options[:channel].nil?
256
256
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
@@ -9,8 +9,8 @@ module Slack
9
9
  # @option options [Object] :channel
10
10
  # Direct message channel to close.
11
11
  # @see https://api.slack.com/methods/im.close
12
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/im.close.md
13
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/im.close.json
12
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/im.close.md
13
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/im.close.json
14
14
  def im_close(options={})
15
15
  throw ArgumentError.new("Required arguments :channel missing") if options[:channel].nil?
16
16
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
@@ -35,8 +35,8 @@ module Slack
35
35
  # @option options [Object] :unreads
36
36
  # Include unread_count_display in the output?
37
37
  # @see https://api.slack.com/methods/im.history
38
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/im.history.md
39
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/im.history.json
38
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/im.history.md
39
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/im.history.json
40
40
  def im_history(options={})
41
41
  throw ArgumentError.new("Required arguments :channel missing") if options[:channel].nil?
42
42
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
@@ -47,8 +47,8 @@ module Slack
47
47
  # This method returns a list of all im channels that the user has.
48
48
  #
49
49
  # @see https://api.slack.com/methods/im.list
50
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/im.list.md
51
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/im.list.json
50
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/im.list.md
51
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/im.list.json
52
52
  def im_list(options={})
53
53
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
54
54
  post("im.list", options)
@@ -62,8 +62,8 @@ module Slack
62
62
  # @option options [Object] :ts
63
63
  # Timestamp of the most recently seen message.
64
64
  # @see https://api.slack.com/methods/im.mark
65
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/im.mark.md
66
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/im.mark.json
65
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/im.mark.md
66
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/im.mark.json
67
67
  def im_mark(options={})
68
68
  throw ArgumentError.new("Required arguments :channel missing") if options[:channel].nil?
69
69
  throw ArgumentError.new("Required arguments :ts missing") if options[:ts].nil?
@@ -77,8 +77,8 @@ module Slack
77
77
  # @option options [Object] :user
78
78
  # User to open a direct message channel with.
79
79
  # @see https://api.slack.com/methods/im.open
80
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/im.open.md
81
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/im.open.json
80
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/im.open.md
81
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/im.open.json
82
82
  def im_open(options={})
83
83
  throw ArgumentError.new("Required arguments :user missing") if options[:user].nil?
84
84
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
@@ -9,8 +9,8 @@ module Slack
9
9
  # @option options [Object] :channel
10
10
  # MPIM to close.
11
11
  # @see https://api.slack.com/methods/mpim.close
12
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/mpim.close.md
13
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/mpim.close.json
12
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/mpim.close.md
13
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/mpim.close.json
14
14
  def mpim_close(options={})
15
15
  throw ArgumentError.new("Required arguments :channel missing") if options[:channel].nil?
16
16
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
@@ -35,8 +35,8 @@ module Slack
35
35
  # @option options [Object] :unreads
36
36
  # Include unread_count_display in the output?
37
37
  # @see https://api.slack.com/methods/mpim.history
38
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/mpim.history.md
39
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/mpim.history.json
38
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/mpim.history.md
39
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/mpim.history.json
40
40
  def mpim_history(options={})
41
41
  throw ArgumentError.new("Required arguments :channel missing") if options[:channel].nil?
42
42
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
@@ -47,8 +47,8 @@ module Slack
47
47
  # This method returns a list of all multiparty direct message channels that the user has.
48
48
  #
49
49
  # @see https://api.slack.com/methods/mpim.list
50
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/mpim.list.md
51
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/mpim.list.json
50
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/mpim.list.md
51
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/mpim.list.json
52
52
  def mpim_list(options={})
53
53
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
54
54
  post("mpim.list", options)
@@ -62,8 +62,8 @@ module Slack
62
62
  # @option options [Object] :ts
63
63
  # Timestamp of the most recently seen message.
64
64
  # @see https://api.slack.com/methods/mpim.mark
65
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/mpim.mark.md
66
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/mpim.mark.json
65
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/mpim.mark.md
66
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/mpim.mark.json
67
67
  def mpim_mark(options={})
68
68
  throw ArgumentError.new("Required arguments :channel missing") if options[:channel].nil?
69
69
  throw ArgumentError.new("Required arguments :ts missing") if options[:ts].nil?
@@ -77,8 +77,8 @@ module Slack
77
77
  # @option options [Object] :users
78
78
  # Comma separated lists of users. The ordering of the users is preserved whenever a MPIM group is returned.
79
79
  # @see https://api.slack.com/methods/mpim.open
80
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/mpim.open.md
81
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/mpim.open.json
80
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/mpim.open.md
81
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/mpim.open.json
82
82
  def mpim_open(options={})
83
83
  throw ArgumentError.new("Required arguments :users missing") if options[:users].nil?
84
84
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
@@ -16,8 +16,8 @@ module Slack
16
16
  # @option options [Object] :redirect_uri
17
17
  # This must match the originally submitted URI (if one was sent).
18
18
  # @see https://api.slack.com/methods/oauth.access
19
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/oauth.access.md
20
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/oauth.access.json
19
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/oauth.access.md
20
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/oauth.access.json
21
21
  def oauth_access(options={})
22
22
  throw ArgumentError.new("Required arguments :client_id missing") if options[:client_id].nil?
23
23
  throw ArgumentError.new("Required arguments :client_secret missing") if options[:client_secret].nil?
@@ -16,8 +16,8 @@ module Slack
16
16
  # @option options [Object] :timestamp
17
17
  # Timestamp of the message to pin.
18
18
  # @see https://api.slack.com/methods/pins.add
19
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/pins.add.md
20
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/pins.add.json
19
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/pins.add.md
20
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/pins.add.json
21
21
  def pins_add(options={})
22
22
  throw ArgumentError.new("Required arguments :channel missing") if options[:channel].nil?
23
23
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
@@ -30,8 +30,8 @@ module Slack
30
30
  # @option options [Object] :channel
31
31
  # Channel to get pinned items for.
32
32
  # @see https://api.slack.com/methods/pins.list
33
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/pins.list.md
34
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/pins.list.json
33
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/pins.list.md
34
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/pins.list.json
35
35
  def pins_list(options={})
36
36
  throw ArgumentError.new("Required arguments :channel missing") if options[:channel].nil?
37
37
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
@@ -51,8 +51,8 @@ module Slack
51
51
  # @option options [Object] :timestamp
52
52
  # Timestamp of the message to un-pin.
53
53
  # @see https://api.slack.com/methods/pins.remove
54
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/pins.remove.md
55
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/pins.remove.json
54
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/pins.remove.md
55
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/pins.remove.json
56
56
  def pins_remove(options={})
57
57
  throw ArgumentError.new("Required arguments :channel missing") if options[:channel].nil?
58
58
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
@@ -9,8 +9,8 @@ module Slack
9
9
  # @option options [Object] :presence
10
10
  # Either `active` or `away`
11
11
  # @see https://api.slack.com/methods/presence.set
12
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/presence.set.md
13
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/presence.set.json
12
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/presence.set.md
13
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/presence.set.json
14
14
  def presence_set(options={})
15
15
  throw ArgumentError.new("Required arguments :presence missing") if options[:presence].nil?
16
16
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
@@ -18,8 +18,8 @@ module Slack
18
18
  # @option options [Object] :timestamp
19
19
  # Timestamp of the message to add reaction to.
20
20
  # @see https://api.slack.com/methods/reactions.add
21
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/reactions.add.md
22
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/reactions.add.json
21
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/reactions.add.md
22
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/reactions.add.json
23
23
  def reactions_add(options={})
24
24
  throw ArgumentError.new("Required arguments :name missing") if options[:name].nil?
25
25
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
@@ -40,8 +40,8 @@ module Slack
40
40
  # @option options [Object] :full
41
41
  # If true always return the complete reaction list.
42
42
  # @see https://api.slack.com/methods/reactions.get
43
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/reactions.get.md
44
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/reactions.get.json
43
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/reactions.get.md
44
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/reactions.get.json
45
45
  def reactions_get(options={})
46
46
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
47
47
  post("reactions.get", options)
@@ -59,8 +59,8 @@ module Slack
59
59
  # @option options [Object] :page
60
60
  # Page number of results to return.
61
61
  # @see https://api.slack.com/methods/reactions.list
62
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/reactions.list.md
63
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/reactions.list.json
62
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/reactions.list.md
63
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/reactions.list.json
64
64
  def reactions_list(options={})
65
65
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
66
66
  post("reactions.list", options)
@@ -81,8 +81,8 @@ module Slack
81
81
  # @option options [Object] :timestamp
82
82
  # Timestamp of the message to remove reaction from.
83
83
  # @see https://api.slack.com/methods/reactions.remove
84
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/reactions.remove.md
85
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/reactions.remove.json
84
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/reactions.remove.md
85
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/reactions.remove.json
86
86
  def reactions_remove(options={})
87
87
  throw ArgumentError.new("Required arguments :name missing") if options[:name].nil?
88
88
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
@@ -19,8 +19,8 @@ module Slack
19
19
  # @option options [Object] :page
20
20
  # Page number of results to return.
21
21
  # @see https://api.slack.com/methods/search.all
22
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/search.all.md
23
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/search.all.json
22
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/search.all.md
23
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/search.all.json
24
24
  def search_all(options={})
25
25
  throw ArgumentError.new("Required arguments :query missing") if options[:query].nil?
26
26
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
@@ -43,8 +43,8 @@ module Slack
43
43
  # @option options [Object] :page
44
44
  # Page number of results to return.
45
45
  # @see https://api.slack.com/methods/search.files
46
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/search.files.md
47
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/search.files.json
46
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/search.files.md
47
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/search.files.json
48
48
  def search_files(options={})
49
49
  throw ArgumentError.new("Required arguments :query missing") if options[:query].nil?
50
50
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
@@ -67,8 +67,8 @@ module Slack
67
67
  # @option options [Object] :page
68
68
  # Page number of results to return.
69
69
  # @see https://api.slack.com/methods/search.messages
70
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/search.messages.md
71
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/search.messages.json
70
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/search.messages.md
71
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/search.messages.json
72
72
  def search_messages(options={})
73
73
  throw ArgumentError.new("Required arguments :query missing") if options[:query].nil?
74
74
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
@@ -16,8 +16,8 @@ module Slack
16
16
  # @option options [Object] :timestamp
17
17
  # Timestamp of the message to add star to.
18
18
  # @see https://api.slack.com/methods/stars.add
19
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/stars.add.md
20
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/stars.add.json
19
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/stars.add.md
20
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/stars.add.json
21
21
  def stars_add(options={})
22
22
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
23
23
  post("stars.add", options)
@@ -33,8 +33,8 @@ module Slack
33
33
  # @option options [Object] :page
34
34
  # Page number of results to return.
35
35
  # @see https://api.slack.com/methods/stars.list
36
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/stars.list.md
37
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/stars.list.json
36
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/stars.list.md
37
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/stars.list.json
38
38
  def stars_list(options={})
39
39
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
40
40
  post("stars.list", options)
@@ -53,8 +53,8 @@ module Slack
53
53
  # @option options [Object] :timestamp
54
54
  # Timestamp of the message to remove star from.
55
55
  # @see https://api.slack.com/methods/stars.remove
56
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/stars.remove.md
57
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/stars.remove.json
56
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/stars.remove.md
57
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/stars.remove.json
58
58
  def stars_remove(options={})
59
59
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
60
60
  post("stars.remove", options)
@@ -11,8 +11,8 @@ module Slack
11
11
  # @option options [Object] :page
12
12
  # Page number of results to return.
13
13
  # @see https://api.slack.com/methods/team.accessLogs
14
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/team.accessLogs.md
15
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/team.accessLogs.json
14
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/team.accessLogs.md
15
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/team.accessLogs.json
16
16
  def team_accessLogs(options={})
17
17
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
18
18
  post("team.accessLogs", options)
@@ -22,8 +22,8 @@ module Slack
22
22
  # This method provides information about your team.
23
23
  #
24
24
  # @see https://api.slack.com/methods/team.info
25
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/team.info.md
26
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/team.info.json
25
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/team.info.md
26
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/team.info.json
27
27
  def team_info(options={})
28
28
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
29
29
  post("team.info", options)
@@ -45,8 +45,8 @@ module Slack
45
45
  # @option options [Object] :page
46
46
  # Page number of results to return.
47
47
  # @see https://api.slack.com/methods/team.integrationLogs
48
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/team.integrationLogs.md
49
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/team.integrationLogs.json
48
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/team.integrationLogs.md
49
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/team.integrationLogs.json
50
50
  def team_integrationLogs(options={})
51
51
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
52
52
  post("team.integrationLogs", options)
@@ -0,0 +1,122 @@
1
+ # This file was auto-generated by lib/generators/tasks/generate.rb
2
+
3
+ module Slack
4
+ module Endpoint
5
+ module Usergroups
6
+ #
7
+ # This method is used to create a user group.
8
+ #
9
+ # @option options [Object] :name
10
+ # A name for the user group. Must be unique among user groups.
11
+ # @option options [Object] :handle
12
+ # A mention handle. Must be unique among channels, users and user groups.
13
+ # @option options [Object] :description
14
+ # A short description of the user group.
15
+ # @option options [Object] :channels
16
+ # A comma separated string of encoded channel IDs for which the user group uses as a default.
17
+ # @option options [Object] :include_count
18
+ # Include the number of users in each user group.
19
+ # @see https://api.slack.com/methods/usergroups.create
20
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/usergroups.create.md
21
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/usergroups.create.json
22
+ def usergroups_create(options={})
23
+ throw ArgumentError.new("Required arguments :name missing") if options[:name].nil?
24
+ options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
25
+ post("usergroups.create", options)
26
+ end
27
+
28
+ #
29
+ # This method disables an existing user group.
30
+ #
31
+ # @option options [Object] :usergroup
32
+ # The encoded ID of the user group to disable.
33
+ # @option options [Object] :include_count
34
+ # Include the number of users in the user group.
35
+ # @see https://api.slack.com/methods/usergroups.disable
36
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/usergroups.disable.md
37
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/usergroups.disable.json
38
+ def usergroups_disable(options={})
39
+ throw ArgumentError.new("Required arguments :usergroup missing") if options[:usergroup].nil?
40
+ options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
41
+ post("usergroups.disable", options)
42
+ end
43
+
44
+ #
45
+ # This method enables a user group which was previously disabled.
46
+ #
47
+ # @option options [Object] :usergroup
48
+ # The encoded ID of the user group to enable.
49
+ # @option options [Object] :include_count
50
+ # Include the number of users in the user group.
51
+ # @see https://api.slack.com/methods/usergroups.enable
52
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/usergroups.enable.md
53
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/usergroups.enable.json
54
+ def usergroups_enable(options={})
55
+ throw ArgumentError.new("Required arguments :usergroup missing") if options[:usergroup].nil?
56
+ options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
57
+ post("usergroups.enable", options)
58
+ end
59
+
60
+ #
61
+ # This method returns a list of all user groups in the team. This can optionally include disabled user groups.
62
+ #
63
+ # @option options [Object] :include_disabled
64
+ # Include disabled user groups.
65
+ # @option options [Object] :include_count
66
+ # Include the number of users in each user group.
67
+ # @option options [Object] :include_users
68
+ # Include the list of users for each user group.
69
+ # @see https://api.slack.com/methods/usergroups.list
70
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/usergroups.list.md
71
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/usergroups.list.json
72
+ def usergroups_list(options={})
73
+ options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
74
+ post("usergroups.list", options)
75
+ end
76
+
77
+ #
78
+ # This method updates the properties of an existing user group.
79
+ #
80
+ # @option options [Object] :usergroup
81
+ # The encoded ID of the user group to update.
82
+ # @option options [Object] :name
83
+ # A name for the user group. Must be unique among user groups.
84
+ # @option options [Object] :handle
85
+ # A mention handle. Must be unique among channels, users and user groups.
86
+ # @option options [Object] :description
87
+ # A short description of the user group.
88
+ # @option options [Object] :channels
89
+ # A comma separated string of encoded channel IDs for which the user group uses as a default.
90
+ # @option options [Object] :include_count
91
+ # Include the number of users in the user group.
92
+ # @see https://api.slack.com/methods/usergroups.update
93
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/usergroups.update.md
94
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/usergroups.update.json
95
+ def usergroups_update(options={})
96
+ throw ArgumentError.new("Required arguments :usergroup missing") if options[:usergroup].nil?
97
+ options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
98
+ post("usergroups.update", options)
99
+ end
100
+
101
+ #
102
+ # This method updates the list of users that belong to a user group. This method replaces all users in a user group with the list of users provided in the users parameter.
103
+ #
104
+ # @option options [Object] :usergroup
105
+ # The encoded ID of the user group to update.
106
+ # @option options [Object] :users
107
+ # A comma separated string of encoded user IDs that represent the entire list of users for the user group.
108
+ # @option options [Object] :include_count
109
+ # Include the number of users in the user group.
110
+ # @see https://api.slack.com/methods/usergroups.users
111
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/usergroups.users.md
112
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/usergroups.users.json
113
+ def usergroups_users(options={})
114
+ throw ArgumentError.new("Required arguments :usergroup missing") if options[:usergroup].nil?
115
+ throw ArgumentError.new("Required arguments :users missing") if options[:users].nil?
116
+ options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
117
+ post("usergroups.users", options)
118
+ end
119
+
120
+ end
121
+ end
122
+ end
@@ -10,8 +10,8 @@ module Slack
10
10
  # @option options [Object] :user
11
11
  # User to get presence info on. Defaults to the authed user.
12
12
  # @see https://api.slack.com/methods/users.getPresence
13
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/users.getPresence.md
14
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/users.getPresence.json
13
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/users.getPresence.md
14
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/users.getPresence.json
15
15
  def users_getPresence(options={})
16
16
  throw ArgumentError.new("Required arguments :user missing") if options[:user].nil?
17
17
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
@@ -24,8 +24,8 @@ module Slack
24
24
  # @option options [Object] :user
25
25
  # User to get info on
26
26
  # @see https://api.slack.com/methods/users.info
27
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/users.info.md
28
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/users.info.json
27
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/users.info.md
28
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/users.info.json
29
29
  def users_info(options={})
30
30
  throw ArgumentError.new("Required arguments :user missing") if options[:user].nil?
31
31
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
@@ -38,8 +38,8 @@ module Slack
38
38
  # @option options [Object] :presence
39
39
  # Whether to include presence data in the output
40
40
  # @see https://api.slack.com/methods/users.list
41
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/users.list.md
42
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/users.list.json
41
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/users.list.md
42
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/users.list.json
43
43
  def users_list(options={})
44
44
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
45
45
  post("users.list", options)
@@ -51,8 +51,8 @@ module Slack
51
51
  # more details.
52
52
  #
53
53
  # @see https://api.slack.com/methods/users.setActive
54
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/users.setActive.md
55
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/users.setActive.json
54
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/users.setActive.md
55
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/users.setActive.json
56
56
  def users_setActive(options={})
57
57
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
58
58
  post("users.setActive", options)
@@ -65,8 +65,8 @@ module Slack
65
65
  # @option options [Object] :presence
66
66
  # Either auto or away
67
67
  # @see https://api.slack.com/methods/users.setPresence
68
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/users.setPresence.md
69
- # @see https://github.com/slackhq/slack-api-docs/blob/master/methods/users.setPresence.json
68
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/users.setPresence.md
69
+ # @see https://github.com/aki017/slack-api-docs/blob/master/methods/users.setPresence.json
70
70
  def users_setPresence(options={})
71
71
  throw ArgumentError.new("Required arguments :presence missing") if options[:presence].nil?
72
72
  options[:attachments] = options[:attachments].to_json if Hash === options[:attachments]
@@ -1,3 +1,3 @@
1
1
  module Slack
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slack-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - aki017
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-10 00:00:00.000000000 Z
11
+ date: 2015-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -290,6 +290,7 @@ files:
290
290
  - lib/slack/endpoint/search.rb
291
291
  - lib/slack/endpoint/stars.rb
292
292
  - lib/slack/endpoint/team.rb
293
+ - lib/slack/endpoint/usergroups.rb
293
294
  - lib/slack/endpoint/users.rb
294
295
  - lib/slack/error.rb
295
296
  - lib/slack/realtime/client.rb
@@ -340,7 +341,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
340
341
  version: '0'
341
342
  requirements: []
342
343
  rubyforge_project:
343
- rubygems_version: 2.2.5
344
+ rubygems_version: 2.2.3
344
345
  signing_key:
345
346
  specification_version: 4
346
347
  summary: A Ruby wrapper for the Slack API