curl --request POST \
--url https://api-v2.adrop.io/event \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"uid": "<string>",
"eventName": "<string>",
"platform": "<string>"
}
'{
"message": "ok"
}
REST API를 사용하여 사용자 행동 이벤트를 전송하는 방법을 안내합니다.
curl --request POST \
--url https://api-v2.adrop.io/event \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"uid": "<string>",
"eventName": "<string>",
"platform": "<string>"
}
'{
"message": "ok"
}
application/jsonweb, android, iosbegin_checkout, purchase)의 경우 items 배열을 전달합니다.
"ok", 유효성 검증 실패 시 "!invalid"{
"message": "ok"
}
| 이벤트 이름 | 설명 | 파라미터 |
|---|---|---|
app_open | 앱 실행 | — |
sign_up | 회원가입 | method (필수) |
push_clicks | 푸시 알림 클릭 | campaign_id (필수) |
page_view | 페이지 조회 | page_id (필수), page_category, page_url |
click | 요소 클릭 | element_id (필수), element_type, target_url |
| 이벤트 이름 | 설명 | 파라미터 |
|---|---|---|
view_item | 아이템 조회 | item_id (필수), item_name, item_category, brand, price |
add_to_wishlist | 위시리스트 추가 | item_id (필수), item_name, item_category, brand, price |
add_to_cart | 장바구니 추가 | item_id (필수), item_name, item_category, brand, price (필수), quantity (필수), value, currency |
begin_checkout | 결제 시작 | currency, items (배열, 아이템당 item_id 필수) |
purchase | 구매 완료 | tx_id (필수), currency, items (배열, 아이템당 item_id 필수) |
| 이벤트 이름 | 설명 | 파라미터 |
|---|---|---|
view_content | 콘텐츠 조회 | content_id (필수), content_name, content_type |
begin_lead_form | 리드 폼 시작 | form_id (필수), form_name, form_type, form_destination |
generate_lead | 리드 생성 | form_id (필수), form_name, form_type, form_destination, value, currency |
const axios = require('axios');
axios.post('https://api-v2.adrop.io/event', {
uid: 'USER_ID',
eventName: 'app_open'
}, {
headers: {
'Authorization': 'YOUR_APP_KEY',
'Content-Type': 'application/json'
}
});
const axios = require('axios');
axios.post('https://api-v2.adrop.io/event', {
uid: 'USER_ID',
eventName: 'view_item',
platform: 'web',
item_id: 'SKU-123',
item_name: 'Widget',
item_category: 'Electronics',
brand: 'BrandX',
price: 29900
}, {
headers: {
'Authorization': 'YOUR_APP_KEY',
'Content-Type': 'application/json'
}
});
const axios = require('axios');
axios.post('https://api-v2.adrop.io/event', {
uid: 'USER_ID',
eventName: 'purchase',
platform: 'web',
tx_id: 'TXN-20240101-001',
currency: 'KRW',
items: [
{
item_id: 'SKU-001',
item_name: 'Product A',
item_category: 'Electronics',
brand: 'BrandX',
price: 29900,
quantity: 1
},
{
item_id: 'SKU-002',
item_name: 'Product B',
price: 15000,
quantity: 2
}
]
}, {
headers: {
'Authorization': 'YOUR_APP_KEY',
'Content-Type': 'application/json'
}
});
const axios = require('axios');
axios.post('https://api-v2.adrop.io/event', {
uid: 'USER_ID',
eventName: 'generate_lead',
platform: 'web',
form_id: 'contact-form-01',
form_name: 'Contact Us',
form_type: 'contact',
form_destination: '/thank-you',
value: 50000,
currency: 'KRW'
}, {
headers: {
'Authorization': 'YOUR_APP_KEY',
'Content-Type': 'application/json'
}
});
uid는 저장 전 SHA-256으로 해시 처리됩니다.이 페이지가 도움이 되었나요?