appinfo.delAuthKey - GiGAGenie-ServiceSDK/UserGuide GitHub Wiki

gigagenie.appinfo.delAuthKey

API ์„ค๋ช…

  • AuthKey ์‚ญ์ œ API
  • ํ•ด๋‹น ์•ฑ์— ๋Œ€ํ•œ G-Box์˜ AuthKey๋ฅผ ์‚ญ์ œํ•จ

API ๊ตฌ์กฐ

  • function delAuthKey(options,callback)
  • options
    • null
  • result_cd
    • 200: ์„ฑ๊ณต
    • 500: ์‹œ์Šคํ…œ Error
  • extra
    • null

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

// callback ๋ฐฉ์‹
var options = {};
gigagenie.appinfo.delAuthKey(options, function (result_cd, result_msg, extra) {
    if (result_cd === 200) {
        console.log("AuthKey Deleting is Success");
    } else {
        console.log("AuthKey Deleting is fail.");
    }
});
// promise ๋ฐฉ์‹
var options = {};
gigagenie.appinfo.setAuthKey(options).then(function (extra) {
    console.log("AuthKey Deleting is Success");
}).catch(function (result_cd, result_msg, extra) {
    console.log("AuthKey Deleting is fail.");
})