public function GoogleAnalyticsReportsApiFeed::queryProfiles in Google Analytics Reports 8.3
Query Management API - Profiles.
File
- google_analytics_reports_api/
src/ GoogleAnalyticsReportsApiFeed.php, line 576
Class
- GoogleAnalyticsReportsApiFeed
- Class GoogleAnalyticsReportsApiFeed.
Namespace
Drupal\google_analytics_reports_apiCode
public function queryProfiles($params = [], $cache_options = []) {
$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;
}