- $url = $this->api->getUrl();
- $log = $this->api->getLogger();
- $log->info(($response->getHeader("X-Cache-Time") ? "cached" : "enqueued")." -> response", [
- "url" => (string) $url,
- "info" => $response->getInfo(),
+ $links = $this->checkResponseMeta($response);
+ $type = $this->checkResponseType($response);
+ $data = $this->checkResponseBody($response, $type);
+
+ $this->api->getLogger()->info("response -> info", [
+ "type" => $type->getType(),
+ "links" => $links->getRelations(),
+ ]);
+ $this->api->getLogger()->debug("response -> data", [
+ "data" => $data,