public function findDocumentById($id)
    {
        $response = $this->request('GET', '/' . $id);
        if ($response->getStatusCode() !== 200) {
            return null;
        }

        return $this->documentFactory->createFromResponse($this, $id, $response);
    }
public function findDocumentById($id)
    {
        $response = $this->request('GET', '/' . $id);
        if ($response->getStatusCode() !== 200) {
            return null;
        }

        return $this->documentFactory->createFromResponse($this, $id, $response);
    }
public function findDocumentById ( $ id ) { $ response = $ this -> request ( 'GET' , '/' . $ id ) ; if ( $ response -> getStatusCode ( ) !== 200 ) { return null ; } return $ this -> documentFactory -> createFromResponse ( $ this , $ id , $ response ) ; }
Returns a document

@param string $id
@return Document
Returns a document