Skip to content

appinfo.getContainerId

ServiceSDK edited this page Jan 4, 2021 · 4 revisions

gigagenie.appinfo.getContainerId

API 설명

  • ContainerId 조회 API
  • 해당 앱에 대한 G-Box 의 ContainerId 를 조회함

API 구조

  • function getContainerId(options,callback)
  • options
    • null
  • result_cd
    • 200: 성공
    • 500: 시스템 Error
  • extra
    • containerid: (String) Container 의 ID 값
    • deviceid: (String) 단말에 Unique 한 ID 값

사용 예시

// callback 방식
var options = {};
gigagenie.appinfo.getContainerId(options, function (result_cd, result_msg, extra) {
    if (result_cd === 200) {
        console.log("The container id is " + extra.containerid);
        console.log("The device id is " + extra.deviceid);
    } else {
        console.log("getContainerId is fail.");
    }
});
// promise 방식
var options = {};
gigagenie.appinfo.getContainerId(options).then(function (extra) {
    console.log("The container id is " + extra.containerid);
    console.log("The device id is " + extra.deviceid);
}).catch(function (result_cd, result_msg, extra) {
    console.log("getContainerId is fail.");
})

UserGuide

Clone this wiki locally