You are here

public function GoogleAnalyticsReportsApiFeed::queryWebProperties in Google Analytics Reports 7.3

Query Management API - WebProperties.

File

google_analytics_reports_api/google_analytics_reports_api.lib.inc, line 357
Provides the Google Analytics Reports API Feed object type and associated methods.

Class

GoogleAnalyticsReportsApiFeed
GoogleAnalyticsReportsApiFeed class to authorize access to and request data from the Google Analytics Core Reporting API.

Code

public function queryWebProperties($params = array(), $cache_options = array()) {
  $params += array(
    'account-id' => '~all',
  );
  $this
    ->setQueryPath('management/accounts/' . $params['account-id'] . '/webproperties');
  $this
    ->query($this->queryPath, $params, 'GET', $this
    ->generateAuthHeader(), $cache_options);
  return $this;
}