Module: Slack::Web::Api::Endpoints::UsersAdmin
- Included in:
- Slack::Web::Api::Endpoints
- Defined in:
- lib/slack/web/api/endpoints/users_admin.rb
Instance Method Summary collapse
-
#users_admin_invite(options = {}) ⇒ Object
Send an invitation to a new user by email (undocumented).
-
#users_admin_setInactive(options = {}) ⇒ Object
Disable a user (undocumented).
Instance Method Details
#users_admin_invite(options = {}) ⇒ Object
Send an invitation to a new user by email (undocumented)
27 28 29 30 31 |
# File 'lib/slack/web/api/endpoints/users_admin.rb', line 27 def users_admin_invite( = {}) raise ArgumentError, 'Required arguments :email missing' if [:email].nil? logger.warn('The users.admin.invite method is undocumented.') post('users.admin.invite', ) end |
#users_admin_setInactive(options = {}) ⇒ Object
Disable a user (undocumented)
39 40 41 42 43 44 |
# File 'lib/slack/web/api/endpoints/users_admin.rb', line 39 def users_admin_setInactive( = {}) raise ArgumentError, 'Required arguments :user missing' if [:user].nil? = .merge(user: users_id()['user']['id']) if [:user] logger.warn('The users.admin.setInactive method is undocumented.') post('users.admin.setInactive', ) end |