lib/SteamCondenser/Community/WebApi.php
public static function setApiKey($apiKey) {
        if($apiKey != null && !preg_match('/^[0-9A-F]{32}$/', $apiKey)) {
            throw new WebApiException(WebApiException::INVALID_KEY);
        }

        self::$apiKey = $apiKey;
    }
public static function setApiKey($apiKey) {
        if($apiKey != null && !preg_match('/^[0-9A-F]{32}$/', $apiKey)) {
            throw new WebApiException(WebApiException::INVALID_KEY);
        }

        self::$apiKey = $apiKey;
    }
Sets the Steam Web API key

@param string $apiKey The 128bit API key that has to be requested from
http://steamcommunity.com/dev
@throws WebApiException if the given API key is not a valid 128bit
hexadecimal string