Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/magicteamc/qkmao-docs
qkmao.cc 短網址 API v2 docs (awd dalao)
https://github.com/magicteamc/qkmao-docs
Last synced: 9 days ago
JSON representation
qkmao.cc 短網址 API v2 docs (awd dalao)
- Host: GitHub
- URL: https://github.com/magicteamc/qkmao-docs
- Owner: MagicTeaMC
- License: gpl-3.0
- Created: 2023-08-11T13:29:09.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-14T11:46:02.000Z (7 months ago)
- Last Synced: 2024-07-14T12:53:05.423Z (7 months ago)
- Homepage: https://qkmao.cc/
- Size: 22.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# qkmao – API Docs
以下為 Qkmao 的 API 文檔。## 一般
一般使用方法。```http
POST https://qkmao.cc/api/v2
```
```json
{
"link": "https://random.link",
"slug": "good-stuff-not-drugs"
}
```**回應 ✅ 200:**
```json{
"message": "successful",
"link": "https://qkmao.cc/good-stuff-not-drugs"
}
```
## 隨機短網址
提供一個連結,並自動產生隨機網址。
```haskell
POST https://qkmao.cc/api/v2
```
```json
{
"link": "https://long-link.here",
"random": true
}
```**回應 ✅ 200:**
```json{
"message": "successful",
"link": "https://qkmao.cc/xxx"
}
```
## 獲取原網址
提供 "slug" 即可獲取原完整網址。由於此使用的是 `GET` 方式,因此使用 `slug` "URL Parameter"。以下為獲取 `hello` (slug) 的網址。
```http
GET https://qkmao.cc/api/v2/get?slug=hello
```**回應 ✅ 200:**
```json{
"message": "successful",
"link": "https://maoyue.lol"
}
```