Module: Slack::Web::Api::Endpoints::AdminAnalytics

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

Instance Method Summary collapse

Instance Method Details

#admin_analytics_getFile(options = {}) ⇒ Object

Retrieve analytics data for a given date, presented as a compressed JSON file

Parameters:

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

    a customizable set of options

Options Hash (options):

  • :type (Object)

    The type of analytics to retrieve. The options are currently limited to member.

  • :date (Object)

    Date to retrieve the analytics data for, expressed as YYYY-MM-DD in UTC.

See Also:



18
19
20
21
# File 'lib/slack/web/api/endpoints/admin_analytics.rb', line 18

def admin_analytics_getFile(options = {})
  throw ArgumentError.new('Required arguments :type missing') if options[:type].nil?
  post('admin.analytics.getFile', options)
end