SparkPost\SparkPostResponse::getBody PHP Метод

getBody() публичный Метод

Returns the body.
public getBody ( ) : array
Результат array $body - the json decoded body from the http response
    public function getBody()
    {
        $body = $this->response->getBody();
        $body_string = $body->__toString();
        $json = json_decode($body_string, true);
        return $json;
    }