계정 API
계정 정보 조회
POST/v1/me
현재 사용자 계정 정보를 조회합니다.
- 전체 주소
- https://otranslator.com/api/v1/me
- 인증
- Authorization 요청 헤더에 API Key를 전달해야 합니다
- Content-Type
- application/json
- 잘못된 형식
- { "error": "Invalid API key." }
주의사항
이 인터페이스는 Authorization 요청 헤더의 API Key를 사용하여 현재 계정을 식별합니다.
예시
curl
1curl -X POST 'https://otranslator.com/api/v1/me' \
2--header 'Authorization: [yourSecretKey]' \
3--header 'Content-Type: application/json' \
4--data '{}'응답
| 매개변수 | 유형 | 기본값 | 설명 | 예시 |
|---|---|---|---|---|
| balance | Integer | - | 남은 포인트 | - |
일반적인 오류
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.