$ApiConnection = $APIConnection->isRegistered();
} catch (BasicJSONAPI\BasicJSONApiException $Exception) {
    try {
        # @ Registering a clean session for api connection
        # @ Регистрация чистой сессии для апи связи
        $ApiConnection = $APIConnection->register();
        $_SESSION["BASIC_JSON_API_SESSION"][BASIC_JSON_API_NAME] = $ApiConnection->SESSION->key;
    } catch (BasicJSONAPI\BasicJSONApiException $Exception) {
        exit($Exception->getCode() . " : " . $Exception->getMessage());
    }
}
/**
 * @ Using api processor
 * @ С помощью программного интерфейса процессора
 */
$APIProcessor = new BasicJSONAPI\BasicJSONApiProcessor($ApiConnection);
try {
    /**
    * @@ English
    * @ pull() returns all datas as a tree of stdClass() instances which you filtered in our database with your query parameter,
    * @ If it fail becasue of any reason then it will throw an exception instance of BasicJSONApiException before return false,
    * @ If you want to use exception datas, you can use this method in a try-catch scope
    * Example Using:
    *
    *  try{
    *
    *      $Pull = $APIProcessor->table("basic_json_api_test")->pull(array(
    *          "query" => array("id" => 7)
    *      ));
    *
    *  }catch(\BasicJSONAPI\BasicJSONApiException $Exception){
    $ApiConnection = $APIConnection->isRegistered();
} catch (BasicJSONAPI\BasicJSONApiException $Exception) {
    try {
        # @ Registering a clean session for api connection
        # @ Регистрация чистой сессии для апи связи
        $ApiConnection = $APIConnection->register();
        $_SESSION["BASIC_JSON_API_SESSION"][BASIC_JSON_API_NAME] = $ApiConnection->SESSION->key;
    } catch (BasicJSONAPI\BasicJSONApiException $Exception) {
        exit($Exception->getCode() . " : " . $Exception->getMessage());
    }
}
/**
 * @ Using api processor
 * @ С помощью программного интерфейса процессора
 */
$APIProcessor = new BasicJSONAPI\BasicJSONApiProcessor($ApiConnection);
try {
    /**
    * @@ English
    * @ push(Array: $QueryData) works for send data to our webservice,
    * @ It takes just one parameter as an Array data, this parameter contains informations of new reservations,
    *      you should be careful of you set data and these data´s index name in the parameter Array,
    *      because all column indexes in parameter must to match to column names
    *      in reference table wich we gave you for use it as a reference,
    *      example : array("id" => 10000) defines id column´s value to 10000
    *
    * @@ Russian
    * @ push(Array: $QueryData) работает для отправки данных нашим вебсервисом,
    * @ Это займет всего один параметр в качестве массива данных, этот параметр содержит информацию о новых заказах,
         *      Вы должны быть осторожны установить эти имена данные индексы данные и в параметре массива,
         *      Потому, что все индексы столбцов в параметре должен соответствовать именам столбцов,
    $ApiConnection = $APIConnection->isRegistered();
} catch (BasicJSONAPI\BasicJSONApiException $Exception) {
    try {
        # @ Registering a clean session for api connection
        # @ Регистрация чистой сессии для апи связи
        $ApiConnection = $APIConnection->register();
        $_SESSION["BASIC_JSON_API_SESSION"][BASIC_JSON_API_NAME] = $ApiConnection->SESSION->key;
    } catch (BasicJSONAPI\BasicJSONApiException $Exception) {
        exit($Exception->getCode() . " : " . $Exception->getMessage());
    }
}
/**
 * @ Using api processor
 * @ С помощью программного интерфейса процессора
 */
$APIProcessor = new BasicJSONAPI\BasicJSONApiProcessor($ApiConnection);
try {
    /**
    * @@ English
    * @ update(Array: $UpdateData, Array: $QueryData) works for update a reservation in our database,
    * @ It takes two parameters as Array data,
    *      the first parameter contains new values of reservation,
    *      the second parameter contains related informations of reservation,
    *      @ You should be careful of you set data and these data´s index name in the parameter Array,
    *      because all column indexes in parameter must to match to column names
    *      in reference table wich we gave you for use it as a reference,
    *      example : array("id" => 10000) defines id column´s value to 10000
    *
    * @Important: You can´t update id and related api key of reservations,
    *      if you try that, you will get an error as response
    *