Skip to main content

Query Player Data

Queries data of other player.

Call Information

public void PlayerDataLoad (string playerUserUniqueId, string storageKey, PlayNANOODelegate callback) {}

Call Information Details

ParameterDescriptionType
playerUserUniqueIdPlayer IDstring
storageKeyPlayer data keystring
callbackCommunication resultPlayNANOODelegate

Source Code

using PlayNANOO;

public class PlayNANOOExample : MonoBehaviour
{
Plugin plugin;

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

plugin.Storage.PlayerDataLoad("PLAYER_ID", "STORAGE_KEY", (state, error, jsonString, values) => {
if (state.Equals(Configure.PN_API_STATE_SUCCESS))
{
Debug.Log(values["PlayerId"]);
Debug.Log(values["StorageKey"]);
Debug.Log(values["StorageValue"]);
}
else
{
Debug.Log("Fail");
}
});
}
}

Communication Result

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"PlayerId" : "String",
"StorageKey" : "String",
"StorageValue" : "String"
}

Communication Result

Data KeyDescriptionType
PlayerIdPlayer IDstring
StorageKeyStorage data keystring
StorageValueStorage data informationstring