Sha256: 6bc050d728c0aa98f48283ddff87a97cdec96bcb57e0a722d4c2438d5f10773a

Contents?: true

Size: 1.1 KB

Versions: 9

Compression:

Stored size: 1.1 KB

Contents

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

module Slack
  module Web
    module Api
      module Endpoints
        module Auth
          #
          # This method revokes an access token. Use it when you no longer need a token. For example, with a Sign In With Slack app, call this to log a user out.
          #
          # @option options [Object] :test
          #   Setting this parameter to 1 triggers a testing mode where the specified token will not actually be revoked.
          # @see https://api.slack.com/methods/auth.revoke
          # @see https://github.com/dblock/slack-api-ref/blob/master/methods/auth/auth.revoke.json
          def auth_revoke(options = {})
            post('auth.revoke', options)
          end

          #
          # This method checks authentication and tells you who you are.
          #
          # @see https://api.slack.com/methods/auth.test
          # @see https://github.com/dblock/slack-api-ref/blob/master/methods/auth/auth.test.json
          def auth_test(options = {})
            post('auth.test', options)
          end
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
slack-ruby-client-0.9.0 lib/slack/web/api/endpoints/auth.rb
slack-ruby-client-0.8.1 lib/slack/web/api/endpoints/auth.rb
slack-ruby-client-0.8.0 lib/slack/web/api/endpoints/auth.rb
slack-ruby-client-0.7.9 lib/slack/web/api/endpoints/auth.rb
slack-ruby-client-0.7.8 lib/slack/web/api/endpoints/auth.rb
slack-ruby-client-0.7.7 lib/slack/web/api/endpoints/auth.rb
slack-ruby-client-0.7.6 lib/slack/web/api/endpoints/auth.rb
slack-ruby-client-0.7.5 lib/slack/web/api/endpoints/auth.rb
slack-ruby-client-0.7.4 lib/slack/web/api/endpoints/auth.rb