电子面单下单
查看技术文档 重置为默认值
请求参数
请求数据
public void testLabelOrder() throws Exception { ManInfo recManInfo = new ManInfo(); recManInfo.setName("张三"); recManInfo.setMobile("12345678910"); recManInfo.setPrintAddr("广东省深圳市南山区科技南十二路"); ManInfo sendManInfo = new ManInfo(); sendManInfo.setName("李四"); sendManInfo.setMobile("12345678910"); sendManInfo.setPrintAddr("北京市海淀区xxx路"); OrderReq orderReq = new OrderReq(); orderReq.setKuaidicom(CompanyConstant.ZJS); orderReq.setCount(1); orderReq.setSiid(siid); orderReq.setTempId("60f6c17c7c223700131d8bc3"); orderReq.setSendMan(sendManInfo); orderReq.setRecMan(recManInfo); orderReq.setPrintType(PrintType.CLOUD); String param = new Gson().toJson(orderReq); String t = System.currentTimeMillis() + ""; PrintReq printReq = new PrintReq(); printReq.setT(t); printReq.setKey(key); printReq.setSign(SignUtils.printSign(param,t,key,secret)); printReq.setMethod(ApiInfoConstant.ORDER); printReq.setParam(param); IBaseClient baseClient = new LabelV2(); System.out.println(baseClient.execute(printReq)); }