# 获取单个文本
# 简要描述
- 获取单个文本
# 请求URL
api/getDoc
# 请求头
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
Content-Type | 是 | string | 此参数必传,当请求数据非json时此参数传对应格式如(multipartform-data,application/x-www-form-urlencoded,等)是json请传application/json |
askKey | 是 | string | 此参数必传,验证app的令牌 |
sign | 否 | string | 此参数如果在app设置开启了验签是必传 |
time | 否 | string | 当开启验签时,此参数为必传 |
apiUserToken | 否 | string | 用户令牌 |
nonce | 否 | string | 随机字符串(当开启V3验签此参数必传,且2分钟内不允许重复) |
# 请求方式
- get
# 参数
参数名 | 必选 | 类型 | 说明 |
---|---|---|---|
p | 否 | int | 分页页数(默认1) |
s | 否 | int | 分页条数(默认10,最大1000) |
# 请求示例
https://api.potatocloud.cn/api/getDoc?key=1
1
2
2
# 返回示例
{
"code": "200",
"message": "",
"status": true,
"data": {
"id": "1",
"status": 1,
"ip": "",
"managementId": "1212",
"appId": "2121",
"docKey": "1",
"name": "1212",
"docContent": "121212"
},
"pc": null,
"time": null,
"sign": null
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 返回参数说明
参数名 | 类型 | 说明 |
---|---|---|
code | string | 状态码200成功403权限异常或登陆超时,500请求异常 |
status | int | 状态0删除1使用 |
data | json | 更新对象 |
id | string | 文档id |
name | string | 文档名称 |
docContent | string | 文档内容 |
# 备注
- 更多返回错误代码请看首页的错误代码描述