* $airqualityService = new Google\Service\AirQuality(...); * $history = $airqualityService->history; * */ class History extends \Google\Service\Resource { /** * Returns air quality history for a specific location for a given time range. * (history.lookup) * * @param LookupHistoryRequest $postBody * @param array $optParams Optional parameters. * @return LookupHistoryResponse * @throws \Google\Service\Exception */ public function lookup(LookupHistoryRequest $postBody, $optParams = []) { $params = ['postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('lookup', [$params], LookupHistoryResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(History::class, 'Google_Service_AirQuality_Resource_History');