You are here

function google_analytics_counter_new_gafeed in Google Analytics Counter 7.2

Same name and namespace in other branches
  1. 7.3 google_analytics_counter_auth.inc \google_analytics_counter_new_gafeed()

Instantiate a new GAFeed object.

3 calls to google_analytics_counter_new_gafeed()
google_analytics_counter_auth_admin in ./google_analytics_counter_auth.inc
Menu callback - admin form for OAuth and other settings.
google_analytics_counter_report_data in ./google_analytics_counter_data.inc
Request report data.
google_analytics_counter_revoke in ./google_analytics_counter_auth.inc
Programatically revoke token.

File

./google_analytics_counter_auth.inc, line 22
Provides the GAFeed object type and associated methods.

Code

function google_analytics_counter_new_gafeed() {
  module_load_include('inc', 'google_analytics_counter', 'GAFeed.lib');
  $key = variable_get('google_analytics_counter_consumer_key', 'anonymous');
  $secret = variable_get('google_analytics_counter_consumer_secret', 'anonymous');
  $oauth_token = variable_get('google_analytics_counter_oauth_token', NULL);
  $oauth_token_secret = variable_get('google_analytics_counter_oauth_token_secret', NULL);
  return new GAFeed($key, $secret, $oauth_token, $oauth_token_secret);
}