查询审批单 - nxtele/http-api-document GitHub Wiki
简要描述:
- 查询该用户账号下的所有的审批单
请求方式:
- URL:
https://api.nxcloud.com/api/sipphone/queryApps - Method:
POST - Content-Type:
application/x-www-form-urlencoded
参数:
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| username | 是 | string | 用户登录云平台的账号 |
| password | 是 | string | 用户登录云平台的密码 |
请求示例:
curl --location --request POST 'https://api.nxcloud.com/api/sipphone/queryApps' \
--data-urlencode 'username=asdf' \
--data-urlencode 'password=qwer'
返回示例
{
"code": "success",
"row": [
{
"secretkey": "ZeaTkTAr",
"name": "test321",
"appkey": "ifHU1a33",
"account": "test321"
},
{
"secretkey": "OvHlPwzz",
"name": "wcj_001",
"appkey": "NCZhOStw",
"account": "wcj001"
}
]
}
返回参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| code | string | success,代表返回请求成功 |
| row | list | 用户下所有的审批单数据 |
| appkey | string | 审批单appkey |
| secretkey | string | 审批单secretkey |
| name | string | 该审批单的名字 |
| account | string | 该审批单的账号 |
返回错误信息
{
"code": "failed",
"info": "用户名或密码错误"
}
| 参数名 | 类型 | 说明 |
|---|---|---|
| code | string | failed,代表返回数据失败 |
| info | string | 错误信息 |