Ejemplo n.º 1
0
        /// <summary>
        /// This allows you to work with the data at Shopify using a Property, which represents Products, Customers, etc
        /// </summary>
        public override bool TryGetMember(GetMemberBinder binder, out object result)
        {
            var name = binder.Name.ToLower();

            //we can do this because the Shopify stuff is all pluralized with "s" :)
            if (!name.EndsWith("s"))
                name += "s";

            result = new ShopifyObject(name,_baseUrl,_apiKey,_password);
            return true;
        }
        /// <summary>
        /// This allows you to work with the data at Shopify using a Property, which represents Products, Customers, etc
        /// </summary>
        public override bool TryGetMember(GetMemberBinder binder, out object result)
        {
            var name = binder.Name.ToLower();

            //we can do this because the Shopify stuff is all pluralized with "s" :)
            if (!name.EndsWith("s"))
            {
                name += "s";
            }

            result = new ShopifyObject(name, ShopName, AccessToken);
            return(true);
        }