appdata.delKeyData - GiGAGenie-ServiceSDK/UserGuide GitHub Wiki
gigagenie.appdata.delKeyData
API μ€λͺ
- λ°μ΄ν° μμ API
- νΉμ μ΄λ¦μ λ°μ΄ν°λ€μμ€νμ΄μ€μ Keyμ Dataλ₯Ό μμ ν¨
API ꡬ쑰
- function delKeyData(options,callback)
options
namespace
: (String, Mandatory) μμ νλ €λ keyμ appdata Namespace
key
: (String, Mandatory) ν΄λΉ NameSpace μμ μμ νκ³ μ νλ Key
result_cd
200
: μ±κ³΅
403
: ν΄λΉ NameSpace κ° μ‘΄μ¬νμ§ μμ
404
: ν΄λΉ Key κ° μ‘΄μ¬νμ§ μμ
500
: μμ€ν
Error
extra
μ¬μ© μμ
// callback λ°©μ
var options = {};
options.namespace = 'userappprofile';
options.key = 'appusername';
gigagenie.appdata.delKeyData(options, function (result_cd, result_msg, extra) {
if (result_cd === 200) {
console.log(options.key + ":" + extra.data + " is deleted");
} else {
console.log("Error");
}
});
// promise λ°©μ
var options = {};
options.namespace = 'userappprofile';
options.key = 'appusername';
gigagenie.appdata.delKeyData(options).then(function (extra) {
console.log(options.key + ":" + extra.data + " is deleted");
}).catch(function (result_cd, result_msg, extra) {
console.log("Error");
})