본문으로 건너뛰기

아이템 지급

플레이어 우편함에 아이템을 지급 합니다.

소스 코드

playNANOOHandlers.inboxSendItem = function(args) {

var items = new Array();
items.push(
{
item_code : 'DIA',
item_count : 100
}
);
items.push(
{
item_code : 'DIA',
item_count : 100
}
);

var messages = new Array();
messages.push(
{
'language' : 'default',
'title' : 'TEST',
'content' : 'TEST'
}
);

var result = pluginInbox.sendItem({
version : "v20220901",
parameters : {
tableCode : "TABLE_CODE",
items : items,
messages : messages,
period : 365
}
});

if(result.statusCode == 200) {
return true;
} else {
return false;
}
}

요청 파라미터

파라미터설명타입
tableCode테이블 코드string
items지급 아이템 정보array
messages아이템 메시지 정보. 메시지 정보 입력 시 기본 언어 (default)는 필수입니다.array
period아이템 보유 기간. 아이템 보유 기간은 일단위 입니다.integer

통신 결과

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"status": "success"
}

통신 결과 상세 정보

데이터키설명타입
status처리 결과string