public function GoogleAnalyticsCounterFeed::queryWebProperties in Google Analytics Counter 8.3
Query Management API - WebProperties.
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 474
Class
- GoogleAnalyticsCounterFeed
- Authorize access and request data from Google Analytics Core Reporting API.
Namespace
Drupal\google_analytics_counterCode
public function queryWebProperties($params = array(), $cache_options = array()) {
$params += [
'account-id' => '~all',
];
$this
->setQueryPath('management/accounts/' . $params['account-id'] . '/webproperties');
$this
->query($this->queryPath, $params, 'GET', $this
->generateAuthHeader(), $cache_options);
return $this;
}