- API
- BanHistory 封禁历史
- ClientDiscovery 客户端发现
- Snapshot 快照记录
- UserApplication 用户应用程序
- User 用户
- Github OAuth2 登录GET
- BTN兼容客户端协议通讯
创建新的用户应用程序
开发中
PUT
/api/userapp
请求参数
Body 参数application/json
comment
string
备注
示例
{
"comment": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://btn-prod.ghostchu-services.top/api/userapp' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
success
boolean
必需
message
null
必需
data
object (UserApplicationVerbose)
必需
id
integer
记录ID
appId
string
AppId
appSecret
string
AppSecret
comment
string
备注
createdAt
integer
创建时间
user
object (User)
所属用户
示例
{
"success": true,
"message": null,
"data": {
"id": 2,
"appId": "8c788023-daef-4068-8012-b0e3cf67a664",
"appSecret": "a90dcdde-f185-447b-904d-fa4d264d4d35",
"comment": "tempor",
"createdAt": 1723974917039,
"user": {
"id": 1,
"avatar": "https://avatars.githubusercontent.com/u/30802565?v=4",
"nickname": "Ghost_chu",
"registerAt": 1723916701954,
"lastSeenAt": 1723974023732
}
}
}
修改于 2024-08-18 09:55:03