From: vincent@cubedesigners.com Date: Tue, 31 May 2022 13:37:36 +0000 (+0000) Subject: wip #5229 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=6de442f50ca192b201973f3cde01f2e4f370b8fe;p=cubeextranet.git wip #5229 --- diff --git a/inc/ws/Controlleur/class.ws.services.php b/inc/ws/Controlleur/class.ws.services.php index 29594c689..fdc38ff89 100644 --- a/inc/ws/Controlleur/class.ws.services.php +++ b/inc/ws/Controlleur/class.ws.services.php @@ -1,5 +1,7 @@ function = $_POST['function']; $c->insert(); $res = '1'; + + $client = new Client(['timeout' => 10.0]); + $client->request('post', 'https://suivi.ysl-retailhandbook.com/importCSV.php', ['form_params' => [ + 'Fluidbook_ID' => $_POST['Fluidbook_ID'], + 'page' => $_POST['page'], + 'rating' => $_POST['rating'], + 'feedback' => $_POST['feedback'], + 'country' => $_POST['country'], + 'function' => $_POST['function'], + ]]); + } catch (Exception $e) { $res = '0'; }