call.requestCall - GiGAGenie-ServiceSDK/UserGuide GitHub Wiki
gigagenie.call.requestCall
API μ€λͺ
- ν΅ν μμ² API
- μ
λ ₯ν λ²νΈλ‘ GiGA Genie ν΅ν μλΉμ€λ₯Ό μμ²ν¨
API ꡬ쑰
- function requestCall(options,callback)
options
callnumber
: (String, Mandatory) ν΅νλ₯Ό μμ²ν μ νλ²νΈ
calltype
: (Int, Mandatory) ν΅ν νμ
0
: μμ± ν΅ν
1
: μμ ν΅ν
result_cd
extra
μ¬μ© μμ
// callback
var options = {};
options.callnumber = "021234567";
options.calltype = 0;
gigagenie.call.requestCall(options, function (result_cd, result_msg, extra) {
if (result_cd === 200) {
console.log("Received Call Number is " + extra.callnumber);
};
});
// promise
var options = {};
options.callnumber = "021234567";
options.calltype = 0;
gigagenie.call.requestCall(options).then(function (extra) {
console.log("Received Call Number is " + extra.callnumber);
}).catch(function (result_cd, result_msg, extra) {
//
})