Module: Slack::Web::Api::Endpoints::ToolingTokens

Included in:
Slack::Web::Api::Endpoints
Defined in:
lib/slack/web/api/endpoints/tooling_tokens.rb

Instance Method Summary collapse

Instance Method Details

#tooling_tokens_rotate(options = {}) ⇒ Object

Exchanges a refresh token for a new app configuration token.

Parameters:

  • options (Hash) (defaults to: {})

    a customizable set of options

Options Hash (options):

  • :refresh_token (string)

    The xoxe refresh token that was issued along with the old app configuration token.

Raises:

  • (ArgumentError)

See Also:



16
17
18
19
# File 'lib/slack/web/api/endpoints/tooling_tokens.rb', line 16

def tooling_tokens_rotate(options = {})
  raise ArgumentError, 'Required arguments :refresh_token missing' if options[:refresh_token].nil?
  post('tooling.tokens.rotate', options)
end