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
This method is used to get the profile information for a user.
-
#users_profile_set(options = {}) ⇒ Object
This method is used to set the profile information for a user.
Instance Method Details
#users_profile_get(options = {}) ⇒ Object
This method is used to get the profile information for a user.
17 18 19 20 |
# File 'lib/slack/web/api/endpoints/users_profile.rb', line 17 def users_profile_get( = {}) = .merge(user: users_id()['user']['id']) if [:user] post('users.profile.get', ) end |
#users_profile_set(options = {}) ⇒ Object
This method is used to set the profile information for a user.
35 36 37 38 |
# File 'lib/slack/web/api/endpoints/users_profile.rb', line 35 def users_profile_set( = {}) = .merge(user: users_id()['user']['id']) if [:user] post('users.profile.set', ) end |