public static function getNewsForApp($appId, $count = 5, $maxLength = null) {
        $params = ['appid' => $appId, 'count' => $count, 'maxlength' => $maxLength];
        $data = WebApi::getJSONObject('ISteamNews', 'GetNewsForApp', 2, $params);

        $newsItems = [];
        foreach($data->appnews->newsitems as $newsData) {
            $newsItems[] = new AppNews($appId, $newsData);
        }

        return $newsItems;
    }