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
|
@@ 160-166 (lines=7) @@
|
157 |
|
|
158 |
|
$response = $this->get('search.json', $config); |
159 |
|
|
160 |
|
if ($response->getStatusCode() != 200) |
161 |
|
{ |
162 |
|
$logger->warning("Non 200 response for search api call"); |
163 |
|
$logger->warning($response->getBody()); |
164 |
|
|
165 |
|
throw new RuntimeException($response->getEffectiveUrl()); |
166 |
|
} |
167 |
|
|
168 |
|
return Json::decode($response->getBody(), TRUE); |
169 |
|
} |