遍历所有比特ID
请求地址: GET /bitids
接口说明
- 遍历所有比特ID。
请求参数
- Query
参数名 类型 必需 示例值 说明 offset integer 否 0 起始下标 limit integer 否 50 范围(小于1000,默认50)
请求示例
GET https://back-office-api.bitanswer.cn/bitanswer/api/bitids?offset=0&limit=3
bitkey: xxx
响应示例
{
"status": 0,
"data": {
"total": 14,
"items": [
{
"status": 0,
"guid": "FB820512BA8ACC12",
"regDate": "2020-06-08",
"label": "label_empty_1"
},
{
"status": 0,
"guid": "EA820512A98ACC12",
"regDate": "2020-06-08",
"label": "158"
},
{
"status": 0,
"guid": "1234567812345678",
"regDate": "2021-10-26"
}
]
}
}
按条件检索比特ID
请求地址: POST /bitids/data
接口说明
- 按条件检索比特ID。
请求参数
-
Query
参数名 类型 必需 示例值 说明 offset integer 否 0 起始下标 limit integer 否 50 范围(小于1000,默认50) -
Body
参数名 类型 必需 中文名 querys array 否 查询条件 sorts array 否 排序条件
支持的参数见下表,检索类型query表示可用于查询,sort表示可用于排序,query|sort表示可用于查询和排序。
参数名 类型 检索类型 必需 中文名 guid string query|sort 否 BIT-ID label string query|sort 否 喷码 status integer query|sort 否 状态 regDate string query|sort 否 注册时间
请求示例
POST https://back-office-api.bitanswer.cn/bitanswer/api/bitids/data?offset=0&limit=2
bitkey: xxx
Content-Type: application/json
{
"querys":[
{
"name":"guid",
"op":"=",
"values":["FB820512BA8ACC12"]
}
]
}
响应示例
{
"status": 0,
"data": {
"total": 1,
"items": [
{
"status": 0,
"guid": "FB820512BA8ACC12",
"regDate": "2020-06-08",
"label": "label_empty_1"
}
]
}
}
使用GUID获取一个比特ID
请求地址: GET /bitids/guid/{guid}
接口说明
- 使用GUID获取一个比特ID。
请求参数
- Path
参数名 类型 必需 示例值 说明 guid string 是 xxx BIT-ID
请求示例
GET https://back-office-api.bitanswer.cn/bitanswer/api/bitids/guid/1234567812345678?offset=0&limit=2
bitkey: xxx
响应示例
{
"status": 0,
"data": {
"total": 1,
"items": [
{
"status": 0,
"guid": "1234567812345678",
"regDate": "2021-10-26"
}
]
}
}
使用喷码获取一个比特ID
请求地址: GET /bitids/label/{label}
接口说明
- 使用喷码获取一个比特ID。
请求参数
- Path
参数名 类型 必需 示例值 说明 label string 是 xxx 喷码
请求示例
GET https://back-office-api.bitanswer.cn/bitanswer/api/bitids/label/7777
bitkey: xxxx
响应示例
{
"status": 0,
"data": {
"total": 1,
"items": [
{
"status": 0,
"guid": "1234567812345611",
"regDate": "2021-10-26",
"label": "7777"
}
]
}
}