From 147fbdda1ee738cb9153cdab137980624df8df25 Mon Sep 17 00:00:00 2001 From: Matheus456 Date: Thu, 25 Oct 2018 15:38:02 -0300 Subject: [PATCH] =?UTF-8?q?Adaptando=20a=20mudan=C3=A7a=20de=20um=20atribu?= =?UTF-8?q?to=20do=20escolamodelows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- proxy.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/proxy.php b/proxy.php index 168c1ab..1b5fb4f 100644 --- a/proxy.php +++ b/proxy.php @@ -30,8 +30,8 @@ if(isset($_GET["conversationID"])) { }') ->send(); } elseif(isset($_REQUEST["schoolInitials"])) { - $not_answered = intval($_GET['answered'])== 0 ? 'false':'true'; - $not_answered = trim($not_answered, '"'); + $was_answered = intval($_GET['answered'])== 0 ? 'false':'true'; + $was_answered = trim($was_answered, '"'); $uri = 'https://escolamodelows.interlegis.leg.br/api/v1/fale_conosco/conversa'; // $uri = 'http://localhost:3000/api/v1/fale_conosco/conversa'; $response = \Httpful\Request::post($uri) @@ -41,7 +41,7 @@ if(isset($_GET["conversationID"])) { "school_initials": "SSL", "page" : "1", "limit": "2000", - "not_answered": '. $not_answered .' + "was_answered": '. $was_answered .' }') ->send(); }