-
Notifications
You must be signed in to change notification settings - Fork 7
appdata.setKeyData
kt Genie edited this page May 24, 2024
·
4 revisions
- 데이터 설정 API
- 특정 이름의 데이터네임스페이스 Key와 Data를 설정
- function setKeyData(options,callback)
-
options-
namespace: (String, Mandatory) appdata Namespace -
key: (String, Mandatory) Namespace에 설정하려는 데이터의 Key -
data: (String, Mandatory) 로 해당 Namespace 의 Key 에 설정된 데이터
-
-
result_cd-
200: 성공 -
403: 해당 Namespace 가 존재하지 않음 -
406: 저장 Key 개수 초과 -
413: 데이터 용량 초과 -
500: 시스템 Error
-
-
extra- null
// callback 방식
var options = {};
options.namespace = 'userappprofile';
options.key = 'appusername';
options.data = 'helloappdata';
gigagenie.appdata.setKeyData(options, function (result_cd, result_msg, extra) {
if (result_cd === 200) {
console.log(options.key + ":" + options.data + " is set");
} else {
console.log("Error");
}
});
// promise 방식
var options = {};
options.namespace = 'userappprofile';
options.key = 'appusername';
options.data = 'helloappdata';
gigagenie.appdata.setKeyData(options).then(function (extra) {
console.log(options.key + ":" + options.data + " is set");
}).catch(function (result_cd, result_msg, extra) {
console.log("Error");
})활용 예제는 (GGiGA Genie 2048)에서 확인 가능합니다
Copyright ⓒ 2017-2023 kt corp. All rights reserved.
- 개요
- 일반사항
- 참고사항
- 통합개발환경
- Appendix
- 기가지니 웹앱 로그 관리 가이드
- API 전체 보기
-
API초기화
- gigagenie.init
- gigagenie.init.changeContainerId
- gigagenie.init.onAppStatusChange
gigagenie.init.startBgActiongigagenie.init.stopBgActiongigagenie.init.checkBgActiongigagenie.init.startFgActiongigagenie.init.stopFgActiongigagenie.init.checkFgActiongigagenie.init.fgCallgigagenie.init.onFgCallgigagenie.init.bgCallgigagenie.init.onBgCall- gigagenie.init.runApp
-
Voice API
- voice.getVoiceText
- voice.sendTTS
- voice.onVoiceCommand
- voice.setKwsVoiceRecv
- voice.onSelectedIndex
- voice.onRequestClose
- voice.svcFinished
- voice.onActionEvent
- voice.stopTTS
- voice.setVoiceFilter
- voice.resetVoiceFilter
- voice.onVoiceFilterMsg
- voice.onRegToneResults
- voice.setVoiceRecogDomain
- voice.onVocDomainTimeout
- Call API
- 데이터 관리
- G-Box 정보 관리 API
-
Media API
- media.onMuteRequest
- media.showSoftKeyboard
- media.onRemoteKeyEvent
- media.startRecordAudio
- media.onVoiceRecordComplete
- media.stopRecordAudio
- media.createChannel
- media.destroyChannel
- media.startWebRTCAudio
- media.stopWebRTCAudio
- media.keepaliveChannel
- media.onChannelEvent
- media.getOTVChannel
- media.setOTVChannel
- media.sendMsgToOTVWebApp
- media.onOTVWebAppMsg
- media.onSoftKeyEvent
- Payment API
- Vision API
- 통계 API
- Admin API