public function get($customCollectionId, array $fields = array())
    {
        $params = array();
        if (!empty($fields)) {
            $params['fields'] = $fields;
        }
        $endpoint = '/admin/custom_collections/'.$customCollectionId.'.json';
        $response = $this->request($endpoint, 'GET', $params);
        return $this->createObject(CustomCollection::class, $response['custom_collection']);
    }
public function get($customCollectionId, array $fields = array())
    {
        $params = array();
        if (!empty($fields)) {
            $params['fields'] = $fields;
        }
        $endpoint = '/admin/custom_collections/'.$customCollectionId.'.json';
        $response = $this->request($endpoint, 'GET', $params);
        return $this->createObject(CustomCollection::class, $response['custom_collection']);
    }
public function get ( $ customCollectionId , array $ fields = array ( ) ) { $ params = array ( ) ; if ( ! empty ( $ fields ) ) { $ params [ 'fields' ] = $ fields ; } $ endpoint = '/admin/custom_collections/' . $ customCollectionId . '.json' ; $ response = $ this -> request ( $ endpoint , 'GET' , $ params ) ; return $ this -> createObject ( CustomCollection :: class , $ response [ 'custom_collection' ] ) ; }
Receive a single custom collection

@link   https://help.shopify.com/api/reference/customcollection#show
@param  integer $customCollectionId
@param  array   $fields
@return CustomCollection
Receive a single custom collection