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,
|
||||
"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) . ';');
|
||||
?>
|
||||
|
|
Loading…
Reference in a new issue