source/php/PostTypes/Events.php
public function importEvents()
    {
        if ($apiUrl = \EventManagerIntegration\Helper\ApiUrl::buildApiUrl()) {
            $importer = new \EventManagerIntegration\Parser\EventManagerApi($apiUrl);
            $data = $importer->getCreatedData();
            wp_send_json($data);
        }

        wp_die();
    }
public function importEvents()
    {
        if ($apiUrl = \EventManagerIntegration\Helper\ApiUrl::buildApiUrl()) {
            $importer = new \EventManagerIntegration\Parser\EventManagerApi($apiUrl);
            $data = $importer->getCreatedData();
            wp_send_json($data);
        }

        wp_die();
    }
Start parsing event importer