the error occurs when trying to recover the user's information using the methods about-> get (). In the method createRequestUri is not passing the data correctly
Severity: Notice
Message: Undefined index: value
Filename: Service/Resource.php
Line Number: 288
$this->client = new Google_Client();
$this->client->setApplicationName('report');
$this->client->setClientId($this->CI->config->item('client_id'));
$this->client->setClientSecret($this->CI->config->item('client_secret'));
$this->client->setRedirectUri($this->CI->config->item('redirect_uri'));
$this->client->setAccessType("offline");
$this->client->setScopes(array(
"https://www.googleapis.com/auth/drive",
"https://www.googleapis.com/auth/drive.file",
"https://www.googleapis.com/auth/drive.readonly"
)
);
$drive = new Google_Service_Drive($this->client);
$drive->about->get(array('user'))
-------This is part of the api code where the fault is presented-------
if ($paramSpec['location'] == 'query') {
if (is_array($paramSpec['value'])) {
foreach ($paramSpec['value'] as $value) {
$queryVars[] = $paramName . '=' . rawurlencode(rawurldecode($value));
}
} else {
$queryVars[] = $paramName . '=' . rawurlencode(rawurldecode($paramSpec['value']));
}
}
You should bring the information of the user that is logging in with the related account, but when asking for a value that does not exist in the fix, it fails.