From 213c426dbe731302f40944e6cc93bfc2c904e61d Mon Sep 17 00:00:00 2001 From: jinfengli Date: Thu, 27 Oct 2022 11:04:30 +0800 Subject: [PATCH] update --- outboundcall/号码管理.md | 69 --------------------------------------------------------------------- outboundcall/外部服务调用文档.md | 73 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+), 69 deletions(-) create mode 100644 outboundcall/外部服务调用文档.md diff --git "a/outboundcall/\345\217\267\347\240\201\347\256\241\347\220\206.md" "b/outboundcall/\345\217\267\347\240\201\347\256\241\347\220\206.md" index a91bbeb..2a16859 100644 --- "a/outboundcall/\345\217\267\347\240\201\347\256\241\347\220\206.md" +++ "b/outboundcall/\345\217\267\347\240\201\347\256\241\347\220\206.md" @@ -1,72 +1,3 @@ -#### 号码-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 diff --git "a/outboundcall/\345\244\226\351\203\250\346\234\215\345\212\241\350\260\203\347\224\250\346\226\207\346\241\243.md" "b/outboundcall/\345\244\226\351\203\250\346\234\215\345\212\241\350\260\203\347\224\250\346\226\207\346\241\243.md" new file mode 100644 index 0000000..df04297 --- /dev/null +++ "b/outboundcall/\345\244\226\351\203\250\346\234\215\345\212\241\350\260\203\347\224\250\346\226\207\346\241\243.md" @@ -0,0 +1,73 @@ +#### 号码导入-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 -- libgit2 0.27.1