Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jiaoyou_doc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
songyinting
jiaoyou_doc
Commits
213c426d
Commit
213c426d
authored
Oct 27, 2022
by
李进峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
e1277ba3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
76 additions
and
70 deletions
+76
-70
号码管理.md
outboundcall/号码管理.md
+1
-70
外部服务调用文档.md
outboundcall/外部服务调用文档.md
+75
-0
No files found.
outboundcall/号码管理.md
View file @
213c426d
#### 号码-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
...
...
outboundcall/外部服务调用文档.md
0 → 100644
View file @
213c426d
#### 号码导入-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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment