From 65c11718ae505a8e025d224bb5a1115430e4c58e Mon Sep 17 00:00:00 2001 From: Playfab Jenkins Bot Date: Mon, 21 Nov 2016 18:26:38 +0000 Subject: [PATCH] https://api.playfab.com/releaseNotes/#161121 --- PlayFabSDK/PlayFabAdminApi.js | 14 +++++++++++++- PlayFabSDK/PlayFabClientApi.js | 2 +- PlayFabSDK/PlayFabMatchmakerApi.js | 2 +- PlayFabSDK/PlayFabServerApi.js | 2 +- 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/PlayFabSDK/PlayFabAdminApi.js b/PlayFabSDK/PlayFabAdminApi.js index ca21588a..75397326 100644 --- a/PlayFabSDK/PlayFabAdminApi.js +++ b/PlayFabSDK/PlayFabAdminApi.js @@ -18,7 +18,7 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { sessionTicket: null, - sdkVersion: "0.33.161107", + sdkVersion: "0.34.161121", buildIdentifier: "jbuild_javascriptsdk_1", productionServerUrl: ".playfabapi.com", @@ -101,6 +101,18 @@ if(!PlayFab._internalSettings) { PlayFab.AdminApi = { + GetPolicy: function (request, callback) { + if (PlayFab.settings.developerSecretKey == null) throw "Must have PlayFab.settings.developerSecretKey set to call this method"; + + PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Admin/GetPolicy", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback); + }, + + UpdatePolicy: function (request, callback) { + if (PlayFab.settings.developerSecretKey == null) throw "Must have PlayFab.settings.developerSecretKey set to call this method"; + + PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Admin/UpdatePolicy", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback); + }, + BanUsers: function (request, callback) { if (PlayFab.settings.developerSecretKey == null) throw "Must have PlayFab.settings.developerSecretKey set to call this method"; diff --git a/PlayFabSDK/PlayFabClientApi.js b/PlayFabSDK/PlayFabClientApi.js index db2d1d86..2d12a7de 100644 --- a/PlayFabSDK/PlayFabClientApi.js +++ b/PlayFabSDK/PlayFabClientApi.js @@ -18,7 +18,7 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { sessionTicket: null, - sdkVersion: "0.33.161107", + sdkVersion: "0.34.161121", buildIdentifier: "jbuild_javascriptsdk_1", productionServerUrl: ".playfabapi.com", diff --git a/PlayFabSDK/PlayFabMatchmakerApi.js b/PlayFabSDK/PlayFabMatchmakerApi.js index 983671e1..07065a78 100644 --- a/PlayFabSDK/PlayFabMatchmakerApi.js +++ b/PlayFabSDK/PlayFabMatchmakerApi.js @@ -18,7 +18,7 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { sessionTicket: null, - sdkVersion: "0.33.161107", + sdkVersion: "0.34.161121", buildIdentifier: "jbuild_javascriptsdk_1", productionServerUrl: ".playfabapi.com", diff --git a/PlayFabSDK/PlayFabServerApi.js b/PlayFabSDK/PlayFabServerApi.js index 6e8df4e5..18d5bea0 100644 --- a/PlayFabSDK/PlayFabServerApi.js +++ b/PlayFabSDK/PlayFabServerApi.js @@ -18,7 +18,7 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { sessionTicket: null, - sdkVersion: "0.33.161107", + sdkVersion: "0.34.161121", buildIdentifier: "jbuild_javascriptsdk_1", productionServerUrl: ".playfabapi.com",