public function GoogleAnalyticsReportsApiFeed::generateAuthHeader in Google Analytics Reports 7.3
OAuth step #2: Authorize request token.
Generate authorization token header for all requests
Return value
array
5 calls to GoogleAnalyticsReportsApiFeed::generateAuthHeader()
- GoogleAnalyticsReportsApiFeed::queryAccounts in google_analytics_reports_api/
google_analytics_reports_api.lib.inc - Query Management API - Accounts.
- GoogleAnalyticsReportsApiFeed::queryProfiles in google_analytics_reports_api/
google_analytics_reports_api.lib.inc - Query Management API - Profiles.
- GoogleAnalyticsReportsApiFeed::queryReportFeed in google_analytics_reports_api/
google_analytics_reports_api.lib.inc - Query and sanitize report data.
- GoogleAnalyticsReportsApiFeed::querySegments in google_analytics_reports_api/
google_analytics_reports_api.lib.inc - Query Management API - Segments.
- GoogleAnalyticsReportsApiFeed::queryWebProperties in google_analytics_reports_api/
google_analytics_reports_api.lib.inc - Query Management API - WebProperties.
File
- google_analytics_reports_api/
google_analytics_reports_api.lib.inc, line 235 - 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 generateAuthHeader($token = NULL) {
if ($token == NULL) {
$token = $this->accessToken;
}
return array(
'Authorization' => 'Bearer ' . $token,
);
}