0

我想从电子商务中获取客户购买的顶级产品->报告->顶级产品有什么办法可以获取这些详细信息

4

1 回答 1

1

您可以使用 Order API 来实现这一点。

 OrderApi _orderApi = new OrderApi();
 OrderReportData report = new OrderReportData();
 Criteria<OrderProperty> orderCriteria = new Criteria<OrderProperty>();
 orderCriteria.AddFilter(OrderProperty.DateCreated, CriteriaFilterOperator.LessThanOrEqualTo, DateTime.Now.Date);
 orderCriteria.AddFilter(OrderProperty.DateCreated, CriteriaFilterOperator.GreaterThanOrEqualTo, DateTime.Now.Date.Subtract(new TimeSpan(1, 0, 0, 0)));
 orderCriteria.PagingInfo = new PagingInfo(_orderApi.RequestInformationRef.PagingSize);
 report = _orderApi.GetReport(orderCriteria, _qty, EkEnumeration.TopProductsSortType.TotalSold);
于 2013-09-03T10:12:23.490 回答