public function GAFeed::queryAccountFeed in Google Analytics Reports 7
Same name and namespace in other branches
- 6 GAFeed.lib.inc \GAFeed::queryAccountFeed()
Query and sanitize account data
File
- ./
GAFeed.lib.inc, line 241 - 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 queryAccountFeed($params = array(), $cache_options = array()) {
$params += array(
'start-index' => 1,
'max-results' => 1000,
);
$this
->setQueryPath('analytics/v2.4/management/accounts/~all/webproperties/~all/profiles');
if ($this
->query($this->queryPath, $params, 'GET', $cache_options)) {
$this
->sanitizeAccount();
}
}