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
Parameter | Description | Type |
---|---|---|
tableCode | Table Code | string |
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 Key | Description | Type |
---|---|---|
relationship_code | Friend relationship identification code | string |
uuid | Player's unique ID | string |
nickname | Player's nickname | string |
access_timezone | Player's access timezone | string |
access_diff | Seconds since the player's last access | integer |
access_timestamp | Player's last access time | integer |