From b48cbe488a18e456e93e5adaff44dab5028ebcc1 Mon Sep 17 00:00:00 2001 From: Leonard LEUNG CHONG WO Date: Wed, 15 Nov 2017 11:44:05 +0100 Subject: [PATCH 1/4] [FEATURE#61247] update des metas sur le proxy --- src/MessageManager.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/MessageManager.php b/src/MessageManager.php index 7a12ad4..ae16a5c 100644 --- a/src/MessageManager.php +++ b/src/MessageManager.php @@ -37,6 +37,13 @@ public function searchMessages($query, $from = 0, $size = 10, $sort = "") return $response; } + public function updateMessageMetas($metas) + { + $response = $this->fireRequest("POST", "/update_metas", $metas); + + return $response; + } + private function fireRequest($method, $uri, $body = []) { $method = strtoupper($method); From a816d403fa68ceeb0a0d54d2a8cad7df50b08f51 Mon Sep 17 00:00:00 2001 From: Leonard LEUNG CHONG WO Date: Thu, 16 Nov 2017 14:29:28 +0100 Subject: [PATCH 2/4] [FEATURE#61247] correction proxy update metas --- .DS_Store | Bin 0 -> 6148 bytes src/MessageManager.php | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..8718a121b76e37c6747add654ab67d052787286e GIT binary patch literal 6148 zcmeHKK~4iP476#5DskzN1BX0;{vfKB7xV*2T?7Y~tx(H3Kj@444Q~8}nb;t{o zvL$Dn*v=*+Z4!%!E_dxhWG*5zC{byQ2!}^q7alwXYMrB(*XPH@YTb96k%>-mh-<%; zH+hg3Y2|qR-Ob_H-}Oz??zU@@_sPd?-O?bx>)Sv5o2MWA>`#%BSW_?%3LrF+ zI>wX7WyfM@>7rhIsDJsZc+vWG%%5twXf}*C7zhT23{0#$=ly?&UuLw(AErbv7zhT= zi~*fCt7eH!`Q7?!d%SBC^d3rKT%iGhJ$MA5!*k@iI?bPGBQ84@L(anSnhuPIKqVxa JVBjAZ_yh|vDv1C9 literal 0 HcmV?d00001 diff --git a/src/MessageManager.php b/src/MessageManager.php index ae16a5c..3f723ab 100644 --- a/src/MessageManager.php +++ b/src/MessageManager.php @@ -37,9 +37,9 @@ public function searchMessages($query, $from = 0, $size = 10, $sort = "") return $response; } - public function updateMessageMetas($metas) + public function updateMessageMetas($message_id, $metas) { - $response = $this->fireRequest("POST", "/update_metas", $metas); + $response = $this->fireRequest("PUT", "/{$message_id}/update_metas", $metas); return $response; } From 07a64979ba26f292c528707de64b6b5aabe4a114 Mon Sep 17 00:00:00 2001 From: Leonard LEUNG CHONG WO Date: Thu, 16 Nov 2017 16:47:21 +0100 Subject: [PATCH 3/4] [FEATURE#61247] correction proxy --- src/MessageManager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MessageManager.php b/src/MessageManager.php index 3f723ab..07ae1d4 100644 --- a/src/MessageManager.php +++ b/src/MessageManager.php @@ -37,9 +37,9 @@ public function searchMessages($query, $from = 0, $size = 10, $sort = "") return $response; } - public function updateMessageMetas($message_id, $metas) + public function updateMessageMetas($conversation_id, $message_id, $metas) { - $response = $this->fireRequest("PUT", "/{$message_id}/update_metas", $metas); + $response = $this->fireRequest("PUT", "/conversations/{$conversation_id}/messages/{$message_id}/update_metas", $metas); return $response; } From 43dd9884eb67ce05f2460a9645c3b992b730a528 Mon Sep 17 00:00:00 2001 From: Leonard LEUNG CHONG WO Date: Fri, 17 Nov 2017 09:34:52 +0100 Subject: [PATCH 4/4] [FEATURE#61247] gitignore et ds store --- .DS_Store | Bin 6148 -> 0 bytes .gitignore | 1 + 2 files changed, 1 insertion(+) delete mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 8718a121b76e37c6747add654ab67d052787286e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHKK~4iP476#5DskzN1BX0;{vfKB7xV*2T?7Y~tx(H3Kj@444Q~8}nb;t{o zvL$Dn*v=*+Z4!%!E_dxhWG*5zC{byQ2!}^q7alwXYMrB(*XPH@YTb96k%>-mh-<%; zH+hg3Y2|qR-Ob_H-}Oz??zU@@_sPd?-O?bx>)Sv5o2MWA>`#%BSW_?%3LrF+ zI>wX7WyfM@>7rhIsDJsZc+vWG%%5twXf}*C7zhT23{0#$=ly?&UuLw(AErbv7zhT= zi~*fCt7eH!`Q7?!d%SBC^d3rKT%iGhJ$MA5!*k@iI?bPGBQ84@L(anSnhuPIKqVxa JVBjAZ_yh|vDv1C9 diff --git a/.gitignore b/.gitignore index 48b8bf9..9e2a2ac 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ vendor/ +.DS_STORE