Module: Slack::Web::Api::Endpoints::UsersProfile
- Included in:
- Slack::Web::Api::Endpoints
- Defined in:
- lib/slack/web/api/endpoints/users_profile.rb
Instance Method Summary collapse
-
#users_profile_get(options = {}) ⇒ Object
Retrieve a user’s profile information, including their custom status.
-
#users_profile_set(options = {}) ⇒ Object
Set a user’s profile information, including custom status.
Instance Method Details
#users_profile_get(options = {}) ⇒ Object
Retrieve a user’s profile information, including their custom status.
18 19 20 21 |
# File 'lib/slack/web/api/endpoints/users_profile.rb', line 18 def users_profile_get( = {}) = .merge(user: users_id()['user']['id']) if [:user] post('users.profile.get', ) end |
#users_profile_set(options = {}) ⇒ Object
Set a user’s profile information, including custom status.
36 37 38 39 40 |
# File 'lib/slack/web/api/endpoints/users_profile.rb', line 36 def users_profile_set( = {}) = .merge(user: users_id()['user']['id']) if [:user] = (, %i[profile]) post('users.profile.set', ) end |