AppBox Device User Id | 앱 기본 정보 및 환경체크 | Appbox SDK 가이드
AppBox Device User Id 조회
웹에서 현재 기기의 AppBox 식별자가 필요한 경우 사용합니다.
AppBox Device User Id 가져오기
AppboxSDK.getDeviceUserId()
Javascript
1
// AppBox Device User Id 가져오기
2
AppboxSDK.getDeviceUserId(
(err, data) => {
3
if (err) {
4
console.error(
"AppBox Device User Id 조회 실패:",
"code:", err.code,
"message:", err.message
);
5
} else {
6
console.log(
"AppBox Device User Id :",
data.result
);
7
}
8
});
Request 항목 정의
| Request 항목 | 필수여부 | 설명 | 기본값 | |
|---|---|---|---|---|
| - | - | 별도 요청 항목 없음 | - | |
Response 항목 정의
| Response 결과값 | |
|---|---|
| data.result | AppBox device user id. 예) "abc123" |
| err.code | 에러코드 |
| err.message | 에러 메시지 |