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

GetCollectionByName() public method

public GetCollectionByName ( ShopifyStoreAuth storeAuth, string name ) : ShopifyResponse
storeAuth ShopifyStoreAuth
name string
return ShopifyResponse
            public ShopifyResponse<ShopifyCollection> GetCollectionByName(ShopifyStoreAuth storeAuth, string name)
            {
            if (storeAuth == null || string.IsNullOrEmpty(name))
            {
                Logger.Error(
                    "ShopifyCommunicator::GetCollectionByName(): storeAuth and name cannot be null. name cannot be empty");
                return null;
            }

            return
                new ShopifyResponse<ShopifyCollection>(
                    ShopifyGet(
                        (_protocol + storeAuth.StoreSubDomain + _domain + "/admin/custom_collections.xml?name=" +
                         HttpUtility.UrlEncode(name)),
                        HashString(_appAuth.Secret + storeAuth.StoreAuthToken)));
            }