본문으로 건너뛰기

다른 플레이어에게 아이템 지급

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

소스 코드

playNANOOHandlers.inboxSendItemPlayer = 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' : ''
}
);

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

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

요청 파라미터

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

응답 결과

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

응답

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