/// <summary> /// Retrieves the configuration information for all player statistics defined in the title, regardless of whether they have a reset interval. /// </summary> public static void GetPlayerStatisticDefinitions(GetPlayerStatisticDefinitionsRequest request, Action <GetPlayerStatisticDefinitionsResult> resultCallback, Action <PlayFabError> errorCallback, object customData = null) { if (PlayFabSettings.DeveloperSecretKey == null) { throw new Exception("Must have PlayFabSettings.DeveloperSecretKey set to call this method"); } PlayFabHttp.MakeApiCall("/Admin/GetPlayerStatisticDefinitions", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData); }
/// <summary> /// Retrieves the configuration information for all player statistics defined in the title, regardless of whether they have a reset interval. /// </summary> public static void GetPlayerStatisticDefinitions(GetPlayerStatisticDefinitionsRequest request, Action<GetPlayerStatisticDefinitionsResult> resultCallback, Action<PlayFabError> errorCallback, object customData = null) { if (PlayFabSettings.DeveloperSecretKey == null) throw new Exception("Must have PlayFabSettings.DeveloperSecretKey set to call this method"); PlayFabHttp.MakeApiCall("/Admin/GetPlayerStatisticDefinitions", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData); }
/// <summary> /// Retrieves the configuration information for all player statistics defined in the title, regardless of whether they have a reset interval. /// </summary> public static void GetPlayerStatisticDefinitions(GetPlayerStatisticDefinitionsRequest request, PlayFabResultCommon.ProcessApiCallback<GetPlayerStatisticDefinitionsResult> resultCallback, ErrorCallback errorCallback, object customData = null) { if (PlayFabSettings.DeveloperSecretKey == null) throw new Exception("Must have PlayFabSettings.DeveloperSecretKey set to call this method"); string serializedJson = JsonWrapper.SerializeObject(request, PlayFabUtil.ApiSerializerStrategy); Action<CallRequestContainer> callback = delegate(CallRequestContainer requestContainer) { ResultContainer<GetPlayerStatisticDefinitionsResult>.HandleResults(requestContainer, resultCallback, errorCallback, null); }; PlayFabHttp.Post("/Admin/GetPlayerStatisticDefinitions", serializedJson, "X-SecretKey", PlayFabSettings.DeveloperSecretKey, callback, request, customData); }