]> _ Git - fluidbook_toolboxapiclient.git/commitdiff
#7454
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 7 Apr 2025 16:46:18 +0000 (18:46 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 7 Apr 2025 16:46:18 +0000 (18:46 +0200)
src/Client.php

index dc9a557a24fa1af176f357fde19b72bd44977a9d..ffec3748d43c575bd255eb4d2c3d26c3e9ed4814 100644 (file)
@@ -51,9 +51,9 @@ class Client
         return $response->getBody()->getContents();
     }
 
-    public function createFluidbook(\SplFileInfo $file, $base, $title, $installServer, $installPath): string
+    public function createFluidbook(\SplFileInfo $file, $base, $title, $installServer, $installPath, $attributes = []): string
     {
-        $data = ['base' => $base, 'title' => $title, 'export[server]' => $installServer, 'export[path]' => $installPath];
+        $data = array_merge($attributes, ['base' => $base, 'title' => $title, 'export[server]' => $installServer, 'export[path]' => $installPath]);
         $multipart = [];
         foreach ($data as $k => $v) {
             $multipart[] = ['name' => $k, 'contents' => $v];