PU口袋校园
  1. 我的活动
PU口袋校园
  • is_go=1
    • 获取分数
      • 获取活动类分数
      • 获取成果类分数
      • 查询学年ID
      • 获取简易信息
    • 活动
      • 获取活动
        • 我的活动
          • 获取我的活动
            POST
        • 请求活动列表
          POST
        • 查询活动详情
          POST
        • 获取分类
          POST
      • 报名活动
        POST
    • 登录
      POST
    • 获取个人信息
      GET
  • is_go=0
    • 活动
      • 获取活动
        • 我的活动
          • 我的活动
        • 请求活动列表
        • 获取分类
        • 获取活动详情
        • 活动报名
    • 登录
      POST
    • 获取个人信息
      POST
  • 获取sid
    GET
  1. 我的活动

获取我的活动

已测完
POST
/apis/activity/myList/new
最后修改时间:2024-10-07 03:50:00

请求参数

Header 参数
Accept
string 
可选
示例值:
application/json, text/plain, */*
Accept-Language
string 
可选
示例值:
zh-CN,zh;q=0.9,en;q=0.8
Authorization
string 
可选
用于登录验证,格式为:"Bearer {登录响应token}:{学校ID}"
示例值:
Bearer {{token}}:{{sid}}
DNT
string 
可选
示例值:
1
Origin
string 
可选
示例值:
https://class.pocketuni.net
Referer
string 
可选
示例值:
https://class.pocketuni.net/
User-Agent
string 
可选
示例值:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36 Edg/128.0.0.0
Body 参数application/json
type
enum<integer> 
活动类型
必需
1:未开始活动
2:进行中活动
3:已结束活动
4:已完结活动
5:报名待审核活动
>= 1<= 5
枚举值:
12345
默认值:
1
示例值:
12345
page
integer 
页面
必需
默认值:
1
limit
integer 
单页数量
必需
默认值:
20
示例
{
    "type": 1,
    "page": 1,
    "limit": 20
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/apis/activity/myList/new' \
--header 'Accept: application/json, text/plain, */*' \
--header 'Accept-Language: zh-CN,zh;q=0.9,en;q=0.8' \
--header 'Authorization: Bearer {{token}}:{{sid}}' \
--header 'DNT: 1' \
--header 'Origin: https://class.pocketuni.net' \
--header 'Referer: https://class.pocketuni.net/' \
--header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36 Edg/128.0.0.0' \
--header 'Content-Type: application/json' \
--data-raw '{
    "type": 1,
    "page": 1,
    "limit": 20
}'

返回响应

🟢200成功
application/json
Body
code
integer 
必需
message
string 
必需
data
object 
必需
pageInfo
object 
必需
list
array [object {27}] 
必需
示例
{
    "code": 0,
    "message": "string",
    "data": {
        "pageInfo": {
            "count": 0,
            "total": 0,
            "page": 0,
            "limit": 0
        },
        "list": [
            {
                "id": 0,
                "name": "string",
                "logo": "string",
                "address": "string",
                "joinStartTime": "string",
                "joinEndTime": "string",
                "startTime": "string",
                "endTime": "string",
                "status": 0,
                "deleteReason": "string",
                "credit": 0,
                "puAmount": 0,
                "allowUserCount": 0,
                "joinUserCount": 0,
                "joinRat": "string",
                "praise": "string",
                "creater": "string",
                "createdAt": "string",
                "puType": 0,
                "leagueProjectId": 0,
                "signType": 0,
                "joinStatus": 0,
                "evaluateId": 0,
                "star": 0,
                "content": "string",
                "pics": null,
                "canDelEdit": 0
            }
        ]
    }
}
修改于 2024-10-07 03:50:00
上一页
获取简易信息
下一页
请求活动列表
Built with