Query Data
Queries the player's own data.
Call Information
public void Load (string storageKey, PlayNANOODelegate callback) {}
Call Information Details
Parameter | Description | Type |
---|---|---|
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");
}
});
}
}
Communication Result
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"PlayerId" : "String",
"StorageKey" : "String",
"StorageValue" : "String"
}
Result Information Details
Data Key | Description | Type |
---|---|---|
PlayerId | Player ID | string |
StorageKey | Storage data key | string |
StorageValue | Storage data information | string |