. */ use SP\Api\ApiRequest; define('APP_ROOT', '.'); require APP_ROOT . DIRECTORY_SEPARATOR . 'inc' . DIRECTORY_SEPARATOR . 'Base.php'; header('Content-type: application/json'); try { $ApiRequest = new ApiRequest(); exit($ApiRequest->runApi()); } catch (Exception $e) { exit($ApiRequest->formatJsonError($e)); }