]> _ Git - cubeextranet.git/commitdiff
wip #5229
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 31 May 2022 13:37:36 +0000 (13:37 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 31 May 2022 13:37:36 +0000 (13:37 +0000)
inc/ws/Controlleur/class.ws.services.php

index 29594c6893c9eeb4fe6806df49a3997d61ab9102..fdc38ff898bd768e82c1e9965e1917dd665a8c97 100644 (file)
@@ -1,5 +1,7 @@
 <?php
 
+use GuzzleHttp\Client;
+
 class wsServices extends cubeFlashGateway
 {
 
@@ -1385,6 +1387,17 @@ class wsServices extends cubeFlashGateway
             $c->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';
         }