账号信息
GET
/apiv1/user/getuserinfo
请求参数
Query 参数
sort
string
可选
示例值:
created_at
direction
string
可选
示例值:
DESC
noticeId
string
系统已读通知id
示例值:
1
Header 参数
token
string
可选
默认值:
l-GSYGGv7H0GN0ehIhX8aCwAk7DtORU81FkjI_lpC0Wsb23uwZky8vrATXmQvQibx-xYP0AsKC81Vof-RxLqzuY8muhYj6K3lXdlX_HkupF4KIEjRVcXpbGiT4g2u48kUuif5HtV5NHXoyI-h-xfnc-wsBUM-5FtVT1y_swOiHQ*
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://www.vyuyun.com/apiv1/user/getuserinfo?sort=created_at&direction=DESC¬iceId=1' \
--header 'token: l-GSYGGv7H0GN0ehIhX8aCwAk7DtORU81FkjI_lpC0Wsb23uwZky8vrATXmQvQibx-xYP0AsKC81Vof-RxLqzuY8muhYj6K3lXdlX_HkupF4KIEjRVcXpbGiT4g2u48kUuif5HtV5NHXoyI-h-xfnc-wsBUM-5FtVT1y_swOiHQ*'
返回响应
🟢200成功
application/json
Body
code
integer
必需
msg
string
必需
data
object
必需
attributes
object
属性
id
string
用户id
meta
object
备注
relationships
object
其他
type
string
用户类型
示例
{
"code": 0,
"msg": "string",
"data": {
"attributes": {
"alipay_card": "string",
"alipay_name": "string",
"avatar": "string",
"color": "string",
"created_at": "string",
"email": "string",
"group_expires": "string",
"group_name": "string",
"nick": "string",
"phone": "string",
"role": "string",
"score": "string",
"socialite_account": true,
"storage": {
"capacity": "string",
"capacity_formatted": "string",
"used": "string",
"used_formatted": "string"
},
"timezone": "string",
"two_factor_authentication": true,
"two_factor_confirmed_at": "string",
"updated_at": "string"
},
"id": "string",
"meta": {
"restrictions": {
"canCreateFolder": true,
"canCreateTeamFolder": true,
"canDownload": true,
"canUpload": true,
"canZip": true,
"reason": null,
"teamMembers": 0
}
},
"relationships": {
"favourites": [
"string"
],
"readNotifications": {
"data": [
{
"data": {
"attributes": {
"action": {
"params": {
"button": "string",
"id": "string",
"route": "string"
},
"type": "string"
},
"category": "string",
"created_at": "string",
"description": "string",
"read_at": "string",
"title": "string"
},
"id": "string",
"type": "string"
}
}
]
},
"unreadNotifications": {
"data": [
"string"
]
}
},
"type": "string"
}
}
修改于 2024-07-03 06:20:51