Search Player Data
Retrieves data of another player.
Call Information
public void PlayerDataLoad (string playerUserUniqueId, string storageKey, PlayNANOODelegate callback) {}
Call Details
| Parameter | Description | Type |
|---|---|---|
| playerUserUniqueId | Player ID | string |
| storageKey | Player data key | string |
| callback | Communication result | PlayNANOODelegate |
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");
}
});
}
}
Response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"PlayerId" : "String",
"StorageKey" : "String",
"StorageValue" : "String"
}
Response Details
| Data Key | Description | Type |
|---|---|---|
| PlayerId | Player ID | string |
| StorageKey | Storage data key | string |
| StorageValue | Storage data value | string |