appdata.createNameSpace - GiGAGenie-ServiceSDK/UserGuide GitHub Wiki
gigagenie.appdata.createNameSpace
API μ€λͺ
- λ°μ΄ν°λ€μμ€νμ΄μ€ μμ± API
- νΉμ μ΄λ¦μ λ°μ΄ν°λ€μμ€νμ΄μ€λ₯Ό μμ±νλ€.
API ꡬ쑰
- function createNameSpace(options,callback)
options
namespace
: (String, Mandatory) Namespaceλͺshareflag
: (String, Mandatory) Namespace 곡μ μ¬λΆ μ€μ (μ΄μ©κ°μ΄λ v1.0 μμλ Nλ§ μ§μ)N
: App μ μ© λ°μ΄ν° μμ±
result_cd
200
: μ±κ³΅409
: μ΄λ―Έ μ‘΄μ¬νλ namespace500
: μμ€ν Error
extra
- null
μ¬μ© μμ
// callback λ°©μ
var options = {};
options.namespace = 'userappprofile';
options.shareflag = 'N';
gigagenie.appdata.createNameSpace(options, function (result_cd, result_msg, extra) {
if (result_cd === 200) {
console.log("Namespace creation is success.");
} else {
console.log("Namespace creation is fail.");
}
});
// promise λ°©μ
var options = {};
options.namespace = 'userappprofile';
options.shareflag = 'N';
gigagenie.appdata.createNameSpace(options).then(function (extra) {
console.log("Namespace creation is success.");
}).catch(function (result_cd, result_msg, extra) {
console.log("Namespace creation is fail.");
})
νμ© μμ λ GiGA Genie 2048μμ νμΈ κ°λ₯ν©λλ€