Example #1
0
 public function parseResponse(Response $response)
 {
     $body = $response->getDecodedBody();
     $top = $this->jsonName();
     if ($top && isset($body->{$top})) {
         $content = $body->{$top};
     } else {
         $content = $body;
     }
     return $content;
 }