You are here

function google_analytics_api_new_gafeed in Google Analytics Reports 7

Same name and namespace in other branches
  1. 6 google_analytics_api.module \google_analytics_api_new_gafeed()

Instantiate a new GAFeed object.

3 calls to google_analytics_api_new_gafeed()
google_analytics_api_account_data in ./google_analytics_api.module
Request account data.
google_analytics_api_report_data in ./google_analytics_api.module
Request report data.
google_analytics_api_revoke in ./google_analytics_api.module

File

./google_analytics_api.module, line 82
Implements the API through which Google Analytics data can be accessed.

Code

function google_analytics_api_new_gafeed() {
  module_load_include('inc', 'google_analytics_api', 'GAFeed.lib');
  $key = variable_get('google_analytics_reports_consumer_key', 'anonymous');
  $secret = variable_get('google_analytics_reports_consumer_secret', 'anonymous');
  $oauth_token = variable_get('google_analytics_reports_oauth_token', NULL);
  $oauth_token_secret = variable_get('google_analytics_reports_oauth_token_secret', NULL);
  return new GAFeed($key, $secret, $oauth_token, $oauth_token_secret);
}