diff --git a/src/pruchod.php b/src/pruchod.php index 18c6d79..4088138 100644 --- a/src/pruchod.php +++ b/src/pruchod.php @@ -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', '