Skip to main content

Query Friend

Queries all registered friend information from the friend table.

Source Code

var result = pluginFriend.list({
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

Communication Result

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"
}
]
}

Communication Result Details

Data KeyDescriptionType
relationship_codeFriend relationship identification codestring
uuidPlayer's unique IDstring
nicknamePlayer's nicknamestring
access_timezonePlayer's access timezonestring
access_diffSeconds since the player's last accessinteger
access_timestampPlayer's last access timeinteger