批量删除 API 密钥
curl --request POST \
--url https://zero.cat/api/token/batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ids": [
1,
2
]
}
'import requests
url = "https://zero.cat/api/token/batch"
payload = { "ids": [1, 2] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({ids: [1, 2]})
};
fetch('https://zero.cat/api/token/batch', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"message": "",
"data": 2
}API 密钥管理
批量删除 API 密钥
需要个人访问令牌,作用域:api_key:write(API 密钥 → 编辑)。
POST
/
api
/
token
/
batch
批量删除 API 密钥
curl --request POST \
--url https://zero.cat/api/token/batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ids": [
1,
2
]
}
'import requests
url = "https://zero.cat/api/token/batch"
payload = { "ids": [1, 2] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({ids: [1, 2]})
};
fetch('https://zero.cat/api/token/batch', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"message": "",
"data": 2
}
