Module: Slack::Endpoint::Users
- Included in:
- Slack::Endpoint
- Defined in:
- lib/slack/endpoint/users.rb
Instance Method Summary collapse
-
#users_deletePhoto(options = {}) ⇒ Object
Delete the user profile photo.
-
#users_getPresence(options = {}) ⇒ Object
Gets user presence information.
-
#users_identity(options = {}) ⇒ Object
Get a user’s identity.
-
#users_info(options = {}) ⇒ Object
Gets information about a user.
-
#users_list(options = {}) ⇒ Object
Lists all users in a Slack team.
-
#users_lookupByEmail(options = {}) ⇒ Object
Find a user with an email address.
-
#users_profile_get(options = {}) ⇒ Object
Retrieves a user’s profile information.
-
#users_profile_set(options = {}) ⇒ Object
Set the profile information for a user.
-
#users_setActive(options = {}) ⇒ Object
Marks a user as active.
-
#users_setPhoto(options = {}) ⇒ Object
Set the user profile photo.
-
#users_setPresence(options = {}) ⇒ Object
Manually sets user presence.
Instance Method Details
#users_deletePhoto(options = {}) ⇒ Object
Delete the user profile photo
12 13 14 |
# File 'lib/slack/endpoint/users.rb', line 12 def users_deletePhoto(={}) post("users.deletePhoto", ) end |
#users_getPresence(options = {}) ⇒ Object
Gets user presence information.
24 25 26 27 |
# File 'lib/slack/endpoint/users.rb', line 24 def users_getPresence(={}) throw ArgumentError.new("Required arguments :user missing") if [:user].nil? post("users.getPresence", ) end |
#users_identity(options = {}) ⇒ Object
Get a user’s identity.
35 36 37 |
# File 'lib/slack/endpoint/users.rb', line 35 def users_identity(={}) post("users.identity", ) end |
#users_info(options = {}) ⇒ Object
Gets information about a user.
49 50 51 52 |
# File 'lib/slack/endpoint/users.rb', line 49 def users_info(={}) throw ArgumentError.new("Required arguments :user missing") if [:user].nil? post("users.info", ) end |
#users_list(options = {}) ⇒ Object
Lists all users in a Slack team.
68 69 70 |
# File 'lib/slack/endpoint/users.rb', line 68 def users_list(={}) post("users.list", ) end |
#users_lookupByEmail(options = {}) ⇒ Object
Find a user with an email address.
80 81 82 83 |
# File 'lib/slack/endpoint/users.rb', line 80 def users_lookupByEmail(={}) throw ArgumentError.new("Required arguments :email missing") if [:email].nil? post("users.lookupByEmail", ) end |
#users_profile_get(options = {}) ⇒ Object
Retrieves a user’s profile information.
95 96 97 |
# File 'lib/slack/endpoint/users.rb', line 95 def users_profile_get(={}) post("users.profile.get", ) end |
#users_profile_set(options = {}) ⇒ Object
Set the profile information for a user.
113 114 115 |
# File 'lib/slack/endpoint/users.rb', line 113 def users_profile_set(={}) post("users.profile.set", ) end |
#users_setActive(options = {}) ⇒ Object
Marks a user as active.
123 124 125 |
# File 'lib/slack/endpoint/users.rb', line 123 def users_setActive(={}) post("users.setActive", ) end |
#users_setPhoto(options = {}) ⇒ Object
Set the user profile photo
141 142 143 144 |
# File 'lib/slack/endpoint/users.rb', line 141 def users_setPhoto(={}) throw ArgumentError.new("Required arguments :image missing") if [:image].nil? post("users.setPhoto", ) end |
#users_setPresence(options = {}) ⇒ Object
Manually sets user presence.
154 155 156 157 |
# File 'lib/slack/endpoint/users.rb', line 154 def users_setPresence(={}) throw ArgumentError.new("Required arguments :presence missing") if [:presence].nil? post("users.setPresence", ) end |