用户面板
开发中
GET
/api/v2/user/panel
请求参数
Header 参数
X-Fresns-App-Id
string
必需
密钥位置:控制面板->应用中心->应用密钥
默认值:
{{appId}}
X-Fresns-Client-Platform-Id
integer
必需
默认值:
{{clientPlatformId}}
X-Fresns-Client-Version
string
必需
默认值:
{{clientVersion}}
X-Fresns-Client-Device-Info
string
必需
压缩 Object 信息为字符串传参
默认值:
{{clientDeviceInfo}}
X-Fresns-Aid
string
可选
默认值:
{{aid}}
X-Fresns-Aid-Token
string
可选
默认值:
{{aidToken}}
X-Fresns-Uid
integer
可选
默认值:
{{uid}}
X-Fresns-Uid-Token
string
可选
默认值:
{{uidToken}}
X-Fresns-Signature
string
签名
X-Fresns-Signature-Timestamp
string
必需
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://localhost:8080/api/v2/user/panel' \
--header 'X-Fresns-App-Id;' \
--header 'X-Fresns-Client-Platform-Id;' \
--header 'X-Fresns-Client-Version;' \
--header 'X-Fresns-Client-Device-Info;' \
--header 'X-Fresns-Aid: ' \
--header 'X-Fresns-Aid-Token: ' \
--header 'X-Fresns-Uid: ' \
--header 'X-Fresns-Uid-Token: ' \
--header 'X-Fresns-Signature;' \
--header 'X-Fresns-Signature-Timestamp;'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
object
必需
multiUser
object
必需
features
array[object (ExtendFunction) {8}]
必需
profiles
array[object (ExtendFunction) {8}]
必需
conversations
object
必需
unreadNotifications
object
必需
draftCount
object
必需
publishConfig
object
必需
fileAccept
object (FileAccept)
必需
示例
{
"code": 0,
"message": "成功",
"data": {
"multiUser": {
"status": false,
"service": null
},
"features": [],
"profiles": [],
"conversations": {
"conversationCount": 0,
"unreadMessages": 0
},
"unreadNotifications": {
"systems": 0,
"recommends": 0,
"likes": 0,
"dislikes": 0,
"follows": 0,
"blocks": 0,
"mentions": 0,
"comments": 0
},
"draftCount": {
"posts": 0,
"comments": 0
},
"publishConfig": {
"post": {
"perm": {
"draft": true,
"publish": true,
"review": false,
"emailRequired": false,
"phoneRequired": false,
"realNameRequired": false,
"tips": []
},
"limit": {
"status": false,
"isInTime": false,
"type": 1,
"periodStart": "2022-06-01 22:30:00",
"periodEnd": "2022-06-06 08:00:00",
"periodStartFormat": "2022-06-01 22:30:00",
"periodEndFormat": "2022-06-06 08:00:00",
"cycleStart": "23:00:00",
"cycleEnd": "08:30:00",
"cycleStartFormat": "23:00",
"cycleEndFormat": "08:30",
"rule": 1,
"tip": "当前角色发表内容有时间限制,请在规定的时间内再发表"
}
},
"comment": {
"perm": {
"draft": true,
"publish": true,
"review": false,
"emailRequired": false,
"phoneRequired": false,
"realNameRequired": false,
"tips": []
},
"limit": {
"status": false,
"isInTime": false,
"type": 1,
"periodStart": "2022-06-01 22:30:00",
"periodEnd": "2022-06-06 08:00:00",
"periodStartFormat": "2022-06-01 22:30:00",
"periodEndFormat": "2022-06-06 08:00:00",
"cycleStart": "23:00:00",
"cycleEnd": "08:30:00",
"cycleStartFormat": "23:00",
"cycleEndFormat": "08:30",
"rule": 1,
"tip": "当前角色发表内容有时间限制,请在规定的时间内再发表"
}
}
},
"fileAccept": {
"images": "image/png,image/gif,image/jpeg,image/jpeg,image/bmp,.png,.gif,.jpg,.jpeg,.bmp,.heic",
"videos": "video/x-ms-wmv,application/vnd.rn-realmedia,video/quicktime,video/mpeg,video/mp4,video/3gpp,video/x-flv,video/x-msvideo,application/vnd.rn-realmedia-vbr,.heic,.heic,.heic,.heic,.heic,.heic,.heic,.heic,.heic",
"audios": "audio/mpeg,audio/x-wav,audio/mp4,.heic,.heic,.heic",
"documents": "application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,text/csv,application/vnd.ms-powerpoint,application/vnd.openxmlformats-officedocument.presentationml.presentation,application/vnd.ms-powerpoint,application/pdf,text/plain,application/x-rar-compressed,application/zip,application/x-7z-compressed,application/epub+zip,application/x-mobipocket-ebook,.heic,.heic,.heic,.heic,.heic,.heic,.heic,.heic,.heic,.heic,.heic,.heic,.heic,.heic,.heic,.heic,.heic,.heic"
}
}
}
修改于 2023-03-28 07:32:48