src/Aviat/AnimeClient/Model/Anime.php 1 location
|
@@ 189-195 (lines=7) @@
|
186 |
|
|
187 |
|
$response = $this->get('search/anime', $config); |
188 |
|
|
189 |
|
if ($response->getStatusCode() != 200) |
190 |
|
{ |
191 |
|
$logger->warning("Non 200 response for search api call"); |
192 |
|
$logger->warning($response->getBody()); |
193 |
|
|
194 |
|
throw new RuntimeException($response->getEffectiveUrl()); |
195 |
|
} |
196 |
|
|
197 |
|
return Json::decode($response->getBody(), TRUE); |
198 |
|
} |
src/Aviat/AnimeClient/Model/Manga.php 1 location
|
@@ 152-158 (lines=7) @@
|
149 |
|
|
150 |
|
$response = $this->get('search.json', $config); |
151 |
|
|
152 |
|
if ($response->getStatusCode() != 200) |
153 |
|
{ |
154 |
|
$logger->warning("Non 200 response for search api call"); |
155 |
|
$logger->warning($response->getBody()); |
156 |
|
|
157 |
|
throw new RuntimeException($response->getEffectiveUrl()); |
158 |
|
} |
159 |
|
|
160 |
|
return Json::decode($response->getBody(), TRUE); |
161 |
|
} |