查询销售所有部门
POST
/api/v3/contract/user-department
请求参数
Header 参数
appId
string
应用 appId
默认值:
{{appId}}
timestamp
string
请求时间戳
默认值:
{{timestamp}}
sign
string
请求消息签名值
默认值:
{{sign}}
appKey
string
应用 appKey
默认值:
{{appKey}}
Body 参数application/json
qwUserId
string
企微userId
salesId
number
探马销售id
示例
{
"qwUserId": "admin_tmqf0109"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v3/contract/user-department' \
--header 'appId;' \
--header 'timestamp;' \
--header 'sign;' \
--header 'appKey: {{appKey}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"qwUserId": "admin_tmqf0109"
}'
返回响应
🟢200成功
application/json
Body
code
integer
状态码
message
string
状态描述
data
array [object {2}]
响应数据列表
departmentName
string
部门名称
departmentId
integer
部门id
示例
{
"code": 0,
"message": "success",
"data": [
{
"departmentName": "探马企服",
"departmentId": 3765
}
]
}
🟢200失败
修改于 2022-07-07 03:48:51