Coder Social home page Coder Social logo

luogu-api-docs's Introduction

luogu-api-docs

Unofficial Luogu API documentation.

luogu-api-docs's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

luogu-api-docs's Issues

Login API Failed

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"
		},

没有任何评测信息

Login API Failed

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

`UserStats` 类型有误

  • userRelationship
  • reverseUserRelationship

这两个字段看上去与是否登录挂钩

  • passedProblemCount
  • submittedProblemCount

这两个字段看上去可能与完全隐私保护挂钩

Publish to npm

能否将该仓库作为包发布至 npm registry?

现在仓库根目录不存在 package.json,使用 pnpm 甚至无法将 github:0f-0b/luogu-api-docs 添加为依赖项。

Login API Failed

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.