Module: Slack::Web::Api::Endpoints::AppsAuthExternal

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

Instance Method Summary collapse

Instance Method Details

#apps_auth_external_delete(options = {}) ⇒ Object

Delete external auth tokens only on the Slack side

Parameters:

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

    a customizable set of options

Options Hash (options):

  • :app_id (string)

    The id of the app whose tokens you want to delete.

  • :external_token_id (string)

    The id of the token that you want to delete.

  • :provider_key (string)

    The provider key of the provider whose tokens you want to delete.

See Also:



20
21
22
# File 'lib/slack/web/api/endpoints/apps_auth_external.rb', line 20

def apps_auth_external_delete(options = {})
  post('apps.auth.external.delete', options)
end

#apps_auth_external_get(options = {}) ⇒ Object

Get the access token for the provided token ID

Parameters:

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

    a customizable set of options

Options Hash (options):

  • :external_token_id (string)

    The id of the token you want to get the token for.

  • :force_refresh (boolean)

    Always refresh existing token before returning even when the token has not expired.

Raises:

  • (ArgumentError)

See Also:



33
34
35
36
# File 'lib/slack/web/api/endpoints/apps_auth_external.rb', line 33

def apps_auth_external_get(options = {})
  raise ArgumentError, 'Required arguments :external_token_id missing' if options[:external_token_id].nil?
  post('apps.auth.external.get', options)
end