# 短信签名查询接口
# 接口地址
http://api.1cloudsp.com/query/signlist
用户通过HTTP(或HTTPS)的POST或GET方式提交短信发送请求。编码采用 UTF-8
编码。
# 请求参数
参数名 | 是否必填 | 类型 | 示例 | 描述 |
---|---|---|---|---|
accesskey | 是 | String | xxxxxxxxxx | 秘钥key |
secret | 是 | String | yyyyyyyyyy | 秘钥secret |
# 返回参数
参数名 | 类型 | 说明 | 描述 |
---|---|---|---|
extNo | String | 扩展号 | |
customerId | Int | 特服号 | |
id | Int | 签名Id | |
sign | String | 签名 | |
applyStatus | String | 审核状态 | 审核状态 1:未审核 2:审核通过 3:审核不通过 |
applyReply | String | 审核批注 | 审核批注 |
# 请求示例
/* ---示例代码 POST方式----*/
HttpClient httpClient = new HttpClient();
PostMethod postMethod = new PostMethod("http://api.1cloudsp.com/query/signlist");
postMethod.getParams().setContentCharset("UTF-8");
postMethod.getParams().setParameter(HttpMethodParams.RETRY_HANDLER,
new DefaultHttpMethodRetryHandler());
String accesskey = "xxxxxxxxxx"; //用户开发key
String accessSecret = "yyyyyyyyyy"; //用户开发秘钥
NameValuePair[] data = {
new NameValuePair("accesskey", accesskey),
new NameValuePair("secret", accessSecret)
};
postMethod.setRequestBody(data);
postMethod.setRequestHeader("Connection", "close");
int statusCode = httpClient.executeMethod(postMethod);
System.out.println("statusCode: " + statusCode + ", body: " + postMethod.getResponseBodyAsString());
/* ---示例代码 POST方式----*/
# 返回示例
{
"code": "0",
"msg": "SUCCESS",
"data": [
{
"extNo": "000005",
"exemptFlag": 2,
"customerId": 10000,
"signId": 1,
"sign": "【短信平台】",
"applyStatus": 2,
"applyReply": "审核批注"
}
]
}