]> _ Git - fluidbook_toolboxapiclient.git/commitdiff
#7713 master
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 5 Sep 2025 16:26:08 +0000 (18:26 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 5 Sep 2025 16:26:08 +0000 (18:26 +0200)
src/Client.php

index 0ea92853d6ebfd2937e1f3791e298e6d1d67f72d..627ac37bd9d02339fcc910d781007ef5ee33a233 100644 (file)
@@ -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)));