查看短信签名
查看短信签名
一、请求参数
请求URL:
公共参数
| 参数名称 | 参数类型 | 是否必须 | 示例值 | 参数描述 |
|---|---|---|---|---|
| appid | String | 是 | 合作伙伴AppId | |
| timestamp | String | 是 | 1657525936 | 当前Unix时间戳,秒 |
| seller_nick | String | 是 | oms38173182 | 抖店的账号,对应蜂巢授权返回doudianseller字段 |
| sign | String | 是 |
业务参数
| 参数名称 | 参数类型 | 是否必须 | 示例值 | 参数描述 |
|---|---|---|---|---|
| sms_account | String | 是 | 1234 | 短信发送渠道,主要做资源隔离 |
| like | String | 否 | abc | 模糊搜索串 |
| size | Int64 | 否 | 10 | 每页大小,默认10 |
| page | Int64 | 否 | 0 | 页码,默认0 |
二、请求示例代码
Java
@Test public void SmsSignSearchRequest() throws Exception { Map<String, Object> data = new HashMap<String, Object>(); data.put("appid", Config.AppId); Long timestamp = System.currentTimeMillis() / 1000; data.put("timestamp", timestamp.toString()); data.put("seller_nick", Config.DDSellerNick); data.put("page", 0); data.put("size", 20); data.put("sign", Sign(data,Config.AppSecret)); // 调用服务API String resp = doHttpRequest(Config.SmsSignSearchRequestUrl, data); System.out.println(resp); }三、返回结果
三(一)、成功返回
{ "code": 0, "message": "ok", "data": { "sign_search_list": [ { "sign": "群荐的铺子官方店", "sms_account": "723fc3f6" }, { "sign": "群荐的铺子", "sms_account": "723fc3f6" } ], "total": 2 }}说明: code为0表示成功,非0为失败,message会包含失败原因。
四、返回字段说明
| 参数名称 | 参数类型 | 示例值 | 参数描述 |
|---|---|---|---|
| total | Int64 | 100 | 总数 |
| sign_search_list | List | 短信签名列表 | |
| – sign | String | abc | 签名 |