Documentinhoudsopgave

Account API

Accountinformatie opvragen

POST/v1/me

Huidige gebruikersaccountgegevens opvragen.

Volledig adres
https://otranslator.com/api/v1/me
Authenticatie
De API Key moet doorgegeven worden in de Authorization-verzoekheader
Content-Type
application/json
Onjuist formaat
{ "error": "Invalid API key." }

Aandachtspunten

Deze interface gebruikt de API Key in de Authorization request header om het huidige account te identificeren.

Voorbeeld

curl
1curl -X POST 'https://otranslator.com/api/v1/me' \
2--header 'Authorization: [yourSecretKey]' \
3--header 'Content-Type: application/json' \
4--data '{}'

Reactie

ParametersTypeStandaardBeschrijvingVoorbeeld
balanceInteger-

Resterende punten

-

Veelvoorkomende fouten

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.