/// <summary> /// Gets a list of up to 250 of the shop's ProductImages. /// </summary> /// <param name="productId">The id of the product that counted images belong to.</param> /// <param name="option">An optional filter that restricts the results.</param> /// <returns>The list of <see cref="ProductImage"/> objects.</returns> public virtual async Task <IEnumerable <ProductImage> > ListAsync(long productId, PublishableListOption option = null) { return (await MakeRequestAsync <List <ProductImage> >($"products/{productId}/images.json", HttpMethod.Get, "images", option)); }
/// <summary> /// Gets a count of all of the shop's ProductImages. /// </summary> /// <param name="productId">The id of the product that counted images belong to.</param> /// <param name="option">An optional filter that restricts the results.</param> /// <returns>The count of all ProductImages for the shop.</returns> public virtual async Task <int> CountAsync(long productId, PublishableListOption option = null) { return(await MakeRequestAsync <int>($"products/{productId}/images/count.json", HttpMethod.Get, "count", option)); }