You are here

protected function gapi::generateAuthHeader in Google Analytics Statistics 7.x

Same name and namespace in other branches
  1. 7 includes/gapi.class.php \gapi::generateAuthHeader()

Generate authentication token header for all requests

Return value

Array

2 calls to gapi::generateAuthHeader()
gapi::requestAccountData in inc/gapi.class.php
Request account data from Google Analytics
gapi::requestReportData in inc/gapi.class.php
Request report data from Google Analytics

File

inc/gapi.class.php, line 429

Class

gapi
GAPI - Google Analytics PHP Interface

Code

protected function generateAuthHeader() {
  return array(
    'Authorization: GoogleLogin auth=' . $this->auth_token,
  );
}