appinfo.queryAddressBook - GiGAGenie-ServiceSDK/UserGuide GitHub Wiki
gigagenie.appinfo.queryAddressBook
API μ€λͺ
- μ£Όμλ‘ μ‘°ν API
- κ°νΈμ‘κΈ μ£Όμλ‘μ μ΄λ¦μ΄λ λ²νΈλ‘ μ‘°νν¨
API ꡬ쑰
- function queryAddressBook(options,callback)
options
queryby
: (Mandatory, String) λ€μ λ κ°μ§ κ°μ κ°μ§ μ μμ
byname
: μ΄λ¦μΌλ‘ μ‘°ν
list
: λ±λ‘λ λͺ¨λ λ²νΈ μ‘°ν
name
: (Optional, String) λ³μΉ λλ μ€λͺ
μ΄λ©° 맀μΉλλ κ²μ μ λ¬ν¨
result_cd
200
: μ±κ³΅
404
: μ‘°νλ μ°λ½μ² μμ
500
: μμ€ν
Error
extra
addresscnt
: (Int) μ‘°νλ address μ
address
: (JSONArray) μ‘°νλ address 리μ€νΈ
nickname
: (String) λ³μΉ
name
: (String) μ€λͺ
telno
: (String) λͺ¨λ°μΌ λ²νΈ
μ¬μ© μμ
// callback λ°©μ
var options = {};
options.queryby = "bytelno"
gigagenie.appinfo.queryAddressBook(options, function (result_cd, result_msg, extra) {
if (result_cd === 200) {
console.log("Address is:" + JSON.stringify(extra.address));
} else {
console.log("queryAddressBook fail.");
}
});