Skip to content

Latest commit

 

History

History
60 lines (49 loc) · 1.45 KB

README.md

File metadata and controls

60 lines (49 loc) · 1.45 KB

使用加签SDK的用法说明

新建一个对象AssetCloudRequest()

Get调用方法:

AssetCloudRequest request = new AssetCloudRequest();
request.setUrl("");
request.setKey("");
request.setSecret("");
request.setHttpMethods(HttpMethods.GET);
HttpRequestUtil.send(request);

Post调用方法:

AssetCloudRequest request = new AssetCloudRequest();
request.setUrl("");
request.setKey("");
request.setSecret("");
request.setBody("");
request.setHttpMethods(HttpMethods.POST);
HttpRequestUtil.send(request);

Delete调用方法:

AssetCloudRequest request = new AssetCloudRequest();
request.setUrl("");
request.setKey("");
request.setSecret("");
request.setHttpMethods(HttpMethods.DELETE);
HttpRequestUtil.send(request);

Put调用方法:

AssetCloudRequest request = new AssetCloudRequest();
request.setUrl("");
request.setKey("");
request.setSecret("");
request.setBody("");
request.setHttpMethods(HttpMethods.Put);
HttpRequestUtil.send(request);

返回结果为:AssetCloudResponse<T>

字段 类型 说明
code int 状态码
success Boolean 是否成功
data T 承载数据
msg String 返回消息