You are here

public function GAFeed::queryProfiles in Google Analytics Counter 7.2

Query Management API - Profiles

File

./GAFeed.lib.inc, line 269
Provides the GAFeed object type and associated methods.

Class

GAFeed
GAFeed class to authorize access to and request data from the Google Analytics Data Export 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', $cache_options);
  return $this;
}