Sparkle
  1. UserApplication 用户应用程序
Sparkle
  • API
    • BanHistory 封禁历史
      • 查询最近封禁记录
      • 复杂查询封禁记录
    • ClientDiscovery 客户端发现
      • 查询最近新客户端发现记录
      • 复杂查询客户端发现记录
    • Snapshot 快照记录
      • 查询最近快照
      • 复杂查询快照记录
    • UserApplication 用户应用程序
      • 列出我的用户应用程序
        GET
      • 获取指定用户应用程序信息
        GET
      • 重置指定用户应用程序的 AppSecret
        POST
      • 编辑指定用户应用程序
        PATCH
      • 创建新的用户应用程序
        PUT
      • 删除指定用户应用程序
        DELETE
    • User 用户
      • 用户个人基本信息
      • 读取指定用户个人基本信息
      • 登出会话
    • Github OAuth2 登录
      GET
  • BTN兼容客户端协议通讯
    • 能力
      • 提交 Peers
      • 提交 Bans
      • 请求云端规则
    • 请求 BTN 配置文件
      GET
  1. UserApplication 用户应用程序

重置指定用户应用程序的 AppSecret

开发中
POST
/api/userapp/{appId}/resetAppSecret

请求参数

Path 参数
appId
string 
必需

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://btn-prod.ghostchu-services.top/api/userapp//resetAppSecret'

返回响应

🟢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":1,"appId":"7355608","appSecret":"81f6b2eb-9632-4ac7-b318-276b1d7826b6","comment":"测试","createdAt":1723916762000,"user":{"id":1,"avatar":"https://avatars.githubusercontent.com/u/30802565?v=4","nickname":"Ghost_chu","registerAt":1723916701954,"lastSeenAt":1723974023732}}}
修改于 2024-08-18 09:51:21
上一页
获取指定用户应用程序信息
下一页
编辑指定用户应用程序
Built with