From: Vincent Vanwaelscappel Date: Fri, 5 Sep 2025 16:26:08 +0000 (+0200) Subject: #7713 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=HEAD;p=fluidbook_toolboxapiclient.git #7713 --- diff --git a/src/Client.php b/src/Client.php index 0ea9285..627ac37 100644 --- a/src/Client.php +++ b/src/Client.php @@ -73,6 +73,16 @@ class Client return $this->_request('post', 'fluidbook-publication/' . $id . '/download/' . $version . '/' . $action); } + public function setFluidbooksInCollection($id, $publications) + { + return $this->_request('post', 'fluidbook-collection/' . $id . '/setpublications', ['form_params' => ['publications' => $publications]]); + } + + public function collectionRefreshSearchIndex($id) + { + return $this->_request('get', 'fluidbook-collection/' . $id . '/refreshsearchindex'); + } + protected function _request($method, $uri, $options = []) { return json_decode(self::getResponseContents($this->getClient()->request($method, $uri, $options)));