admin.getAppSetFlag - GiGAGenie-ServiceSDK/UserGuide GitHub Wiki

gigagenie.admin.getAppSetFlag

API ์„ค๋ช…

  • ์•ฑ ์„ค์ • ์ •๋ณด ์กฐํšŒ API
  • ktadmin ๊ถŒํ•œ์„ ๊ฐ€์ง„ AppID๋งŒ ํ˜ธ์ถœ ๊ฐ€๋Šฅํ•œ API
  • ํŠน์ • ์•ฑ์˜ ์ƒ์„ธ ์ •๋ณด(์ธ์ฆ, ๋ฐ์ดํ„ฐ์œ ๋ฌด)๋ฅผ ์กฐํšŒ

API ๊ตฌ์กฐ

  • function getDetailInfo(options,callback)
  • options
    • appid: (String, Mandatory) ์กฐํšŒํ•˜๋ ค๋Š” appId
  • result_cd
    • 200: ์„ฑ๊ณต
    • 500: ์‹œ์Šคํ…œ Error
  • extra
    • authkeyflag: (Boolean) AuthKey ์„ค์ • ์—ฌ๋ถ€
      • true: ์„ค์ •
      • false: ๋ฏธ์„ค์ •
    • dataflag: (Boolean) ํ•ด๋‹น appid์˜ ๋ฐ์ดํ„ฐ ์ €์žฅ ์—ฌ๋ถ€
      • true: ์ €์žฅ
      • false: ๋ฏธ์ €์žฅ

์‚ฌ์šฉ ์˜ˆ์‹œ

// callback ๋ฐฉ์‹
var options = {};
options.appid = "X0000000";
gigagenie.admin.getAppSetFlag(null, function (result_cd, result_msg, extra) {
    if (result_cd === 200) {
        if (extra.authkeyflag) console.log("AuthKey exists");
        if (extra.authkeyflag) console.log("App Data exist");
    } else {
        console.log("getAppSetFlag Fail");
    }
});