日志查询,备份查询,还原服务器备份操作
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| key | string | 是 | 方舟后台获取的key |
| id | string | 是 | 服务器后台的id |
| action | string | 否 | 为log返回总页数、总日志数,提示具体查询方式,为backup_list查询服务器备份列表,为backup_restore还原服务备份操作 |
| page | string | 否 | 当action等于log,传入page值翻页查看日志 |
| folder | string | 否 | http://你的域名/nitrado_manage.php?action=backup_restore&key=你的令牌&id=18667091&backup=858&folder=/games/ni12708146_1/noftp/arkmobile/还原服务器备份操作 |
| 状态码 | 说明 |
|---|---|
| 200 | 请求成功,服务器已成功处理了请求。 |
| 403 | 服务器拒绝请求。这可能是由于缺少必要的认证凭据(如API密钥)或权限不足。 |
| 404 | 请求的资源未找到。请检查您的请求地址是否正确。 |
| 429 | 请求过于频繁。您已超出速率限制,请稍后再试。 |
| 500 | 服务器内部错误。服务器在执行请求时遇到了问题。 |
此处将显示接口返回结果...
<?php
$url = 'https://api.945qq.cn/API/brcz.php';
$params = ['key' => 'YOUR_VALUE', 'id' => 'YOUR_VALUE', 'action' => 'YOUR_VALUE', 'page' => 'YOUR_VALUE', 'folder' => 'YOUR_VALUE', ];
$url .= '?' . http_build_query($params);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = "https://api.945qq.cn/API/brcz.php"
params = {
'key': 'YOUR_VALUE',
'id': 'YOUR_VALUE',
'action': 'YOUR_VALUE',
'page': 'YOUR_VALUE',
'folder': 'YOUR_VALUE',
}
response = requests.get(url, params=params)
print(response.text)
const url = new URL('https://api.945qq.cn/API/brcz.php');
const params = {
'key': 'YOUR_VALUE',
'id': 'YOUR_VALUE',
'action': 'YOUR_VALUE',
'page': 'YOUR_VALUE',
'folder': 'YOUR_VALUE',
};
Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));
fetch(url)
.then(response => response.text())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));