Token 列表
开发中
GET
/user/tokens
请求参数
Header 参数
Accept
string
可选
默认值:
application/json
Authorization
string
可选
默认值:
Bearer {{token}}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://127.0.0.1:8000/api/v2/user/tokens' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {{token}}'
返回响应
🟢200成功
application/json
Body
status
string
必需
message
string
必需
data
object
必需
data
array [object {5}]
必需
links
object
必需
meta
object
必需
time
integer
必需
示例
{
"status": "success",
"message": "success",
"data": {
"data": [
{
"id": 1,
"name": "admin@qq.com",
"last_used_at": null,
"expires_at": null,
"created_at": "2024-12-16T08:44:20.000000Z"
},
{
"id": 2,
"name": "admin@qq.com",
"last_used_at": "2024-12-18T08:52:38.000000Z",
"expires_at": null,
"created_at": "2024-12-16T08:46:57.000000Z"
},
{
"id": 4,
"name": "123",
"last_used_at": null,
"expires_at": null,
"created_at": "2024-12-23T02:11:44.000000Z"
},
{
"id": 5,
"name": "123",
"last_used_at": null,
"expires_at": null,
"created_at": "2024-12-23T02:12:17.000000Z"
},
{
"id": 6,
"name": "123",
"last_used_at": null,
"expires_at": null,
"created_at": "2024-12-23T02:14:40.000000Z"
},
{
"id": 7,
"name": "123",
"last_used_at": null,
"expires_at": "2024-12-23T16:00:00.000000Z",
"created_at": "2024-12-23T02:18:13.000000Z"
},
{
"id": 8,
"name": "123",
"last_used_at": null,
"expires_at": "2024-12-23T16:00:00.000000Z",
"created_at": "2024-12-23T02:18:27.000000Z"
},
{
"id": 9,
"name": "admin@qq.com",
"last_used_at": null,
"expires_at": null,
"created_at": "2024-12-23T02:34:40.000000Z"
},
{
"id": 10,
"name": "123",
"last_used_at": null,
"expires_at": "2024-12-23T16:00:00.000000Z",
"created_at": "2024-12-23T02:35:28.000000Z"
},
{
"id": 11,
"name": "admin@qq.com",
"last_used_at": "2024-12-23T02:52:10.000000Z",
"expires_at": null,
"created_at": "2024-12-23T02:45:15.000000Z"
}
],
"links": {
"first": "http://127.0.0.1:8000/api/v2/user/tokens?page=1",
"last": "http://127.0.0.1:8000/api/v2/user/tokens?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« 上一页",
"active": false
},
{
"url": "http://127.0.0.1:8000/api/v2/user/tokens?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "下一页 »",
"active": false
}
],
"path": "http://127.0.0.1:8000/api/v2/user/tokens",
"per_page": 20,
"to": 10,
"total": 10
}
},
"time": 1734922792
}
修改于 2024-12-23 02:07:33