테마 설정하기(다크 모드)
테마 설정(다크 모드)
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