src/Aviat/AnimeClient/Model/Anime.php 1 location
|
@@ 162-168 (lines=7) @@
|
159 |
|
|
160 |
|
$response = $this->get('search/anime', $config); |
161 |
|
|
162 |
|
if ($response->getStatusCode() != 200) |
163 |
|
{ |
164 |
|
$logger->warning("Non 200 response for search api call"); |
165 |
|
$logger->warning($response->getBody()); |
166 |
|
|
167 |
|
throw new RuntimeException($response->getEffectiveUrl()); |
168 |
|
} |
169 |
|
|
170 |
|
return Json::decode($response->getBody(), TRUE); |
171 |
|
} |
src/Aviat/AnimeClient/Model/Manga.php 1 location
|
@@ 166-172 (lines=7) @@
|
163 |
|
|
164 |
|
$response = $this->get('search.json', $config); |
165 |
|
|
166 |
|
if ($response->getStatusCode() != 200) |
167 |
|
{ |
168 |
|
$logger->warning("Non 200 response for search api call"); |
169 |
|
$logger->warning($response->getBody()); |
170 |
|
|
171 |
|
throw new RuntimeException($response->getEffectiveUrl()); |
172 |
|
} |
173 |
|
|
174 |
|
return Json::decode($response->getBody(), TRUE); |
175 |
|
} |