Skip to content

Commit

Permalink
Merge pull request #34 from Leosten/feature/61247
Browse files Browse the repository at this point in the history
[Feature/61247] Ajout de l'update des metas des messages proxy
  • Loading branch information
Guillaume Dubost authored Nov 17, 2017
2 parents 0e9634d + 43dd988 commit 3bec790
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
vendor/
.DS_STORE
7 changes: 7 additions & 0 deletions src/MessageManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ public function searchMessages($query, $from = 0, $size = 10, $sort = "")
return $response;
}

public function updateMessageMetas($conversation_id, $message_id, $metas)
{
$response = $this->fireRequest("PUT", "/conversations/{$conversation_id}/messages/{$message_id}/update_metas", $metas);

return $response;
}

private function fireRequest($method, $uri, $body = [])
{
$method = strtoupper($method);
Expand Down

0 comments on commit 3bec790

Please sign in to comment.