Skip to main content

Query Friend Request List

Queries unapproved player friend information registered in the friend table.

Source Code

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

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

Request Parameter

ParameterDescriptionType
tableCodeTable codestring

Response

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"code" : 200,
"message" : 0,
"value" : [
{
"relationship_code" : "String",
"uuid" : "String",
"nickname" : "String",
"access_timezone" : "String",
"access_diff" : "Integer",
"access_timestamp" : "Integer"
}
]
}

Response Details

Data KeyDescriptionType
relationship_codeFriend relationship identification codestring
uuidPlayer unique IDstring
nicknamePlayer nicknamestring
access_timezonePlayer access timezonestring
access_diffPlayer access time (in seconds)integer
access_timestampPlayer last access timeinteger