Files:
Fatal error: Uncaught Google\Service\Exception: {
"error": {
"code": 403,
"message": "Request had insufficient authentication scopes.",
"errors": [
{
"message": "Insufficient Permission",
"domain": "global",
"reason": "insufficientPermissions"
}
],
"status": "PERMISSION_DENIED",
"details": [
{
"@type": "type.googleapis.com/google.rpc.ErrorInfo",
"reason": "ACCESS_TOKEN_SCOPE_INSUFFICIENT",
"domain": "googleapis.com",
"metadata": {
"service": "drive.googleapis.com",
"method": "google.apps.drive.v3.DrivePermissions.Create"
}
}
]
}
}
in /home/kovanovr/public_html/vendor/google/apiclient/src/Http/REST.php:134
Stack trace:
#0 /home/kovanovr/public_html/vendor/google/apiclient/src/Http/REST.php(107): Google\Http\REST::decodeHttpResponse()
#1 [internal function]: Google\Http\REST::doExecute()
#2 /home/kovanovr/public_html/vendor/google/apiclient/src/Task/Runner.php(187): call_user_func_array()
#3 /home/kovanovr/public_html/vendor/google/apiclient/src/Http/REST.php(66): Google\Task\Runner->run()
#4 /home/kovanovr/public_html/vendor/google/apiclient/src/Client.php(966): Google\Http\REST::execute()
#5 /home/kovanovr/public_html/vendor/google/apiclient/src/Service/Resource.php(238): Google\Client->execute()
#6 /home/kovanovr/public_html/vendor/google/apiclient-services/src/Drive/Resource/Permissions.php(73): Google\Service\Resource->call()
#7 /home/kovanovr/public_html/drive.php(85): Google\Service\Drive\Resource\Permissions->create()
#8 /home/kovanovr/public_html/drive.php(64): setFilePublic()
#9 /home/kovanovr/public_html/drive.php(105): listFilesInFolder()
#10 {main}
thrown in /home/kovanovr/public_html/vendor/google/apiclient/src/Http/REST.php on line 134