跳转到内容
开发者文档 / 资源分类接口

获取版本分页

分页获取资源可关联的游戏或软件版本,可按资源类型筛选。

GET/api/class_type/versions

鉴权方式 请求头 Api-Key、Api-Secret

查询参数

参数类型必填默认值说明
resourceTypeIdinteger否-资源类型 ID
pageinteger否1页码,最小为 1
perinteger否10每页数量,范围 10–200
bash
curl 'https://resource-api.xyeidc.com/api/class_type/versions?resourceTypeId=4&page=1&per=10' \
  -H 'Api-Key: YOUR_API_KEY' \
  -H 'Api-Secret: YOUR_API_SECRET'

响应示例

json
{
  "code": 200,
  "msg": "Success!",
  "data": {
    "data": [{"id": 419, "resourceTypeId": 4, "name": "1.20.1", "hot": true}],
    "perPage": 10,
    "currentPage": 1,
    "totalPages": 1,
    "count": 1
  }
}