본문으로 건너뛰기

친구 요청

플레이어에게 친구 요청을 합니다.

소스 코드

var result = pluginFriend.request({
version : "v4",
parameters : {
tableCode : "FRIEND_TABLE_CODE",
open_id : "FRIEND_OPEN_ID"
}
});

var parse = JSON.parse(result.body);
if(parse.code == 200) {
log.debug("success");
log.debug(parse.value.toString());
} else {
log.debug("fail");
}

요청 파라미터

파라미터설명타입
tableCode테이블 코드string
open_id친구 플레이어 OPEN IDstring

통신 결과

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"code" : 200,
"message" : 0,
"value" : {}
}