Back

Simple API Access


Fatal error: Uncaught Google\Service\Exception: { "error": { "code": 400, "message": "API key not valid. Please pass a valid API key.", "errors": [ { "message": "API key not valid. Please pass a valid API key.", "domain": "global", "reason": "badRequest" } ], "status": "INVALID_ARGUMENT", "details": [ { "@type": "type.googleapis.com/google.rpc.ErrorInfo", "reason": "API_KEY_INVALID", "domain": "googleapis.com", "metadata": { "service": "books.googleapis.com" } }, { "@type": "type.googleapis.com/google.rpc.LocalizedMessage", "locale": "en-US", "message": "API key not valid. Please pass a valid API key." } ] } } in /home/tcaip/driveupload.tcaip.com/src/Http/REST.php:134 Stack trace: #0 /home/tcaip/driveupload.tcaip.com/src/Http/REST.php(107): Google\Http\REST::decodeHttpResponse(Object(GuzzleHttp\Psr7\Response), Object(GuzzleHttp\Psr7\Request), 'Google\\Service\\...') #1 [internal function]: Google\Http\REST::doExecute(Object(GuzzleHttp\Client), Object(GuzzleHttp\Psr7\Request), 'Google\\Service\\...') #2 /home/tcaip/driveupload.tcaip.com/src/Task/Runner.php(187): call_user_func_array(Array, Array) #3 /home/tcaip/driveupload.tcaip.com/src/Http/REST.php(66): Google\Task\Runner->run() #4 /home/tcaip/driveupload.tcaip.com/src/Client.php(967): Google\Http\REST::execute(Object(GuzzleHttp\Client), Object(GuzzleHttp\Psr7\Request), 'Google\\Service\\...', Array, NULL) #5 /home/tcaip/driveupload.tcaip.com/src/Service/Resource.php(248): Google\Client->execute(Object(GuzzleHttp\Psr7\Request), 'Google\\Service\\...') #6 /home/tcaip/driveupload.tcaip.com/vendor/google/apiclient-services/src/Books/Resource/Volumes.php(88): Google\Service\Resource->call('list', Array, 'Google\\Service\\...') #7 /home/tcaip/driveupload.tcaip.com/examples/simple-query.php(54): Google\Service\Books\Resource\Volumes->listVolumes('Henry David Tho...', Array) #8 {main} thrown in /home/tcaip/driveupload.tcaip.com/src/Http/REST.php on line 134