ektron中是否有任何API可以将电子商务产品分析用于我的项目

时间:2013-08-28 12:32:40

标签: analytics

我想从电子商务 - > reports->顶级产品中获取客户购买的顶级产品 有没有办法拿这些细节

1 个答案:

答案 0 :(得分: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);