Rest API
API를 통해 배너 및 네이티브 유닛을 연동하실 수 있습니다.
3
테마 설정(다크 모드)
const theme = 'light' // light : 라이트 모드, dark : 다크 모드
const appKey = 'YOUR_APP_KEY'
const unitId = 'YOUR_UNIT_ID'
const response = await fetch(`https://api-v2.adrop.io/request?unit=${unitId}&theme=${theme}`, {
method: 'GET',
headers: {
'Authorization': `${appKey}`,
'Content-Type': 'application/json'
}
})
Last updated