Konto-API
Kontoinformationen abfragen
POST/v1/me
Aktuelle Benutzerkontodetails abfragen.
- Vollständige Adresse
- https://otranslator.com/api/v1/me
- Authentifizierung
- Der API Key muss im Authorization-Anfrage-Header übermittelt werden
- Content-Type
- application/json
- Falsches Format
- { "error": "Invalid API key." }
Hinweise
Diese Schnittstelle verwendet den API Key im Authorization-Anforderungsheader zur Identifizierung des aktuellen Kontos.
Beispiel
curl
1curl -X POST 'https://otranslator.com/api/v1/me' \
2--header 'Authorization: [yourSecretKey]' \
3--header 'Content-Type: application/json' \
4--data '{}'Antwort
| Parameter | Typ | Standard | Beschreibung | Beispiel |
|---|---|---|---|---|
| balance | Integer | - | Verbleibendes Guthaben | - |
Häufige Fehler
401 Missing API key.
The Authorization request header is required.
401 Invalid API key.
The API key does not exist, has been deleted, or is no longer valid.