Skip to content

appinfo.getContainerId

Heewon123 edited this page Mar 28, 2018 · 4 revisions

ContainerId 조회 API

gigagenie.appinfo.getContainerId

해당 앱에 대한 G-Box 의 ContainerId 를 조회한다.

  • function getContainerId(options,callback)

  • options 은 null 이다.

  • result_cd 는 다음과 같이 정의된다.

    • 200: 성공
    • 500: 시스템 Error
  • extra 값에 다음이 설정되어 전달된다.

    • extra.containerid: String, Mandatory 로 Container 의 ID 값이다.
    • extra.deviceid: String, Mandatory 로 단말에 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);
    } else {
        console.log("getContainerId is fail.");
    }
});

UserGuide

Clone this wiki locally