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