You are here

public function GoogleAnalyticsCounterFeed::queryAccounts in Google Analytics Counter 8.3

Query Management API - Accounts.

Parameters

array $params: Array of parameters.

array $cache_options: Array of cache options.

Return value

$this

Throws

\GuzzleHttp\Exception\GuzzleException

File

src/GoogleAnalyticsCounterFeed.php, line 457

Class

GoogleAnalyticsCounterFeed
Authorize access and request data from Google Analytics Core Reporting API.

Namespace

Drupal\google_analytics_counter

Code

public function queryAccounts($params = array(), $cache_options = array()) {
  $this
    ->setQueryPath('management/accounts');
  $this
    ->query($this->queryPath, $params, 'GET', $this
    ->generateAuthHeader(), $cache_options);
  return $this;
}