public static function MeetingStatusGet($arParams = array(), $nav = null, $server = null) { $userId = CCalendar::GetCurUserId(); $methodName = "calendar.meeting.status.get"; $necessaryParams = array('eventId'); foreach ($necessaryParams as $param) { if (!isset($arParams[$param]) || empty($arParams[$param])) { throw new Exception(GetMessage('CAL_REST_PARAM_EXCEPTION', array('#PARAM_NAME#' => $param, '#REST_METHOD#' => $methodName))); } } $status = CCalendarEvent::GetMeetingStatus($userId, $arParams['eventId'], $arParams['status']); if ($status === false) { throw new Exception(GetMessage('CAL_REST_GET_STATUS_ERROR')); } return $status; }