Commit 32be028a by 李进峰

update

parent 1cc7942f
- BaseUrl - BaseUrl
...@@ -31,7 +31,7 @@ RequestBody: ...@@ -31,7 +31,7 @@ RequestBody:
"location":"未知", // 电话人地点 "location":"未知", // 电话人地点
"number":"", // 电话人号码 "number":"", // 电话人号码
"encodeNumber": "simo_test_20221009142217_7", // 加密后的号码 "encodeNumber": "simo_test_20221009142217_7", // 加密后的号码(ID)
"serviceName": "默认", // 业务名 "serviceName": "默认", // 业务名
"customSessionId":"121231", // 第三方会话ID "customSessionId":"121231", // 第三方会话ID
...@@ -103,11 +103,13 @@ RequestBody: ...@@ -103,11 +103,13 @@ RequestBody:
"outputCallTaskName":"菠萝包召回", // 任务名 "outputCallTaskName":"菠萝包召回", // 任务名
"teleNumber":"", // 回调的电话号码 "teleNumber":"", // 回调的电话号码
"tele_encode_number":"simo_test_20221009142217_7", // 加密后的号码 "tele_encode_number":"simo_test_20221009142217_7", // 加密后的号码(ID)
"serviceName": "默认", // 业务名 "serviceName": "默认", // 业务名
"customSessionId":"18059821525", // 回调的客户自定义sessionId "customSessionId":"18059821525", // 回调的客户自定义sessionId
"status":2 // 客户回调状态: 0: 初始状态 1: 短信发送失败 2: 短信发送成功 3: 用户已接收短信 4: 用户进入宣传页面 5: 用户召回成功 6:接收短信失败 "status":2, // 客户回调状态: 0: 初始状态 1: 短信发送失败 2: 短信发送成功 3: 用户已接收短信 4: 用户进入宣传页面 5: 用户召回成功 6:接收短信失败 可不传
"callbackType": 1, // 1: 点击 2: 下载 3: 激活 4: 充值 可不传
"cash": -100.0, // 如果是充值类型,会有金额参数 可不传
} }
``` ```
......
#### 号码导入-JSON方式 #### 号码导入-JSON方式
...@@ -71,3 +71,57 @@ curl --location --request POST 'http://47.111.189.55:60012/out/import/phone/numb ...@@ -71,3 +71,57 @@ curl --location --request POST 'http://47.111.189.55:60012/out/import/phone/numb
] ]
}' }'
``` ```
#### 号码转ID
URL: {基本地址}/out/tele/number/to/id
METHOD: POST
RequestHeaders:
| key | description |
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
| Timestamp | 请求时的时间戳,毫秒级 |
| Authorization | 签名, 将 appSecret + ":" + timestamp 字符串md5提取摘要 |
| App-Channel-Id | 渠道ID |
RequestBody:
```json
{
"teleNumber":"19925432904",
"teleServiceName":"默认"
}
```
ResponseBody:
```json
{
"code": 1,
"msg": "成功",
"data": {
"teleEncodeNumber": "simo_test_20221027105913_1", // 加密后的ID
"teleServiceName": "默认", // 业务名称
"teleNumber": "19925432904" // 电话号码
}
}
```
Example:
```
curl --location --request POST 'http://47.111.189.55:60012/out/tele/number/to/id' \
--header 'Authorization: 863500f4657f35e263e8762f6a6f00e8' \
--header 'App-Channel-Id: simo-test' \
--header 'Timestamp: 1667201714032' \
--header 'Content-Type: application/json' \
--data-raw '{
"teleNumber":"19925432904",
"teleServiceName":"默认"
}'
```
\ 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