slack-api 1.6.0 → 1.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/slack/endpoint.rb +8 -0
- data/lib/slack/endpoint/api.rb +1 -1
- data/lib/slack/endpoint/apps.rb +34 -0
- data/lib/slack/endpoint/auth.rb +2 -2
- data/lib/slack/endpoint/bots.rb +1 -1
- data/lib/slack/endpoint/channels.rb +25 -20
- data/lib/slack/endpoint/chat.rb +81 -33
- data/lib/slack/endpoint/conversations.rb +283 -0
- data/lib/slack/endpoint/dialog.rb +24 -0
- data/lib/slack/endpoint/dnd.rb +4 -4
- data/lib/slack/endpoint/emoji.rb +1 -1
- data/lib/slack/endpoint/files.rb +28 -28
- data/lib/slack/endpoint/groups.rb +24 -23
- data/lib/slack/endpoint/im.rb +16 -12
- data/lib/slack/endpoint/migration.rb +23 -0
- data/lib/slack/endpoint/mpim.rb +9 -11
- data/lib/slack/endpoint/oauth.rb +24 -2
- data/lib/slack/endpoint/pins.rb +3 -5
- data/lib/slack/endpoint/reactions.rb +16 -18
- data/lib/slack/endpoint/reminders.rb +5 -5
- data/lib/slack/endpoint/search.rb +21 -21
- data/lib/slack/endpoint/stars.rb +7 -9
- data/lib/slack/endpoint/team.rb +11 -12
- data/lib/slack/endpoint/usergroups.rb +19 -19
- data/lib/slack/endpoint/users.rb +40 -23
- data/lib/slack/version.rb +1 -1
- metadata +6 -2
@@ -4,7 +4,7 @@ module Slack
|
|
4
4
|
module Endpoint
|
5
5
|
module Reminders
|
6
6
|
#
|
7
|
-
#
|
7
|
+
# Creates a reminder.
|
8
8
|
#
|
9
9
|
# @option options [Object] :text
|
10
10
|
# The content of the reminder
|
@@ -22,7 +22,7 @@ module Slack
|
|
22
22
|
end
|
23
23
|
|
24
24
|
#
|
25
|
-
#
|
25
|
+
# Marks a reminder as complete.
|
26
26
|
#
|
27
27
|
# @option options [Object] :reminder
|
28
28
|
# The ID of the reminder to be marked as complete
|
@@ -35,7 +35,7 @@ module Slack
|
|
35
35
|
end
|
36
36
|
|
37
37
|
#
|
38
|
-
#
|
38
|
+
# Deletes a reminder.
|
39
39
|
#
|
40
40
|
# @option options [Object] :reminder
|
41
41
|
# The ID of the reminder
|
@@ -48,7 +48,7 @@ module Slack
|
|
48
48
|
end
|
49
49
|
|
50
50
|
#
|
51
|
-
#
|
51
|
+
# Gets information about a reminder.
|
52
52
|
#
|
53
53
|
# @option options [Object] :reminder
|
54
54
|
# The ID of the reminder
|
@@ -61,7 +61,7 @@ module Slack
|
|
61
61
|
end
|
62
62
|
|
63
63
|
#
|
64
|
-
#
|
64
|
+
# Lists all reminders created by or for a given user.
|
65
65
|
#
|
66
66
|
# @see https://api.slack.com/methods/reminders.list
|
67
67
|
# @see https://github.com/aki017/slack-api-docs/blob/master/methods/reminders.list.md
|
@@ -4,20 +4,20 @@ module Slack
|
|
4
4
|
module Endpoint
|
5
5
|
module Search
|
6
6
|
#
|
7
|
-
#
|
7
|
+
# Searches for messages and files matching a query.
|
8
8
|
#
|
9
9
|
# @option options [Object] :query
|
10
10
|
# Search query. May contains booleans, etc.
|
11
|
-
# @option options [Object] :sort
|
12
|
-
# Return matches sorted by either score or timestamp.
|
13
|
-
# @option options [Object] :sort_dir
|
14
|
-
# Change sort direction to ascending (asc) or descending (desc).
|
15
|
-
# @option options [Object] :highlight
|
16
|
-
# Pass a value of true to enable query highlight markers (see below).
|
17
11
|
# @option options [Object] :count
|
18
12
|
# Number of items to return per page.
|
13
|
+
# @option options [Object] :highlight
|
14
|
+
# Pass a value of true to enable query highlight markers (see below).
|
19
15
|
# @option options [Object] :page
|
20
16
|
# Page number of results to return.
|
17
|
+
# @option options [Object] :sort
|
18
|
+
# Return matches sorted by either score or timestamp.
|
19
|
+
# @option options [Object] :sort_dir
|
20
|
+
# Change sort direction to ascending (asc) or descending (desc).
|
21
21
|
# @see https://api.slack.com/methods/search.all
|
22
22
|
# @see https://github.com/aki017/slack-api-docs/blob/master/methods/search.all.md
|
23
23
|
# @see https://github.com/aki017/slack-api-docs/blob/master/methods/search.all.json
|
@@ -27,20 +27,20 @@ module Slack
|
|
27
27
|
end
|
28
28
|
|
29
29
|
#
|
30
|
-
#
|
30
|
+
# Searches for files matching a query.
|
31
31
|
#
|
32
32
|
# @option options [Object] :query
|
33
33
|
# Search query. May contain booleans, etc.
|
34
|
-
# @option options [Object] :sort
|
35
|
-
# Return matches sorted by either score or timestamp.
|
36
|
-
# @option options [Object] :sort_dir
|
37
|
-
# Change sort direction to ascending (asc) or descending (desc).
|
38
|
-
# @option options [Object] :highlight
|
39
|
-
# Pass a value of true to enable query highlight markers (see below).
|
40
34
|
# @option options [Object] :count
|
41
35
|
# Number of items to return per page.
|
36
|
+
# @option options [Object] :highlight
|
37
|
+
# Pass a value of true to enable query highlight markers (see below).
|
42
38
|
# @option options [Object] :page
|
43
39
|
# Page number of results to return.
|
40
|
+
# @option options [Object] :sort
|
41
|
+
# Return matches sorted by either score or timestamp.
|
42
|
+
# @option options [Object] :sort_dir
|
43
|
+
# Change sort direction to ascending (asc) or descending (desc).
|
44
44
|
# @see https://api.slack.com/methods/search.files
|
45
45
|
# @see https://github.com/aki017/slack-api-docs/blob/master/methods/search.files.md
|
46
46
|
# @see https://github.com/aki017/slack-api-docs/blob/master/methods/search.files.json
|
@@ -50,20 +50,20 @@ module Slack
|
|
50
50
|
end
|
51
51
|
|
52
52
|
#
|
53
|
-
#
|
53
|
+
# Searches for messages matching a query.
|
54
54
|
#
|
55
55
|
# @option options [Object] :query
|
56
56
|
# Search query. May contains booleans, etc.
|
57
|
-
# @option options [Object] :
|
58
|
-
#
|
59
|
-
# @option options [Object] :sort_dir
|
60
|
-
# Change sort direction to ascending (asc) or descending (desc).
|
57
|
+
# @option options [Object] :count
|
58
|
+
# Pass the number of results you want per "page". Maximum of 100.
|
61
59
|
# @option options [Object] :highlight
|
62
60
|
# Pass a value of true to enable query highlight markers (see below).
|
63
|
-
# @option options [Object] :count
|
64
|
-
# Number of items to return per page.
|
65
61
|
# @option options [Object] :page
|
66
62
|
# Page number of results to return.
|
63
|
+
# @option options [Object] :sort
|
64
|
+
# Return matches sorted by either score or timestamp.
|
65
|
+
# @option options [Object] :sort_dir
|
66
|
+
# Change sort direction to ascending (asc) or descending (desc).
|
67
67
|
# @see https://api.slack.com/methods/search.messages
|
68
68
|
# @see https://github.com/aki017/slack-api-docs/blob/master/methods/search.messages.md
|
69
69
|
# @see https://github.com/aki017/slack-api-docs/blob/master/methods/search.messages.json
|
data/lib/slack/endpoint/stars.rb
CHANGED
@@ -4,15 +4,14 @@ module Slack
|
|
4
4
|
module Endpoint
|
5
5
|
module Stars
|
6
6
|
#
|
7
|
-
#
|
8
|
-
# One of file, file_comment, channel, or the combination of channel and timestamp must be specified.
|
7
|
+
# Adds a star to an item.
|
9
8
|
#
|
9
|
+
# @option options [Object] :channel
|
10
|
+
# Channel to add star to, or channel where the message to add star to was posted (used with timestamp).
|
10
11
|
# @option options [Object] :file
|
11
12
|
# File to add star to.
|
12
13
|
# @option options [Object] :file_comment
|
13
14
|
# File comment to add star to.
|
14
|
-
# @option options [Object] :channel
|
15
|
-
# Channel to add star to, or channel where the message to add star to was posted (used with timestamp).
|
16
15
|
# @option options [Object] :timestamp
|
17
16
|
# Timestamp of the message to add star to.
|
18
17
|
# @see https://api.slack.com/methods/stars.add
|
@@ -23,7 +22,7 @@ module Slack
|
|
23
22
|
end
|
24
23
|
|
25
24
|
#
|
26
|
-
#
|
25
|
+
# Lists stars for a user.
|
27
26
|
#
|
28
27
|
# @option options [Object] :count
|
29
28
|
# Number of items to return per page.
|
@@ -37,15 +36,14 @@ module Slack
|
|
37
36
|
end
|
38
37
|
|
39
38
|
#
|
40
|
-
#
|
41
|
-
# One of file, file_comment, channel, or the combination of channel and timestamp must be specified.
|
39
|
+
# Removes a star from an item.
|
42
40
|
#
|
41
|
+
# @option options [Object] :channel
|
42
|
+
# Channel to remove star from, or channel where the message to remove star from was posted (used with timestamp).
|
43
43
|
# @option options [Object] :file
|
44
44
|
# File to remove star from.
|
45
45
|
# @option options [Object] :file_comment
|
46
46
|
# File comment to remove star from.
|
47
|
-
# @option options [Object] :channel
|
48
|
-
# Channel to remove star from, or channel where the message to remove star from was posted (used with timestamp).
|
49
47
|
# @option options [Object] :timestamp
|
50
48
|
# Timestamp of the message to remove star from.
|
51
49
|
# @see https://api.slack.com/methods/stars.remove
|
data/lib/slack/endpoint/team.rb
CHANGED
@@ -4,14 +4,14 @@ module Slack
|
|
4
4
|
module Endpoint
|
5
5
|
module Team
|
6
6
|
#
|
7
|
-
#
|
7
|
+
# Gets the access logs for the current team.
|
8
8
|
#
|
9
|
+
# @option options [Object] :before
|
10
|
+
# End of time range of logs to include in results (inclusive).
|
9
11
|
# @option options [Object] :count
|
10
12
|
# Number of items to return per page.
|
11
13
|
# @option options [Object] :page
|
12
14
|
# Page number of results to return.
|
13
|
-
# @option options [Object] :before
|
14
|
-
# End of time range of logs to include in results (inclusive).
|
15
15
|
# @see https://api.slack.com/methods/team.accessLogs
|
16
16
|
# @see https://github.com/aki017/slack-api-docs/blob/master/methods/team.accessLogs.md
|
17
17
|
# @see https://github.com/aki017/slack-api-docs/blob/master/methods/team.accessLogs.json
|
@@ -20,8 +20,7 @@ module Slack
|
|
20
20
|
end
|
21
21
|
|
22
22
|
#
|
23
|
-
#
|
24
|
-
# subject to billing per Slack's Fair Billing policy.
|
23
|
+
# Gets billable users information for the current team.
|
25
24
|
#
|
26
25
|
# @option options [Object] :user
|
27
26
|
# A user to retrieve the billable information for. Defaults to all users.
|
@@ -33,7 +32,7 @@ module Slack
|
|
33
32
|
end
|
34
33
|
|
35
34
|
#
|
36
|
-
#
|
35
|
+
# Gets information about the current team.
|
37
36
|
#
|
38
37
|
# @see https://api.slack.com/methods/team.info
|
39
38
|
# @see https://github.com/aki017/slack-api-docs/blob/master/methods/team.info.md
|
@@ -43,20 +42,20 @@ module Slack
|
|
43
42
|
end
|
44
43
|
|
45
44
|
#
|
46
|
-
#
|
45
|
+
# Gets the integration logs for the current team.
|
47
46
|
#
|
48
|
-
# @option options [Object] :service_id
|
49
|
-
# Filter logs to this service. Defaults to all logs.
|
50
47
|
# @option options [Object] :app_id
|
51
48
|
# Filter logs to this Slack app. Defaults to all logs.
|
52
|
-
# @option options [Object] :user
|
53
|
-
# Filter logs generated by this user’s actions. Defaults to all logs.
|
54
49
|
# @option options [Object] :change_type
|
55
50
|
# Filter logs with this change type. Defaults to all logs.
|
56
51
|
# @option options [Object] :count
|
57
52
|
# Number of items to return per page.
|
58
53
|
# @option options [Object] :page
|
59
54
|
# Page number of results to return.
|
55
|
+
# @option options [Object] :service_id
|
56
|
+
# Filter logs to this service. Defaults to all logs.
|
57
|
+
# @option options [Object] :user
|
58
|
+
# Filter logs generated by this user’s actions. Defaults to all logs.
|
60
59
|
# @see https://api.slack.com/methods/team.integrationLogs
|
61
60
|
# @see https://github.com/aki017/slack-api-docs/blob/master/methods/team.integrationLogs.md
|
62
61
|
# @see https://github.com/aki017/slack-api-docs/blob/master/methods/team.integrationLogs.json
|
@@ -65,7 +64,7 @@ module Slack
|
|
65
64
|
end
|
66
65
|
|
67
66
|
#
|
68
|
-
#
|
67
|
+
# Retrieve a team's profile.
|
69
68
|
#
|
70
69
|
# @option options [Object] :visibility
|
71
70
|
# Filter by visibility.
|
@@ -4,16 +4,16 @@ module Slack
|
|
4
4
|
module Endpoint
|
5
5
|
module Usergroups
|
6
6
|
#
|
7
|
-
#
|
7
|
+
# Create a User Group
|
8
8
|
#
|
9
9
|
# @option options [Object] :name
|
10
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
11
|
# @option options [Object] :channels
|
16
12
|
# A comma separated string of encoded channel IDs for which the User Group uses as a default.
|
13
|
+
# @option options [Object] :description
|
14
|
+
# A short description of the User Group.
|
15
|
+
# @option options [Object] :handle
|
16
|
+
# A mention handle. Must be unique among channels, users and User Groups.
|
17
17
|
# @option options [Object] :include_count
|
18
18
|
# Include the number of users in each User Group.
|
19
19
|
# @see https://api.slack.com/methods/usergroups.create
|
@@ -25,7 +25,7 @@ module Slack
|
|
25
25
|
end
|
26
26
|
|
27
27
|
#
|
28
|
-
#
|
28
|
+
# Disable an existing User Group
|
29
29
|
#
|
30
30
|
# @option options [Object] :usergroup
|
31
31
|
# The encoded ID of the User Group to disable.
|
@@ -40,7 +40,7 @@ module Slack
|
|
40
40
|
end
|
41
41
|
|
42
42
|
#
|
43
|
-
#
|
43
|
+
# Enable a User Group
|
44
44
|
#
|
45
45
|
# @option options [Object] :usergroup
|
46
46
|
# The encoded ID of the User Group to enable.
|
@@ -55,12 +55,12 @@ module Slack
|
|
55
55
|
end
|
56
56
|
|
57
57
|
#
|
58
|
-
#
|
58
|
+
# List all User Groups for a team
|
59
59
|
#
|
60
|
-
# @option options [Object] :include_disabled
|
61
|
-
# Include disabled User Groups.
|
62
60
|
# @option options [Object] :include_count
|
63
61
|
# Include the number of users in each User Group.
|
62
|
+
# @option options [Object] :include_disabled
|
63
|
+
# Include disabled User Groups.
|
64
64
|
# @option options [Object] :include_users
|
65
65
|
# Include the list of users for each User Group.
|
66
66
|
# @see https://api.slack.com/methods/usergroups.list
|
@@ -71,20 +71,20 @@ module Slack
|
|
71
71
|
end
|
72
72
|
|
73
73
|
#
|
74
|
-
#
|
74
|
+
# Update an existing User Group
|
75
75
|
#
|
76
76
|
# @option options [Object] :usergroup
|
77
77
|
# The encoded ID of the User Group to update.
|
78
|
-
# @option options [Object] :name
|
79
|
-
# A name for the User Group. Must be unique among User Groups.
|
80
|
-
# @option options [Object] :handle
|
81
|
-
# A mention handle. Must be unique among channels, users and User Groups.
|
82
|
-
# @option options [Object] :description
|
83
|
-
# A short description of the User Group.
|
84
78
|
# @option options [Object] :channels
|
85
79
|
# A comma separated string of encoded channel IDs for which the User Group uses as a default.
|
80
|
+
# @option options [Object] :description
|
81
|
+
# A short description of the User Group.
|
82
|
+
# @option options [Object] :handle
|
83
|
+
# A mention handle. Must be unique among channels, users and User Groups.
|
86
84
|
# @option options [Object] :include_count
|
87
85
|
# Include the number of users in the User Group.
|
86
|
+
# @option options [Object] :name
|
87
|
+
# A name for the User Group. Must be unique among User Groups.
|
88
88
|
# @see https://api.slack.com/methods/usergroups.update
|
89
89
|
# @see https://github.com/aki017/slack-api-docs/blob/master/methods/usergroups.update.md
|
90
90
|
# @see https://github.com/aki017/slack-api-docs/blob/master/methods/usergroups.update.json
|
@@ -94,7 +94,7 @@ module Slack
|
|
94
94
|
end
|
95
95
|
|
96
96
|
#
|
97
|
-
#
|
97
|
+
# List all users in a User Group
|
98
98
|
#
|
99
99
|
# @option options [Object] :usergroup
|
100
100
|
# The encoded ID of the User Group to update.
|
@@ -109,7 +109,7 @@ module Slack
|
|
109
109
|
end
|
110
110
|
|
111
111
|
#
|
112
|
-
#
|
112
|
+
# Update the list of users for a User Group
|
113
113
|
#
|
114
114
|
# @option options [Object] :usergroup
|
115
115
|
# The encoded ID of the User Group to update.
|
data/lib/slack/endpoint/users.rb
CHANGED
@@ -4,7 +4,7 @@ module Slack
|
|
4
4
|
module Endpoint
|
5
5
|
module Users
|
6
6
|
#
|
7
|
-
#
|
7
|
+
# Delete the user profile photo
|
8
8
|
#
|
9
9
|
# @see https://api.slack.com/methods/users.deletePhoto
|
10
10
|
# @see https://github.com/aki017/slack-api-docs/blob/master/methods/users.deletePhoto.md
|
@@ -14,8 +14,7 @@ module Slack
|
|
14
14
|
end
|
15
15
|
|
16
16
|
#
|
17
|
-
#
|
18
|
-
# Consult the presence documentation for more details.
|
17
|
+
# Gets user presence information.
|
19
18
|
#
|
20
19
|
# @option options [Object] :user
|
21
20
|
# User to get presence info on. Defaults to the authed user.
|
@@ -28,7 +27,7 @@ module Slack
|
|
28
27
|
end
|
29
28
|
|
30
29
|
#
|
31
|
-
#
|
30
|
+
# Get a user's identity.
|
32
31
|
#
|
33
32
|
# @see https://api.slack.com/methods/users.identity
|
34
33
|
# @see https://github.com/aki017/slack-api-docs/blob/master/methods/users.identity.md
|
@@ -38,10 +37,12 @@ module Slack
|
|
38
37
|
end
|
39
38
|
|
40
39
|
#
|
41
|
-
#
|
40
|
+
# Gets information about a user.
|
42
41
|
#
|
43
42
|
# @option options [Object] :user
|
44
43
|
# User to get info on
|
44
|
+
# @option options [Object] :include_locale
|
45
|
+
# Set this to true to receive the locale for this user. Defaults to false
|
45
46
|
# @see https://api.slack.com/methods/users.info
|
46
47
|
# @see https://github.com/aki017/slack-api-docs/blob/master/methods/users.info.md
|
47
48
|
# @see https://github.com/aki017/slack-api-docs/blob/master/methods/users.info.json
|
@@ -51,10 +52,16 @@ module Slack
|
|
51
52
|
end
|
52
53
|
|
53
54
|
#
|
54
|
-
#
|
55
|
+
# Lists all users in a Slack team.
|
55
56
|
#
|
57
|
+
# @option options [Object] :cursor
|
58
|
+
# Paginate through collections of data by setting the cursor parameter to a next_cursor attribute returned by a previous request's response_metadata. Default value fetches the first "page" of the collection. See pagination for more detail.
|
59
|
+
# @option options [Object] :include_locale
|
60
|
+
# Set this to true to receive the locale for users. Defaults to false
|
61
|
+
# @option options [Object] :limit
|
62
|
+
# The maximum number of items to return. Fewer than the requested number of items may be returned, even if the end of the users list hasn't been reached.
|
56
63
|
# @option options [Object] :presence
|
57
|
-
# Whether to include presence data in the output
|
64
|
+
# Whether to include presence data in the output. Defaults to false. Setting this to true reduces performance, especially with large teams.
|
58
65
|
# @see https://api.slack.com/methods/users.list
|
59
66
|
# @see https://github.com/aki017/slack-api-docs/blob/master/methods/users.list.md
|
60
67
|
# @see https://github.com/aki017/slack-api-docs/blob/master/methods/users.list.json
|
@@ -63,12 +70,25 @@ module Slack
|
|
63
70
|
end
|
64
71
|
|
65
72
|
#
|
66
|
-
#
|
73
|
+
# Find a user with an email address.
|
74
|
+
#
|
75
|
+
# @option options [Object] :email
|
76
|
+
# An email address belonging to a user in the workspace
|
77
|
+
# @see https://api.slack.com/methods/users.lookupByEmail
|
78
|
+
# @see https://github.com/aki017/slack-api-docs/blob/master/methods/users.lookupByEmail.md
|
79
|
+
# @see https://github.com/aki017/slack-api-docs/blob/master/methods/users.lookupByEmail.json
|
80
|
+
def users_lookupByEmail(options={})
|
81
|
+
throw ArgumentError.new("Required arguments :email missing") if options[:email].nil?
|
82
|
+
post("users.lookupByEmail", options)
|
83
|
+
end
|
84
|
+
|
85
|
+
#
|
86
|
+
# Retrieves a user's profile information.
|
67
87
|
#
|
68
|
-
# @option options [Object] :user
|
69
|
-
# User to retrieve profile info for
|
70
88
|
# @option options [Object] :include_labels
|
71
89
|
# Include labels for each ID in custom profile fields
|
90
|
+
# @option options [Object] :user
|
91
|
+
# User to retrieve profile info for
|
72
92
|
# @see https://api.slack.com/methods/users.profile.get
|
73
93
|
# @see https://github.com/aki017/slack-api-docs/blob/master/methods/users.profile.get.md
|
74
94
|
# @see https://github.com/aki017/slack-api-docs/blob/master/methods/users.profile.get.json
|
@@ -77,14 +97,14 @@ module Slack
|
|
77
97
|
end
|
78
98
|
|
79
99
|
#
|
80
|
-
#
|
100
|
+
# Set the profile information for a user.
|
81
101
|
#
|
82
|
-
# @option options [Object] :user
|
83
|
-
# ID of user to change. This argument may only be specified by team admins on paid teams.
|
84
|
-
# @option options [Object] :profile
|
85
|
-
# Collection of key:value pairs presented as a URL-encoded JSON hash.
|
86
102
|
# @option options [Object] :name
|
87
103
|
# Name of a single key to set. Usable only if profile is not passed.
|
104
|
+
# @option options [Object] :profile
|
105
|
+
# Collection of key:value pairs presented as a URL-encoded JSON hash.
|
106
|
+
# @option options [Object] :user
|
107
|
+
# ID of user to change. This argument may only be specified by team admins on paid teams.
|
88
108
|
# @option options [Object] :value
|
89
109
|
# Value to set a single key to. Usable only if profile is not passed.
|
90
110
|
# @see https://api.slack.com/methods/users.profile.set
|
@@ -95,9 +115,7 @@ module Slack
|
|
95
115
|
end
|
96
116
|
|
97
117
|
#
|
98
|
-
#
|
99
|
-
# is currently active. Consult the presence documentation for
|
100
|
-
# more details.
|
118
|
+
# Marks a user as active.
|
101
119
|
#
|
102
120
|
# @see https://api.slack.com/methods/users.setActive
|
103
121
|
# @see https://github.com/aki017/slack-api-docs/blob/master/methods/users.setActive.md
|
@@ -107,16 +125,16 @@ module Slack
|
|
107
125
|
end
|
108
126
|
|
109
127
|
#
|
110
|
-
#
|
128
|
+
# Set the user profile photo
|
111
129
|
#
|
112
130
|
# @option options [Object] :image
|
113
131
|
# File contents via multipart/form-data.
|
132
|
+
# @option options [Object] :crop_w
|
133
|
+
# Width/height of crop box (always square)
|
114
134
|
# @option options [Object] :crop_x
|
115
135
|
# X coordinate of top-left corner of crop box
|
116
136
|
# @option options [Object] :crop_y
|
117
137
|
# Y coordinate of top-left corner of crop box
|
118
|
-
# @option options [Object] :crop_w
|
119
|
-
# Width/height of crop box (always square)
|
120
138
|
# @see https://api.slack.com/methods/users.setPhoto
|
121
139
|
# @see https://github.com/aki017/slack-api-docs/blob/master/methods/users.setPhoto.md
|
122
140
|
# @see https://github.com/aki017/slack-api-docs/blob/master/methods/users.setPhoto.json
|
@@ -126,8 +144,7 @@ module Slack
|
|
126
144
|
end
|
127
145
|
|
128
146
|
#
|
129
|
-
#
|
130
|
-
# Consult the presence documentation for more details.
|
147
|
+
# Manually sets user presence.
|
131
148
|
#
|
132
149
|
# @option options [Object] :presence
|
133
150
|
# Either auto or away
|