there is a Google_Service_Exception error 404
Message: Global HTTP Batch endpoint is deprecated. See https://g.co/cloud/global-batch-deprecation for info and migration steps.
my Gmail inbox can not load using this error
can you help me out of here?
As announced by Google, Global HTTP Batch endpoint is deprecated
For Gmail API, modify your code from
$batch = new Google_Http_Batch($client)
to
$batch = new Google_Http_Batch($client,false,'https://gmail.googleapis.com')