Sha256: ad31fbccd4a66732a9cac0ac5cff9a2703d13fcc8ef841d9b24043e179615950

Contents?: true

Size: 701 Bytes

Versions: 1

Compression:

Stored size: 701 Bytes

Contents

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

desc 'AdminAnalytics methods.'
command 'admin_analytics' do |g|
  g.desc 'Retrieve analytics data for a given date, presented as a compressed JSON file'
  g.long_desc %( Retrieve analytics data for a given date, presented as a compressed JSON file )
  g.command 'getFile' do |c|
    c.flag 'type', desc: 'The type of analytics to retrieve. The options are currently limited to member.'
    c.flag 'date', desc: 'Date to retrieve the analytics data for, expressed as YYYY-MM-DD in UTC.'
    c.action do |_global_options, options, _args|
      puts JSON.dump($client.admin_analytics_getFile(options))
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
slack-ruby-client-0.16.0 bin/commands/admin_analytics.rb