feat: CreateMangaFromMangadex endpoint + tests, missing image saving

This commit is contained in:
ext.jeremy.guillot@maxicoffee.domains
2025-02-11 00:10:54 +01:00
parent ae0eac3197
commit 50080f9779
14 changed files with 387 additions and 29 deletions

View File

@@ -118,6 +118,13 @@ class MangadexClient implements MangadexClientInterface
return $this->get('/manga/' . $mangaId . '/aggregate');
}
public function getManga(string $mangaId): array
{
return $this->get('/manga/' . $mangaId, [
'includes' => ['cover_art', 'author']
]);
}
private function get(string $endpoint, array $params = []): array
{
try {