Sha256: 6867f1ebb06ade8d3a8db23dcf1d097b4bd688731377e6f07c516343438cd81c

Contents?: true

Size: 1.41 KB

Versions: 8

Compression:

Stored size: 1.41 KB

Contents

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

desc 'AppsPermissionsUsers methods.'
command 'apps_permissions_users' do |g|
  g.desc 'Returns list of user grants and corresponding scopes this app has on a team.'
  g.long_desc %( Returns list of user grants and corresponding scopes this app has on a team. )
  g.command 'list' do |c|
    c.flag 'cursor', desc: "Paginate through collections of data by setting the cursor parameter to a next_cursor attribute returned by a previous request's response_metadata. Default value fetches the first 'page' of the collection. See pagination for more detail."
    c.flag 'limit', desc: 'The maximum number of items to return.'
    c.action do |_global_options, options, _args|
      puts JSON.dump($client.apps_permissions_users_list(options))
    end
  end

  g.desc 'Enables an app to trigger a permissions modal to grant an app access to a user access scope.'
  g.long_desc %( Enables an app to trigger a permissions modal to grant an app access to a user access scope. )
  g.command 'request' do |c|
    c.flag 'scopes', desc: 'A comma separated list of user scopes to request for.'
    c.flag 'trigger_id', desc: 'Token used to trigger the request.'
    c.flag 'user', desc: 'The user this scope is being requested for.'
    c.action do |_global_options, options, _args|
      puts JSON.dump($client.apps_permissions_users_request(options))
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
slack-ruby-client-1.1.0 bin/commands/apps_permissions_users.rb
slack-ruby-client-1.0.0 bin/commands/apps_permissions_users.rb
slack-ruby-client-0.17.0 bin/commands/apps_permissions_users.rb
slack-ruby-client-0.16.0 bin/commands/apps_permissions_users.rb
slack-ruby-client-0.15.1 bin/commands/apps_permissions_users.rb
slack-ruby-client-0.15.0 bin/commands/apps_permissions_users.rb
slack-ruby-client-0.14.6 bin/commands/apps_permissions_users.rb
slack-ruby-client-0.14.5 bin/commands/apps_permissions_users.rb