Commit 213c426d by 李进峰

update

parent e1277ba3
#### 号码-JSON方式导入 #### 号码-删除
#### 号码-JSON方式导入
URL: {基本地址}/phone/number/import/json
METHOD: POST
Headers:
| key | value |
| :----------- | :------------: |
| Content-Type | multipart/form-data |
| Authorization | 用户TOKEN |
RequestBody:
```json
{
"teleServiceName":"默认", // 业务名称
"importType":2, // 导入类型-> 0: 根据业务名累加覆盖的导入; 1: 根据业务名累加不覆盖的导入; 2: 根据业务名整体覆盖;
"teleNumberInfos":[ // 号码信息列表
{
"teleNumber":"19925432904", // 电话号码
"name":"未知", // 名称
"post":"未知", // 职位
"gender":"未知", // 性别
"extraInfo":{ // 额外信息
"age":"28"
}
}
]
}
```
ResponseBody:
```json
{
"code": 1,
"msg": "成功",
"data": {
"importFailureList": [] // 导入失败的列表
}
}
```
Example:
```
curl --location --request POST 'http://47.111.189.55:60012/phone/number/import/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"teleServiceName":"默认",
"importType":2,
"teleNumberInfos":[
{
"teleNumber":"19925432904",
"name":"未知",
"post":"未知",
"gender":"未知",
"extraInfo":{
"age":"28"
}
}
]
}'
```
#### 号码-删除 #### 号码-删除
URL: {基本地址}/phone/number URL: {基本地址}/phone/number
......
#### 号码导入-JSON方式
#### 号码导入-JSON方式
URL: {基本地址}/out/import/phone/number
METHOD: POST
RequestHeaders:
| key | description |
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
| Timestamp | 请求时的时间戳,毫秒级 |
| Authorization | 签名, 将 appSecret + ":" + timestamp 字符串md5提取摘要 |
| App-Channel-Id | 渠道ID |
RequestBody:
```json
{
"teleServiceName":"默认", // 业务名称
"importType":2, // 导入类型-> 0: 根据业务名累加覆盖的导入; 1: 根据业务名累加不覆盖的导入; 2: 根据业务名整体覆盖;
"teleNumberInfos":[ // 号码信息列表
{
"teleNumber":"19925432904", // 电话号码
"name":"未知", // 名称
"post":"未知", // 职位
"gender":"未知", // 性别
"extraInfo":{ // 额外信息
"age":"28"
}
}
]
}
```
ResponseBody:
```json
{
"code": 1,
"msg": "成功",
"data": {
"importFailureList": [] // 导入失败的列表
}
}
```
Example:
```
curl --location --request POST 'http://47.111.189.55:60012/out/import/phone/number' \
--header 'Authorization: 005222656aae8adbcb8781e5e3f93268' \
--header 'App-Channel-Id: simo-test' \
--header 'Timestamp: 1666839544503' \
--header 'Content-Type: application/json' \
--data-raw '{
"teleServiceName":"默认",
"importType":2,
"teleNumberInfos":[
{
"teleNumber":"19925432904",
"location":"未知",
"name":"未知",
"post":"未知",
"gender":"男士",
"extraInfo":{
"age":"28"
}
}
]
}'
```
\ 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