#### 号码导入-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" } } ] }' ``` #### 号码转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":"默认" }' ```