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();
    }
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
Start parsing event importer