public function getRevision($collectionId)
    {

        $url      = UrlHelper::buildUrl(Urls::URL_COLLECTION, [$collectionId, self::OPTION_REVISION]);
        $response = $this->getConnection()->get($url);

        return $response->getJson();
    }
public function getRevision($collectionId)
    {

        $url      = UrlHelper::buildUrl(Urls::URL_COLLECTION, [$collectionId, self::OPTION_REVISION]);
        $response = $this->getConnection()->get($url);

        return $response->getJson();
    }
public function getRevision ( $ collectionId ) { $ url = UrlHelper :: buildUrl ( Urls :: URL_COLLECTION , [ $ collectionId , self :: OPTION_REVISION ] ) ; $ response = $ this -> getConnection ( ) -> get ( $ url ) ; return $ response -> getJson ( ) ; }
Returns the Collections revision ID

The revision id is a server-generated string that clients can use to check whether data in a collection has
changed since the last revision check.

@throws Exception

@param mixed $collectionId - collection id as a string or number

@return array - containing a key revision
Returns the Collections revision ID