第三方平台网点&面单余额
查看技术文档 重置为默认值
请求参数
请求数据
public void testRest() throws Exception{ ThirdPlatformRestReq thirdPlatformRestReq = new ThirdPlatformRestReq(); thirdPlatformRestReq.setPartnerId("123456"); thirdPlatformRestReq.setCom(CompanyConstant.SF); thirdPlatformRestReq.setPartnerKey("123456"); thirdPlatformRestReq.setNet("jdalpha"); String param = new Gson().toJson(thirdPlatformRestReq); String t = System.currentTimeMillis() + ""; PrintReq printReq = new PrintReq(); printReq.setT(t); printReq.setKey(key); printReq.setMethod(ApiInfoConstant.THIRD_PLATFORM_REST); printReq.setSign(SignUtils.printSign(param,t,key,secret)); printReq.setParam(param); IBaseClient baseClient = new ThirdPlatformRest(); HttpResult result = baseClient.execute(printReq); BaseResponse<List<ThirdPlatformRestData>> resp= new Gson().fromJson(result.getBody(), new TypeToken<BaseResponse<List<ThirdPlatformRestData>>>() { }.getType()); System.out.println(result); }