You are here

public function GoogleAnalyticsReportsApiFeed::queryProfiles in Google Analytics Reports 7.3

Query Management API - Profiles.

File

google_analytics_reports_api/google_analytics_reports_api.lib.inc, line 369
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 queryProfiles($params = array(), $cache_options = array()) {
  $params += array(
    '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;
}