Sha256: 18c198b81307756afcac3deedb082e251e5b3c88b423e943dbfe26d6034f139b

Contents?: true

Size: 1.03 KB

Versions: 4

Compression:

Stored size: 1.03 KB

Contents

# frozen_string_literal: true
# This file was auto-generated by lib/tasks/web.rake

module Slack
  module Web
    module Api
      module Endpoints
        module AdminUsersSession
          #
          # Wipes all valid sessions on all devices for a given user
          #
          # @option options [Object] :user_id
          #   The ID of the user to wipe sessions for.
          # @option options [Object] :mobile_only
          #   Only expire mobile sessions (default: false).
          # @option options [Object] :web_only
          #   Only expire web sessions (default: false).
          # @see https://api.slack.com/methods/admin.users.session.reset
          # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/admin.users.session/admin.users.session.reset.json
          def admin_users_session_reset(options = {})
            throw ArgumentError.new('Required arguments :user_id missing') if options[:user_id].nil?
            post('admin.users.session.reset', options)
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
slack-ruby-client-0.15.1 lib/slack/web/api/endpoints/admin_users_session.rb
slack-ruby-client-0.15.0 lib/slack/web/api/endpoints/admin_users_session.rb
slack-ruby-client-0.14.6 lib/slack/web/api/endpoints/admin_users_session.rb
slack-ruby-client-0.14.5 lib/slack/web/api/endpoints/admin_users_session.rb