You are here

Stats.php in Auth0 Single Sign On 8.2

File

vendor/auth0/auth0-php/src/API/Management/Stats.php
View source
<?php

namespace Auth0\SDK\API\Management;

class Stats extends GenericResource {

  /**
   *
   * @return mixed
   */
  public function getActiveUsersCount() {
    return $this->apiClient
      ->method('get')
      ->addPath('stats')
      ->addPath('active-users')
      ->call();
  }

  /**
   *
   * @param  string $from
   * @param  string $to
   * @return mixed
   */
  public function getDailyStats($from, $to) {
    return $this->apiClient
      ->method('get')
      ->addPath('stats')
      ->addPath('daily')
      ->withParam('from', $from)
      ->withParam('to', $to)
      ->call();
  }

}

Classes

Namesort descending Description
Stats