Spatie\Analytics\Analytics::performQuery PHP Method

performQuery() public method

Call the query method on the authenticated client.
public performQuery ( Period $period, string $metrics, array $others = [] ) : array | null
$period Period
$metrics string
$others array
return array | null
    public function performQuery(Period $period, string $metrics, array $others = [])
    {
        return $this->client->performQuery($this->viewId, $period->startDate, $period->endDate, $metrics, $others);
    }