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
| Parameter | Description | Type |
|---|---|---|
| tableCode | Table code | string |
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 Key | Description | Type |
|---|---|---|
| relationship_code | Friend relationship identification code | string |
| uuid | Player unique ID | string |
| nickname | Player nickname | string |
| access_timezone | Player access timezone | string |
| access_diff | Player access time (in seconds) | integer |
| access_timestamp | Player last access time | integer |