NexusPHP
  1. 用户
NexusPHP
  • 说明
  • 用户
    • 用户详情
      GET
  • 种子
    • 种子列表
      GET
    • 种子详情
      GET
    • 发布种子
      POST
  • 发布
    • 分区列表
      GET
  1. 用户

用户详情

开发中
GET
/api/v1/profile
/profile 是查看当前登录用户的详情,要查看其他用户,后面添加其 ID,访问 /profile/{ID}

请求参数

Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Query 参数
includes
string 
可选
inviter: 邀请者,valid_medals: 有效勋章
示例值:
exams
Header 参数
Accept
string 
必需
默认值:
application/json
Content-Type
string 
必需
默认值:
application/json
Body 参数multipart/form-data
object {0}

示例代码

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://dev.nexusphp.org/api/v1/profile?includes=exams' \
--header 'Accept;'

返回响应

🟢200成功
application/json
Body
ret
integer 
必需
结果码,0 成功,其他均失败
msg
string 
文本说明
必需
data
object 
数据包裹层
必需
data
object 
必需
rid
string 
请求 ID
必需
time
number 
响应耗时,单位:秒
必需
示例
{
  "ret": 0,
  "msg": "string",
  "data": {
    "data": {
      "id": 0,
      "username": "string",
      "email": "string",
      "status": "pending",
      "enabled": "yes",
      "added": "string",
      "added_human": "string",
      "last_access": "string",
      "last_access_human": "string",
      "last_login": "string",
      "last_login_human": "string",
      "class": 0,
      "class_text": "string",
      "avatar": "string",
      "invites": 0,
      "attendance_card": 0,
      "uploaded": 0,
      "uploaded_text": "string",
      "downloaded": 0,
      "downloaded_text": "string",
      "bonus": 0,
      "bonus_human": "string",
      "seed_points": 0,
      "seed_points_human": "string",
      "seedtime": 0,
      "seedtime_text": "string",
      "leechtime": 0,
      "leechtime_text": "string",
      "share_ratio": "string",
      "inviter": {
        "id": 0,
        "username": "string",
        "email": "string",
        "status": "pending",
        "enabled": "yes",
        "added": "string",
        "added_human": "string",
        "last_access": "string",
        "last_access_human": "string",
        "last_login": "string",
        "last_login_human": "string",
        "class": 0,
        "class_text": "string",
        "avatar": "string",
        "invites": 0,
        "attendance_card": 0,
        "uploaded": 0,
        "uploaded_text": "string",
        "downloaded": 0,
        "downloaded_text": "string",
        "bonus": 0,
        "bonus_human": "string",
        "seed_points": 0,
        "seed_points_human": "string",
        "seedtime": 0,
        "seedtime_text": "string",
        "leechtime": 0,
        "leechtime_text": "string",
        "share_ratio": "string"
      },
      "valid_medals": [
        {
          "id": 0,
          "name": "string",
          "get_type": 0,
          "get_type_text": "string",
          "image_large": "string",
          "image_small": "string",
          "price": 0,
          "price_human": "string",
          "duration": 0,
          "expire_at": "string",
          "user_medal_id": 0,
          "wearing_status": 0,
          "wearing_status_text": "string"
        }
      ]
    }
  },
  "rid": "string",
  "time": 0
}
修改于 2025-04-30 08:23:55
上一页
说明
下一页
种子列表
Built with