src/Api/DocumentApiClient.php
protected function doGetDocument($uri, array $urlParameters)
    {
        $request = $this->requestHandler->createRequest('get', $uri, $urlParameters);
        $response = $this->requestHandler->executeRequest($request, array(200));
        $document = $this->deserializeDocument((string) $response->getBody());

        return $document;
    }
protected function doGetDocument($uri, array $urlParameters)
    {
        $request = $this->requestHandler->createRequest('get', $uri, $urlParameters);
        $response = $this->requestHandler->executeRequest($request, array(200));
        $document = $this->deserializeDocument((string) $response->getBody());

        return $document;
    }
protected function doGetDocument ( $ uri , array $ urlParameters ) { $ request = $ this -> requestHandler -> createRequest ( 'get' , $ uri , $ urlParameters ) ; $ response = $ this -> requestHandler -> executeRequest ( $ request , array ( 200 ) ) ; $ document = $ this -> deserializeDocument ( ( string ) $ response -> getBody ( ) ) ; return $ document ; }
Returns a document.

@param string $uri           The endpoint URI
@param array  $urlParameters The URL parameters

@return Document The document
Returns a document .