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

登录

已测完
POST
/index.php
最后修改时间:2024-12-18 22:34:16

请求参数

Query 参数
app
string 
可选
示例值:
api
mod
string 
可选
示例值:
Sitelist
act
string 
可选
示例值:
login
Header 参数
Accept
string 
可选
示例值:
application/json, text/plain, */*
Accept-Encoding
string 
可选
示例值:
gzip, deflate, br, zstd
Accept-Language
string 
可选
示例值:
zh-CN,zh;q=0.9,en;q=0.8
Connection
string 
可选
示例值:
keep-alive
Content-Length
string 
可选
示例值:
651
Content-Type
string 
可选
示例值:
multipart/form-data; boundary=----WebKitFormBoundarynKjSmHnvnjzUAUHa
DNT
string 
可选
示例值:
1
Host
string 
可选
示例值:
pocketuni.net
Origin
string 
可选
示例值:
https://pc.pocketuni.net
Referer
string 
可选
示例值:
https://pc.pocketuni.net/
Sec-Ch-Ua
string 
可选
示例值:
"Microsoft Edge";v="131", "Chromium";v="131", "Not_A Brand";v="24"
Sec-Ch-Ua-Mobile
string 
可选
示例值:
?0
Sec-Ch-Ua-Platform
string 
可选
示例值:
"Windows"
Sec-Fetch-Dest
string 
可选
示例值:
empty
Sec-Fetch-Mode
string 
可选
示例值:
cors
Sec-Fetch-Site
string 
可选
示例值:
same-site
User-Agent
string 
可选
示例值:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0
Body 参数multipart/form-data
email
string 
学号+学校邮箱
必需
type
string 
设备类型
必需
password
string 
密码
必需
usernum
string 
账号
必需
sid
string 
必需
school
string 
学校邮箱
必需

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/index.php?app=api&mod=Sitelist&act=login' \
--header 'Accept: application/json, text/plain, */*' \
--header 'Accept-Encoding: gzip, deflate, br, zstd' \
--header 'Accept-Language: zh-CN,zh;q=0.9,en;q=0.8' \
--header 'Connection: keep-alive' \
--header 'Content-Length: 651' \
--header 'DNT: 1' \
--header 'Host: pocketuni.net' \
--header 'Origin: https://pc.pocketuni.net' \
--header 'Referer: https://pc.pocketuni.net/' \
--header 'Sec-Ch-Ua: "Microsoft Edge";v="131", "Chromium";v="131", "Not_A Brand";v="24"' \
--header 'Sec-Ch-Ua-Mobile: ?0' \
--header 'Sec-Ch-Ua-Platform: "Windows"' \
--header 'Sec-Fetch-Dest: empty' \
--header 'Sec-Fetch-Mode: cors' \
--header 'Sec-Fetch-Site: same-site' \
--header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0' \
--header 'Content-Type: multipart/form-data; boundary=----WebKitFormBoundarynKjSmHnvnjzUAUHa' \
--form 'email=""' \
--form 'type=""' \
--form 'password=""' \
--form 'usernum=""' \
--form 'sid=""' \
--form 'school=""'

返回响应

🟢200成功
application/json
Body
code
integer 
必需
message
string 
必需
content
object 
必需
oauth_token
string 
必需
oauth_token_secret
string 
必需
low_password
integer 
必需
jump_to
string 
必需
user_info
object 
用户信息
必需
示例
{
    "code": 0,
    "message": "string",
    "content": {
        "oauth_token": "string",
        "oauth_token_secret": "string",
        "low_password": 0,
        "jump_to": "string",
        "user_info": {
            "uid": "string",
            "sid": "string",
            "sid1": "string",
            "is_init": "string",
            "realname": "string",
            "is_open_idcard": 0,
            "jump_to_old": 0,
            "is_youke": 0,
            "can_add_event": 0
        }
    }
}
修改于 2024-12-18 22:34:16
上一页
活动报名
下一页
获取个人信息
Built with