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];