Connectster.Shopify.ShopifyCommunicator.GetCollection C# (CSharp) Method

GetCollection() public method

public GetCollection ( ShopifyStoreAuth storeAuth, int collectionId ) : ShopifyResponse
storeAuth ShopifyStoreAuth
collectionId int
return ShopifyResponse
            public ShopifyResponse<ShopifyCollection> GetCollection(ShopifyStoreAuth storeAuth, int collectionId)
            {
            if (storeAuth == null || collectionId <= 0)
            {
                Logger.Error(
                    "ShopifyCommunicator::GetCollection(): storeAuth cannot be null and collectionId must be >0");
                return null;
            }

            return
                new ShopifyResponse<ShopifyCollection>(
                    ShopifyGet(
                        (string.Format("{0}{1}{2}/admin/custom_collections/{3}.xml", _protocol, storeAuth.StoreSubDomain,
                                       _domain, collectionId)),
                        HashString(_appAuth.Secret + storeAuth.StoreAuthToken)));
            }