예제 #1
0
        /// <summary>
        /// Get all the page details for the given product.
        /// </summary>
        public async Task <ResponseItemList> GetPage(string productId, CatalogIdType idType, RequestOptions options = null)
        {
            string json = await GetStorefrontBase(options).AppendPathSegments("pages", "pdp")
                          .SetQueryParam("productId", productId).SetQueryParam("idType", idType)
                          .GetStringAsync();

            return(JsonConvert.DeserializeObject <ResponseItemList>(json, DefaultJsonSettings));
        }
예제 #2
0
        /// <summary>
        /// Get all the page details for the given product.
        /// </summary>
        public async Task <ResponseItemList> GetPage(string productId, CatalogIdType idType, string deviceFamily = DEFAULT_DEVICEFAMILY, string architecture = DEFAULT_ARCHITECTURE, CultureInfo culture = null)
        {
            string json = await GetStorefrontBase(culture).AppendPathSegments("pages", "pdp")
                          .SetQueryParam("deviceFamily", deviceFamily).SetQueryParam("architecture", architecture)
                          .SetQueryParam("productId", productId).SetQueryParam("idType", idType)
                          .GetStringAsync();

            return(JsonConvert.DeserializeObject <ResponseItemList>(json, DefaultJsonSettings));
        }
예제 #3
0
 /// <summary>
 /// Gets the details for the product with the given product ID.
 /// </summary>
 public async Task <ResponseItem <V3.ProductDetails> > GetProduct(string productId, CatalogIdType idType, RequestOptions options = null)
 {
     return(await GetStorefrontBase(options).AppendPathSegments("products", productId)
            .SetQueryParam("idType", idType)
            .GetJsonAsync <ResponseItem <V3.ProductDetails> >());
 }
예제 #4
0
 /// <summary>
 /// Gets the details for the product with the given product ID.
 /// </summary>
 public async Task <ResponseItem <V3.ProductDetails> > GetProduct(string productId, CatalogIdType idType, string deviceFamily = DEFAULT_DEVICEFAMILY, string architecture = DEFAULT_ARCHITECTURE, CultureInfo culture = null)
 {
     return(await GetStorefrontBase(culture).AppendPathSegments("products", productId)
            .SetQueryParam("idType", idType)
            .SetQueryParam("deviceFamily", deviceFamily).SetQueryParam("architecture", architecture)
            .GetJsonAsync <ResponseItem <V3.ProductDetails> >());
 }