zaznamenava pruchod

This commit is contained in:
Karel Košnar 2024-12-02 18:19:08 +01:00
parent c9485f252d
commit 40b6ed08a8

View file

@ -54,8 +54,8 @@ $pruchod = array(
"Smer" => $pozadavek->direction,
"Hlavni" => $pozadavek->main,
"BranaId" => "ENTRANCE",
"CteckaId" => "CAM1",
"Poznamka" => ""
"CteckaId" => "CAM1"
// "Poznamka" => ""
);
$payload = json_encode($pruchod);
echo $pozadavek->name;
@ -69,8 +69,8 @@ curl_setopt($ch, CURLOPT_HTTPHEADER, array(
"com.edookit.Client: ".$id,
"Content-Type: application/json"
));
/*curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
curl_setopt($ch, CURLOPT_POSTFIELDS, $payload);
$result = curl_exec($ch);
echo $result;*/
echo $result;
file_put_contents('at_school.txt', '<?php return ' . var_export($at_school, true) . ';');
?>