사용량 이벤트 CSV 내보내기
curl --request GET \
--url https://meterengine.com/v1/events/export \
--header 'Authorization: Bearer <token>'const url = 'https://meterengine.com/v1/events/export';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));<string>{
"code": "validation_error",
"message": "서버 내부 오류입니다",
"errors": [
{
"field": "event_type",
"message": "공백일 수 없습니다"
}
]
}{
"code": "validation_error",
"message": "서버 내부 오류입니다",
"errors": [
{
"field": "event_type",
"message": "공백일 수 없습니다"
}
]
}{
"code": "validation_error",
"message": "서버 내부 오류입니다",
"errors": [
{
"field": "event_type",
"message": "공백일 수 없습니다"
}
]
}이벤트 내보내기
사용량 이벤트 CSV 내보내기
이벤트 목록과 같은 월 또는 자유 기간, 고객, 유형, 검색, 속성 조건과 정렬을 적용한다. page와 size는 목록 링크 호환을 위해 받지만 내보내기에는 적용하지 않는다. 조건 전체가 10000행을 넘거나, include_properties=true일 때 원본 properties 합계가 32MB를 넘으면 400 validation_error로 거절한다. UTF-8 BOM과 CRLF를 사용하며 문자열의 스프레드시트 수식을 이스케이프한다. include_properties=true를 선택한 경우에만 원본 properties JSON 열을 추가하며 숫자 자릿수를 보존한다. 모르는 조회 조건은 400 validation_error로 거절한다.
GET
/
v1
/
events
/
export
사용량 이벤트 CSV 내보내기
curl --request GET \
--url https://meterengine.com/v1/events/export \
--header 'Authorization: Bearer <token>'const url = 'https://meterengine.com/v1/events/export';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));<string>{
"code": "validation_error",
"message": "서버 내부 오류입니다",
"errors": [
{
"field": "event_type",
"message": "공백일 수 없습니다"
}
]
}{
"code": "validation_error",
"message": "서버 내부 오류입니다",
"errors": [
{
"field": "event_type",
"message": "공백일 수 없습니다"
}
]
}{
"code": "validation_error",
"message": "서버 내부 오류입니다",
"errors": [
{
"field": "event_type",
"message": "공백일 수 없습니다"
}
]
}인증
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
쿼리 매개변수
목록 호환용이며 CSV 행 범위에는 적용하지 않는다.
필수 범위:
x >= 0목록 호환용이며 CSV 행 범위에는 적용하지 않는다.
필수 범위:
1 <= x <= 100Maximum string length:
64Maximum string length:
64Maximum string length:
512Maximum string length:
40Maximum string length:
4Maximum string length:
4096응답
선택한 조건 전체의 이벤트 CSV. 빈 결과도 같은 열 제목을 반환한다.
The response is of type string.