Sha256: 3e92bfbf8869fae9c2d7766b85b6a8a17d9ee9b737a1150cdfc6bb0ea10cc17a
Contents?: true
Size: 1.38 KB
Versions: 5
Compression:
Stored size: 1.38 KB
Contents
# 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
5 entries across 5 versions & 1 rubygems