API Konta
Zapytanie o informacje o koncie
POST/v1/me
Wyświetl szczegóły konta bieżącego użytkownika.
- Pełny adres
- https://dltranslator.com/api/v1/me
- Uwierzytelnienie
- Należy przekazać API Key w nagłówku żądania Authorization
- Content-Type
- application/json
- Nieprawidłowy format
- { "error": "Invalid API key." }
Uwagi
Ten interfejs używa klucza API w nagłówku Authorization do identyfikacji bieżącego konta.
Przykład
curl
1curl -X POST 'https://dltranslator.com/api/v1/me' \
2--header 'Authorization: [yourSecretKey]' \
3--header 'Content-Type: application/json' \
4--data '{}'Odpowiedź
| Parametry | Typ | Domyślny | Opis | Przykład |
|---|---|---|---|---|
| balance | Integer | - | Pozostałe punkty | - |
Typowe błędy
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.