API Cont
Interogarea informațiilor contului
POST/v1/me
Consultați detaliile contului utilizatorului curent.
- Adresă completă
- https://otranslator.com/api/v1/me
- Autentificare
- Este necesar să transmiteți API Key în headerul de cerere Authorization
- Content-Type
- application/json
- Format greșit
- { "error": "Invalid API key." }
Precauții
Această interfață utilizează cheia API din antetul de cerere Authorization pentru a identifica contul curent.
Exemplu
curl
1curl -X POST 'https://otranslator.com/api/v1/me' \
2--header 'Authorization: [yourSecretKey]' \
3--header 'Content-Type: application/json' \
4--data '{}'Răspuns
| Parametri | Tip | Implicit | Descriere | Exemplu |
|---|---|---|---|---|
| balance | Integer | - | Puncte rămase | - |
Erori frecvente
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.