public function GoogleAnalyticsCounterFeed::queryProfiles in Google Analytics Counter 8.3
Query Management API - Profiles.
File
- src/
GoogleAnalyticsCounterFeed.php, line 486
Class
- GoogleAnalyticsCounterFeed
- Authorize access and request data from Google Analytics Core Reporting API.
Namespace
Drupal\google_analytics_counterCode
public function queryProfiles($params = array(), $cache_options = array()) {
$params += [
'account-id' => '~all',
'web-property-id' => '~all',
];
$this
->setQueryPath('management/accounts/' . $params['account-id'] . '/webproperties/' . $params['web-property-id'] . '/profiles');
$this
->query($this->queryPath, $params, 'GET', $this
->generateAuthHeader(), $cache_options);
return $this;
}