package com.leqee.oms.server.biz.test;
import com.taobao.api.ApiException;
import com.taobao.api.DefaultTaobaoClient;
import com.taobao.api.TaobaoClient;
import com.taobao.api.request.WlbWmsSnInfoQueryRequest;
import com.taobao.api.response.WlbWmsSnInfoQueryResponse;
/**
* @author ydwang
* @date 2019年3月1日
*
*/
public class WlbSnQueryTest {
public static void main(String[] args) {
Long shopId = new Long(466l);
if(shopId == 466l) {
shopId = 506l;
}
System.out.println(shopId);
WlbWmsSnInfoQueryResponse wlbResp = null;
TaobaoClient client = new DefaultTaobaoClient("http://gw.api.taobao.com/router/rest", "21308452", "56e7a01b27a846943cf6d1f219dd4b53");
WlbWmsSnInfoQueryRequest req = new WlbWmsSnInfoQueryRequest();
req.setOrderCode("LBX0327134077189470");
req.setOrderCodeType(1L);
req.setPageIndex(1L);
try {
//wlbResp = client.execute(req, "6100029ff548348abdbeeaae816c3a009effd10956ZZf013432596713");
wlbResp = client.execute(req, "6202807dd0d5293ZZb706d4221c7afe42475553e221c58d281489422");
} catch (ApiException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
System.out.println(wlbResp.getBody());
}
}