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)
26 27 28 29 30 |
# File 'lib/slack/web/api/endpoints/users_admin.rb', line 26 def users_admin_invite( = {}) throw ArgumentError.new('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)
38 39 40 41 42 43 |
# File 'lib/slack/web/api/endpoints/users_admin.rb', line 38 def users_admin_setInactive( = {}) throw ArgumentError.new('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 |