zaznamenava pruchod
This commit is contained in:
parent
c9485f252d
commit
40b6ed08a8
1 changed files with 4 additions and 4 deletions
|
@ -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) . ';');
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in a new issue