<?php

namespace CleantalkSP\SpbctWP\VulnerabilityAlarm;

use CleantalkSP\Common\API;

class ResearchApi extends API
{
    const URL = 'https://api-research.cleantalk.org';

    public static function method__research_list($modules_names) // phpcs:ignore PSR1.Methods.CamelCapsMethodName.NotCamelCaps
    {
        static::$url = static::URL . '/research_list';

        $request = array(
            'method_name' => '', // Dummy placeholder to prevent php notices
            'app_names' => $modules_names,
            'list_params' => 'id,CVE,date,slug,app_name,app_description,app_status,app_type,rs_app_version_min,rs_app_version_max,psc,research_url'
        );

        return static::sendRequest($request);
    }
}
