|
|
@ -7,8 +7,10 @@ import com.hfkj.service.taobao.TaoBaoService; |
|
|
|
import com.taobao.api.DefaultTaobaoClient; |
|
|
|
import com.taobao.api.DefaultTaobaoClient; |
|
|
|
import com.taobao.api.TaobaoClient; |
|
|
|
import com.taobao.api.TaobaoClient; |
|
|
|
import com.taobao.api.request.AlibabaAlscUnionElemePromotionOfficialactivityGetRequest; |
|
|
|
import com.taobao.api.request.AlibabaAlscUnionElemePromotionOfficialactivityGetRequest; |
|
|
|
|
|
|
|
import com.taobao.api.request.AlibabaAlscUnionKbcpxPositiveOrderGetRequest; |
|
|
|
import com.taobao.api.request.AlibabaAlscUnionMediaZoneAddRequest; |
|
|
|
import com.taobao.api.request.AlibabaAlscUnionMediaZoneAddRequest; |
|
|
|
import com.taobao.api.response.AlibabaAlscUnionElemePromotionOfficialactivityGetResponse; |
|
|
|
import com.taobao.api.response.AlibabaAlscUnionElemePromotionOfficialactivityGetResponse; |
|
|
|
|
|
|
|
import com.taobao.api.response.AlibabaAlscUnionKbcpxPositiveOrderGetResponse; |
|
|
|
import com.taobao.api.response.AlibabaAlscUnionMediaZoneAddResponse; |
|
|
|
import com.taobao.api.response.AlibabaAlscUnionMediaZoneAddResponse; |
|
|
|
|
|
|
|
|
|
|
|
import org.slf4j.Logger; |
|
|
|
import org.slf4j.Logger; |
|
|
@ -62,17 +64,23 @@ public class ElmService { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static JSONObject mediaZoneAdd(String sessionKey) throws Exception { |
|
|
|
public static JSONObject elmOrderList(String startTime , String endTime) throws Exception { |
|
|
|
|
|
|
|
|
|
|
|
// 打印日志, 本地生活媒体推广位创建
|
|
|
|
// 打印日志, 本地生活媒体推广位创建
|
|
|
|
log.info("============ 本地生活媒体推广位创建-START ============="); |
|
|
|
log.info("============ 本地生活媒体推广位创建-START ============="); |
|
|
|
|
|
|
|
|
|
|
|
// 创建淘宝客户端
|
|
|
|
// 创建淘宝客户端
|
|
|
|
TaobaoClient client = new DefaultTaobaoClient(url, appKey, appsecret); |
|
|
|
TaobaoClient client = new DefaultTaobaoClient(url, appKey, appsecret); |
|
|
|
AlibabaAlscUnionMediaZoneAddRequest req = new AlibabaAlscUnionMediaZoneAddRequest(); |
|
|
|
AlibabaAlscUnionKbcpxPositiveOrderGetRequest req = new AlibabaAlscUnionKbcpxPositiveOrderGetRequest(); |
|
|
|
req.setZoneName("推广位"); |
|
|
|
req.setDateType(1L); |
|
|
|
req.setMediaId("1"); |
|
|
|
req.setEndDate(endTime); |
|
|
|
AlibabaAlscUnionMediaZoneAddResponse rsp = client.execute(req, sessionKey); |
|
|
|
req.setBizUnit(2L); |
|
|
|
|
|
|
|
req.setPageSize(50L); |
|
|
|
|
|
|
|
req.setPageNumber(1L); |
|
|
|
|
|
|
|
req.setStartDate(startTime); |
|
|
|
|
|
|
|
req.setPid(pid); |
|
|
|
|
|
|
|
req.setIncludeUsedStoreId(false); |
|
|
|
|
|
|
|
AlibabaAlscUnionKbcpxPositiveOrderGetResponse rsp = client.execute(req); |
|
|
|
|
|
|
|
|
|
|
|
// 打印日志,请求接口
|
|
|
|
// 打印日志,请求接口
|
|
|
|
log.info("请求接口:" + "officialactivity"); |
|
|
|
log.info("请求接口:" + "officialactivity"); |
|
|
|