Unofficial Luogu API documentation.
0f-0b / luogu-api-docs Goto Github PK
View Code? Open in Web Editor NEWUnofficial Luogu API documentation.
Home Page: https://0f-0b.github.io/luogu-api-docs/
License: The Unlicense
Unofficial Luogu API documentation.
Home Page: https://0f-0b.github.io/luogu-api-docs/
License: The Unlicense
It always returns 400 Bad Request
, this is my header:
POST /api/auth/userPassLogin HTTP/1.1
Accept: application/json, text/plain, */*
Content-Type: application/json;charset=utf-8
X-CSRF-TOKEN: 1628344943:5BgtU8O/EQ6V1fLaMh/pypG/DPsyR6Y65v8b4sXgbAI=
Referer: https://www.luogu.com.cn/auth/login
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
Origin: https://www.luogu.com.cn/
X-Requested-With: XMLHttpRequest
Cookie: __client_id=8a1edc8de67c62ed6fb2e46dd87af81e440cd774; _uid=0
User-Agent: axios/0.21.1
Content-Length: 67
Host: www.luogu.com.cn
Connection: close
我想获取记录分数,但是返回的json中subtasks为空,也没有score
"detail"键的值都是这样的
"detail": {
"compileResult": null,
"judgeResult": {
"subtasks": [],
"finishedCaseCount": 0,
"__CLASS_NAME": "Luogu\\DataClass\\Record\\JudgeResult\\JudgeResult"
},
"__CLASS_NAME": "Luogu\\DataClass\\Record\\RecordDetail"
},
没有任何评测信息
RT
It always returns 400 Bad Request
, this is my header:
POST /api/auth/userPassLogin HTTP/1.1
Accept: application/json, text/plain, */*
Content-Type: application/json;charset=utf-8
X-CSRF-TOKEN: 1628344943:5BgtU8O/EQ6V1fLaMh/pypG/DPsyR6Y65v8b4sXgbAI=
Referer: https://www.luogu.com.cn/auth/login
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
Origin: https://www.luogu.com.cn/
X-Requested-With: XMLHttpRequest
Cookie: __client_id=8a1edc8de67c62ed6fb2e46dd87af81e440cd774; _uid=0
User-Agent: axios/0.21.1
Content-Length: 67
Host: www.luogu.com.cn
Connection: close
这两个字段看上去与是否登录挂钩
这两个字段看上去可能与完全隐私保护挂钩
原本定义:
export interface RecordData {
record: RecordDetails;
testCaseGroup: number[][];
showStatus: boolean;
}
testCaseGroup
看上去是在说他是一个二维数组。
不过:https://www.luogu.com.cn/record/134729711?_contentOnly 中,返回的并不是。
是否是类型有错误?
能否将该仓库作为包发布至 npm registry?
现在仓库根目录不存在 package.json,使用 pnpm 甚至无法将 github:0f-0b/luogu-api-docs
添加为依赖项。
RT
It always returns 400 Bad Request
, this is my header:
POST /api/auth/userPassLogin HTTP/1.1
Accept: application/json, text/plain, */*
Content-Type: application/json;charset=utf-8
X-CSRF-TOKEN: 1628344943:5BgtU8O/EQ6V1fLaMh/pypG/DPsyR6Y65v8b4sXgbAI=
Referer: https://www.luogu.com.cn/auth/login
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
Origin: https://www.luogu.com.cn/
X-Requested-With: XMLHttpRequest
Cookie: __client_id=8a1edc8de67c62ed6fb2e46dd87af81e440cd774; _uid=0
User-Agent: axios/0.21.1
Content-Length: 67
Host: www.luogu.com.cn
Connection: close
RT
/api/discuss/replies/:id
好像只能获取第一页的回复
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.