public static function resolveVanityUrl($vanityUrl) {
        $params = ['vanityurl' => $vanityUrl];

        $result = WebApi::getJSONObject('ISteamUser', 'ResolveVanityURL', 1, $params);
        $result = $result->response;

        if ($result->success != 1) {
            return null;
        }

        return $result->steamid;
    }