src/Dropbox/Http/Clients/DropboxGuzzleHttpClient.php
protected function getResponseBody($response)
    {
        //Response must be string
        $body = $response;

        if ($response instanceof ResponseInterface) {
            //Fetch the body
            $body = $response->getBody();
        }

        if ($body instanceof StreamInterface) {
            $body = $body->getContents();
        }

        return (string) $body;
    }
protected function getResponseBody($response)
    {
        //Response must be string
        $body = $response;

        if ($response instanceof ResponseInterface) {
            //Fetch the body
            $body = $response->getBody();
        }

        if ($body instanceof StreamInterface) {
            $body = $body->getContents();
        }

        return (string) $body;
    }
protected function getResponseBody ( $ response ) { //Response must be string $ body = $ response ; if ( $ response instanceof ResponseInterface ) { //Fetch the body $ body = $ response -> getBody ( ) ; } if ( $ body instanceof StreamInterface ) { $ body = $ body -> getContents ( ) ; } return ( string ) $ body ; }
Get the Response Body.

@param string|\Psr\Http\Message\ResponseInterface $response Response object

@return string
Get the Response Body .