src/Jaspersoft/Service/ImportExportService.php
public function getImportState($id)
    {
        $url = $this->service_url . '/import' . '/' . $id . '/state';
        $data = $this->service->prepAndSend($url, array(200), 'GET', null, true, 'application/json', 'application/json');
        return TaskState::createFromJSON(json_decode($data));
    }
public function getImportState($id)
    {
        $url = $this->service_url . '/import' . '/' . $id . '/state';
        $data = $this->service->prepAndSend($url, array(200), 'GET', null, true, 'application/json', 'application/json');
        return TaskState::createFromJSON(json_decode($data));
    }
public function getImportState ( $ id ) { $ url = $ this -> service_url . '/import' . '/' . $ id . '/state' ; $ data = $ this -> service -> prepAndSend ( $ url , array ( 200 ) , 'GET' , null , true , 'application/json' , 'application/json' ) ; return TaskState :: createFromJSON ( json_decode ( $ data ) ) ; }
Obtain the state of an ongoing import task

@param int|string $id
@return \Jaspersoft\Dto\ImportExport\TaskState
Obtain the state of an ongoing import task