웹훅 시험 이벤트 발행
curl --request POST \
--url https://meterengine.com/v1/webhook-endpoints/{id}/test-events \
--header 'Authorization: Bearer <token>'const url = 'https://meterengine.com/v1/webhook-endpoints/{id}/test-events';
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));{}{
"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": "공백일 수 없습니다"
}
]
}웹훅
웹훅 시험 이벤트 발행
선택한 엔드포인트에 webhook_test를 발송 대기 상태로 만든다. 수신 여부는 전송 기록에서 확인한다.
POST
/
v1
/
webhook-endpoints
/
{id}
/
test-events
웹훅 시험 이벤트 발행
curl --request POST \
--url https://meterengine.com/v1/webhook-endpoints/{id}/test-events \
--header 'Authorization: Bearer <token>'const url = 'https://meterengine.com/v1/webhook-endpoints/{id}/test-events';
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));{}{
"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": "공백일 수 없습니다"
}
]
}