API 参考

25 个端点

每个端点都接受 JSON,并需要 X-API-Key 请求头进行身份验证。

基础 URL 和请求头

基础 URL
https://horizon.pm/api/v1/app
X-API-Key
你的项目 API Key。每个请求都要发送。

查看完整 API 参考

端点

25 / 25
方法路径功能复制 URL
POST/user-management/signup身份认证
POST/user-management/signin身份认证
POST/user-management/check-auth用户
POST/user-management/change-name用户
GET/player-profile玩家资料
PUT/player-profile玩家资料
POST/leaderboard/submit排行榜
GET/leaderboards/{boardKey}/top排行榜
POST/validated-actions/runs已验证操作
POST/validated-actions/submit已验证操作
POST/cloud-save/save云端存档
POST/cloud-save/load云端存档
GET/remote-config/{configKey}远程配置
GET/remote-config/all远程配置
GET/localization/{key}本地化
GET/localization/all本地化
GET/news新闻
POST/gift-codes/validate礼品码
POST/gift-codes/redeem礼品码
POST/email-sending/send邮件发送
GET/email-sending/{emailId}邮件发送
POST/crash-reports/session崩溃报告
POST/crash-reports/create崩溃报告
POST/user-feedback/submit用户反馈
POST/user-logs/create用户日志

示例请求

REST (curl)
Bash
1curl -X POST https://horizon.pm/api/v1/app/user-management/signup \
2 -H "Content-Type: application/json" \
3 -H "X-API-Key: horizon_YOUR_API_KEY_HERE" \
4 -d '{"type":"ANONYMOUS","username":"TestPlayer","includeRefreshToken":true}'