更新兑换码
curl --request PUT \
--url https://api.lmm.best/api/redemption/ \
--header 'Content-Type: application/json' \
--data '
{
"id": 123,
"name": "<string>",
"key": "<string>",
"status": 123,
"quota": 123,
"created_time": 123,
"redeemed_time": 123
}
'import requests
url = "https://api.lmm.best/api/redemption/"
payload = {
"id": 123,
"name": "<string>",
"key": "<string>",
"status": 123,
"quota": 123,
"created_time": 123,
"redeemed_time": 123
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
id: 123,
name: '<string>',
key: '<string>',
status: 123,
quota: 123,
created_time: 123,
redeemed_time: 123
})
};
fetch('https://api.lmm.best/api/redemption/', 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/redemption/"
payload := strings.NewReader("{\n \"id\": 123,\n \"name\": \"<string>\",\n \"key\": \"<string>\",\n \"status\": 123,\n \"quota\": 123,\n \"created_time\": 123,\n \"redeemed_time\": 123\n}")
req, _ := http.NewRequest("PUT", 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))
}兑换码
更新兑换码
👨💼 需要管理员权限(Admin)
PUT
/
api
/
redemption
/
更新兑换码
curl --request PUT \
--url https://api.lmm.best/api/redemption/ \
--header 'Content-Type: application/json' \
--data '
{
"id": 123,
"name": "<string>",
"key": "<string>",
"status": 123,
"quota": 123,
"created_time": 123,
"redeemed_time": 123
}
'import requests
url = "https://api.lmm.best/api/redemption/"
payload = {
"id": 123,
"name": "<string>",
"key": "<string>",
"status": 123,
"quota": 123,
"created_time": 123,
"redeemed_time": 123
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
id: 123,
name: '<string>',
key: '<string>',
status: 123,
quota: 123,
created_time: 123,
redeemed_time: 123
})
};
fetch('https://api.lmm.best/api/redemption/', 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/redemption/"
payload := strings.NewReader("{\n \"id\": 123,\n \"name\": \"<string>\",\n \"key\": \"<string>\",\n \"status\": 123,\n \"quota\": 123,\n \"created_time\": 123,\n \"redeemed_time\": 123\n}")
req, _ := http.NewRequest("PUT", 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