API Referenz
Jeder Endpunkt akzeptiert JSON und benötigt den X-API-Key-Header zur Authentifizierung.
Basis-URL und Header
- Basis-URL
https://horizon.pm/api/v1/app- X-API-Key
- Dein Projekt API Key. Sende ihn bei jeder Anfrage mit.
Endpunkte
25 von 25
| Methode | Pfad | Features | URL kopieren |
|---|---|---|---|
| POST | /user-management/signup | Authentifizierung | |
| POST | /user-management/signin | Authentifizierung | |
| POST | /user-management/check-auth | Benutzer | |
| POST | /user-management/change-name | Benutzer | |
| GET | /player-profile | Spielerprofil | |
| PUT | /player-profile | Spielerprofil | |
| POST | /leaderboard/submit | Leaderboard | |
| GET | /leaderboards/{boardKey}/top | Leaderboard | |
| POST | /validated-actions/runs | Validierte Aktionen | |
| POST | /validated-actions/submit | Validierte Aktionen | |
| POST | /cloud-save/save | Cloud-Speicher | |
| POST | /cloud-save/load | Cloud-Speicher | |
| GET | /remote-config/{configKey} | Remote-Konfig | |
| GET | /remote-config/all | Remote-Konfig | |
| GET | /localization/{key} | Lokalisierung | |
| GET | /localization/all | Lokalisierung | |
| GET | /news | Neuigkeiten | |
| POST | /gift-codes/validate | Geschenkcodes | |
| POST | /gift-codes/redeem | Geschenkcodes | |
| POST | /email-sending/send | E-Mail-Versand | |
| GET | /email-sending/{emailId} | E-Mail-Versand | |
| POST | /crash-reports/session | Absturzberichte | |
| POST | /crash-reports/create | Absturzberichte | |
| POST | /user-feedback/submit | Benutzer-Feedback | |
| POST | /user-logs/create | Benutzerprotokolle |
Beispielaufruf
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}'