Sha256: 6247b7382dd7a187f1817c2d8d5ad2de7334d0249f20c57b956058a0b52be9d9

Contents?: true

Size: 883 Bytes

Versions: 2

Compression:

Stored size: 883 Bytes

Contents

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

module Slack
  module Web
    module Api
      module Endpoints
        module ToolingTokens
          #
          # Exchanges a refresh token for a new app configuration token.
          #
          # @option options [string] :refresh_token
          #   The xoxe refresh token that was issued along with the old app configuration token.
          # @see https://api.slack.com/methods/tooling.tokens.rotate
          # @see https://github.com/slack-ruby/slack-api-ref/blob/master/methods/tooling.tokens/tooling.tokens.rotate.json
          def tooling_tokens_rotate(options = {})
            throw ArgumentError.new('Required arguments :refresh_token missing') if options[:refresh_token].nil?
            post('tooling.tokens.rotate', options)
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
slack-ruby-client-1.1.0 lib/slack/web/api/endpoints/tooling_tokens.rb
slack-ruby-client-1.0.0 lib/slack/web/api/endpoints/tooling_tokens.rb