$client = new Google_Client(); $client->setClassConfig('Google_Service_Calendar', array( 'max_results' => 10, 'page_token' => 'abc123' ));
$client->setClassConfig('Google_Service_Drive', array( 'basePath' => '/v3', 'retry_on_rate_limit' => true ));In this example, we are setting the base path to version 3 of the Google Drive API and enabling automatic retries when we hit a rate limit. The Google_Client class is part of the PHP Google API Client library.