public function get($collection)
    {
        $collection = $this->makeCollection($collection);

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

        $data = $response->getJson();

        return Collection::createFromArray($data);
    }
public function get($collection)
    {
        $collection = $this->makeCollection($collection);

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

        $data = $response->getJson();

        return Collection::createFromArray($data);
    }
public function get ( $ collection ) { $ collection = $ this -> makeCollection ( $ collection ) ; $ url = UrlHelper :: buildUrl ( Urls :: URL_COLLECTION , [ $ collection ] ) ; $ response = $ this -> getConnection ( ) -> get ( $ url ) ; $ data = $ response -> getJson ( ) ; return Collection :: createFromArray ( $ data ) ; }
Get information about a collection

This will throw if the collection cannot be fetched from the server

@throws Exception

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

@return Collection - the collection fetched from the server
Get information about a collection