public function getChecksum($collectionId, $withRevisions = false, $withData = false)
    {

        $url      = UrlHelper::buildUrl(Urls::URL_COLLECTION, [$collectionId, self::OPTION_CHECKSUM]);
        $url      = UrlHelper::appendParamsUrl($url, ['withRevisions' => $withRevisions, 'withData' => $withData]);
        $response = $this->getConnection()->get($url);

        return $response->getJson();
    }
public function getChecksum($collectionId, $withRevisions = false, $withData = false)
    {

        $url      = UrlHelper::buildUrl(Urls::URL_COLLECTION, [$collectionId, self::OPTION_CHECKSUM]);
        $url      = UrlHelper::appendParamsUrl($url, ['withRevisions' => $withRevisions, 'withData' => $withData]);
        $response = $this->getConnection()->get($url);

        return $response->getJson();
    }
public function getChecksum ( $ collectionId , $ withRevisions = false , $ withData = false ) { $ url = UrlHelper :: buildUrl ( Urls :: URL_COLLECTION , [ $ collectionId , self :: OPTION_CHECKSUM ] ) ; $ url = UrlHelper :: appendParamsUrl ( $ url , [ 'withRevisions' => $ withRevisions , 'withData' => $ withData ] ) ; $ response = $ this -> getConnection ( ) -> get ( $ url ) ; return $ response -> getJson ( ) ; }
Calculate a checksum of the collection.

Will calculate a checksum of the meta-data (keys and optionally revision ids)
and optionally the document data in the collection.

@throws Exception

@param mixed   $collectionId         - collection id as a string or number
@param boolean $withRevisions        - optional boolean whether or not to include document revision ids
in the checksum calculation.
@param boolean $withData             - optional boolean whether or not to include document body data in the
checksum calculation.

@return array - array containing keys "checksum" and "revision"
Calculate a checksum of the collection .