Commit 54a0f524 by 李进峰

update

parent d7512d8c
#### 号码导入-JSON方式
#### 号码导入-JSON方式
......@@ -41,7 +41,14 @@ ResponseBody:
"code": 1,
"msg": "成功",
"data": {
"importFailureList": [] // 导入失败的列表
"importFailureList": [], // 导入失败的列表
"idInfoList":[
{
"teleNumber":"19925432904", // 电话号码
"teleServiceName":"默认", // 导入的业务名
"teleEncodeNumber":"blabla" // 电话ID
}
]
}
}
```
......@@ -177,4 +184,70 @@ curl --location --request POST 'http://hw-gz3.heyqiwu.cn:60012/out/tele/id/to/nu
"teleEncodeNumber":"qiwu_test_20221104114443_3",
"teleServiceName":"IMPORT_TEST"
}'
```
#### 批量ID转号码
URL: {基本地址}/out/tele/ids/to/numbers
METHOD: POST
RequestHeaders:
| key | description |
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
| Timestamp | 请求时的时间戳,毫秒级 |
| Authorization | 签名, 将 appSecret + ":" + timestamp 字符串md5提取摘要 |
| App-Channel-Id | 渠道ID |
RequestBody:
```json
{
"idInfoList":[
{
"teleEncodeNumber":"qiwu_test_20221104114443_3", // 号码ID
"teleServiceName":"IMPORT_TEST" // 业务名
}
]
}
```
ResponseBody:
```json
{
"code": 1, // 1:表示查询成功; 其他表示失败
"msg": "成功",
"data": {
"idInfoList":[
{
"teleEncodeNumber": "qiwu_test_20221104114443_3", // 号码ID
"teleServiceName": "IMPORT_TEST", // 业务名
"teleNumber": "13871940702" // 真实号码
}
]
}
}
```
Example:
```
curl --location --request POST 'http://hw-gz3.heyqiwu.cn:60012/out/tele/ids/to/numbers' \
--header 'App-Channel-Id: qiwu-test' \
--header 'Timestamp: 1670304976574' \
--header 'Authorization: 1a25bcae0f4ada9e6fe5a565ec384b60' \
--header 'Content-Type: application/json' \
--data-raw '{
"idInfoList":[
{
"teleEncodeNumber":"qiwu_test_20221104114443_3", // 号码ID
"teleServiceName":"IMPORT_TEST" // 业务名
}
]
}'
```
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment