From 6de442f50ca192b201973f3cde01f2e4f370b8fe Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Tue, 31 May 2022 13:37:36 +0000 Subject: [PATCH] wip #5229 --- inc/ws/Controlleur/class.ws.services.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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'; } -- 2.39.5