用户注册
curl --request POST \
--url https://api.lmm.best/api/user/register \
--header 'Content-Type: application/json' \
--data '
{
"username": "<string>",
"password": "<string>",
"email": "<string>",
"verification_code": "<string>",
"aff_code": "<string>"
}
'import requests
url = "https://api.lmm.best/api/user/register"
payload = {
"username": "<string>",
"password": "<string>",
"email": "<string>",
"verification_code": "<string>",
"aff_code": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
username: '<string>',
password: '<string>',
email: '<string>',
verification_code: '<string>',
aff_code: '<string>'
})
};
fetch('https://api.lmm.best/api/user/register', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.lmm.best/api/user/register"
payload := strings.NewReader("{\n \"username\": \"<string>\",\n \"password\": \"<string>\",\n \"email\": \"<string>\",\n \"verification_code\": \"<string>\",\n \"aff_code\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}用户登陆注册
用户注册
🔓 无需鉴权
POST
/
api
/
user
/
register
用户注册
curl --request POST \
--url https://api.lmm.best/api/user/register \
--header 'Content-Type: application/json' \
--data '
{
"username": "<string>",
"password": "<string>",
"email": "<string>",
"verification_code": "<string>",
"aff_code": "<string>"
}
'import requests
url = "https://api.lmm.best/api/user/register"
payload = {
"username": "<string>",
"password": "<string>",
"email": "<string>",
"verification_code": "<string>",
"aff_code": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
username: '<string>',
password: '<string>',
email: '<string>',
verification_code: '<string>',
aff_code: '<string>'
})
};
fetch('https://api.lmm.best/api/user/register', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.lmm.best/api/user/register"
payload := strings.NewReader("{\n \"username\": \"<string>\",\n \"password\": \"<string>\",\n \"email\": \"<string>\",\n \"verification_code\": \"<string>\",\n \"aff_code\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}最后修改于 2026年9月23日
⌘I