<dependency>
<groupId>bupt.edu.jhc</groupId>
<artifactId>apicloud-client-sdk</artifactId>
<version>0.0.1</version>
</dependency>
apicloud:
client:
gateway-host: localhost:8090
ApiCloudClient apiCloudClient = new ApiCloudClient(userInfo.getAccessKey(), userInfo.getSecretKey());
apicloud:
client:
accessKey: xxx
secretKey: xxx
// 构造请求
SDKCommonReq sdkReq = new SDKCommonReq();
sdkReq.setPath(apiInterface.getHost() + apiInterface.getUrl());
sdkReq.setMethod(apiInterface.getMethod());
sdkReq.setRequestParams(req.getUserReqParams());
// 得到响应
SDKCommonResp sdkResp = apiService.request(apiCloudClient, sdkReq);