Example #1
0
        public void GetSku(string token, string sku)
        {
            var request = CreateRequest("/rest/V1/catalogCategoryListV1GetListGet", Method.GET, token);

            var response = Client.Execute(request);

            if (response.StatusCode == System.Net.HttpStatusCode.OK)
            {
                M2ProductGET product = JsonConvert.DeserializeObject <M2ProductGET>(response.Content);
            }
        }
Example #2
0
        public M2ProductGET GetProductlist(string token)
        {
            var request = CreateRequest("/rest/default/V1/products/Z ICE PODS  1", Method.GET, token);

            var response = Client.Execute(request);

            M2ProductGET product = null;

            if (response.StatusCode == System.Net.HttpStatusCode.OK)
            {
                product = JsonConvert.DeserializeObject <M2ProductGET>(response.Content);
                return(product);
            }
            else
            {
                return(product);
            }
        }