$client = new Google_Client(); $io = $client->getIo(); $response = $io->makeRequest(new Google_Http_Request('https://www.googleapis.com/calendar/v3/calendars/calendarId/events'));
$client = new Google_Client(); $io = $client->getIo(); $response = $io->authenticatedRequest(new Google_Http_Request('https://www.googleapis.com/drive/v3/files'), $client->getAccessToken());This example uses the authenticatedRequest method of the IO class to make an authenticated HTTP request to the Google Drive API, retrieving a list of files stored in the user's Google Drive. The package library used in this example is also the Google API PHP Client Library.