Module: Auth0::Api::V2::Stats

Included in:
Auth0::Api::V2
Defined in:
lib/auth0/api/v2/stats.rb

Overview

Instance Method Summary collapse

Instance Method Details

#active_usersObject



7
8
9
10
# File 'lib/auth0/api/v2/stats.rb', line 7

def active_users
  path = "/api/v2/stats/active-users"
  get(path)
end

#daily_stats(from, to) ⇒ Object



13
14
15
16
17
18
19
20
# File 'lib/auth0/api/v2/stats.rb', line 13

def daily_stats(from, to)
  path = "/api/v2/stats/daily"
  request_params = {
    from: from,
    to: to
  }
  get(path, request_params)
end