Skip to main content

Query Information

Queries the player's friend count and pending friend request count.

Call Information

FriendInfo(String friendCode, PlayNANOODelegate callback) {}

Call Details

ParameterDescriptionType
friendCodeFriend table identification codestring
callbackCommunication resultPlayNANOODelegate

Source Code

using PlayNANOO;

public class PlayNANOOExample : MonoBehaviour
{
Plugin plugin;

void Awake()
{
plugin = Plugin.GetInstance();

string friendCode = "string";
plugin.FriendInfo(friendCode, (state, message, rawData, dictionary) => {
if(state.Equals(Configure.PN_API_STATE_SUCCESS)) {
Debug.Log(value["relationship_count"]);
Debug.Log(value["ready_count"]);
} else {
Debug.Log("Fail");
}
});
}
}

Response

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

Response Details

Data KeyDescriptionType
relationship_countNumber of registered friendsinteger
ready_countNumber of pending friend requestsinteger