diff --git a/PlayFabApiTest.js b/PlayFabApiTest.js index 8d7cd89d..e3d73873 100644 --- a/PlayFabApiTest.js +++ b/PlayFabApiTest.js @@ -17,10 +17,8 @@ var PlayFabApiTests = { titleId: null, // put titleId here developerSecretKey: null, // put secretKey here titleCanUpdateSettings: "true", - userName: "put test username here", - userEmail: "put valid email for userName here", - userPassword: "put valid password for userName here", - characterName: "put valid characterName for userName here" + userEmail: "put valid email associated with an existing account here", + characterName: "put any character name here" }, testData: { playFabId: null, // Filled during login @@ -81,9 +79,7 @@ var PlayFabApiTests = { var titleDataValid = inputTitleData.hasOwnProperty("titleId") && inputTitleData.titleId != null && inputTitleData.hasOwnProperty("developerSecretKey") && inputTitleData.developerSecretKey != null && inputTitleData.hasOwnProperty("titleCanUpdateSettings") - && inputTitleData.hasOwnProperty("userName") && inputTitleData.hasOwnProperty("userEmail") - && inputTitleData.hasOwnProperty("userPassword") && inputTitleData.hasOwnProperty("characterName"); if (titleDataValid) @@ -151,7 +147,7 @@ var PlayFabApiTests = { // https://api.playfab.com/Documentation/Client/method/LoginWithEmailAddress TitleId: PlayFab.settings.titleId, Email: PlayFabApiTests.titleData.userEmail, - Password: PlayFabApiTests.titleData.userPassword + "INVALID" + Password: "INVALID" }; var invalidLoginCallback = function (result, error) { diff --git a/PlayFabSDK/PlayFabAdminApi.js b/PlayFabSDK/PlayFabAdminApi.js index 3546d853..c8add4bf 100644 --- a/PlayFabSDK/PlayFabAdminApi.js +++ b/PlayFabSDK/PlayFabAdminApi.js @@ -18,8 +18,8 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { sessionTicket: null, - sdkVersion: "0.30.160919", - buildIdentifier: "jbuild_javascriptsdk_0", + sdkVersion: "0.31.161003", + buildIdentifier: "jbuild_javascriptsdk_1", productionServerUrl: ".playfabapi.com", logicServerUrl: null, diff --git a/PlayFabSDK/PlayFabClientApi.js b/PlayFabSDK/PlayFabClientApi.js index 80da2624..6e896bc2 100644 --- a/PlayFabSDK/PlayFabClientApi.js +++ b/PlayFabSDK/PlayFabClientApi.js @@ -18,8 +18,8 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { sessionTicket: null, - sdkVersion: "0.30.160919", - buildIdentifier: "jbuild_javascriptsdk_0", + sdkVersion: "0.31.161003", + buildIdentifier: "jbuild_javascriptsdk_1", productionServerUrl: ".playfabapi.com", logicServerUrl: null, @@ -622,6 +622,12 @@ PlayFab.ClientApi = { PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Client/GetStoreItems", request, "X-Authorization", PlayFab._internalSettings.sessionTicket, callback); }, + GetTime: function (request, callback) { + if (PlayFab._internalSettings.sessionTicket == null) throw "Must be logged in to call this method"; + + PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Client/GetTime", request, "X-Authorization", PlayFab._internalSettings.sessionTicket, callback); + }, + GetTitleData: function (request, callback) { if (PlayFab._internalSettings.sessionTicket == null) throw "Must be logged in to call this method"; diff --git a/PlayFabSDK/PlayFabMatchmakerApi.js b/PlayFabSDK/PlayFabMatchmakerApi.js index d41bbae3..c42a2a4e 100644 --- a/PlayFabSDK/PlayFabMatchmakerApi.js +++ b/PlayFabSDK/PlayFabMatchmakerApi.js @@ -18,8 +18,8 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { sessionTicket: null, - sdkVersion: "0.30.160919", - buildIdentifier: "jbuild_javascriptsdk_0", + sdkVersion: "0.31.161003", + buildIdentifier: "jbuild_javascriptsdk_1", productionServerUrl: ".playfabapi.com", logicServerUrl: null, diff --git a/PlayFabSDK/PlayFabServerApi.js b/PlayFabSDK/PlayFabServerApi.js index 17ed6d66..83066627 100644 --- a/PlayFabSDK/PlayFabServerApi.js +++ b/PlayFabSDK/PlayFabServerApi.js @@ -18,8 +18,8 @@ if(!PlayFab.settings) { if(!PlayFab._internalSettings) { PlayFab._internalSettings = { sessionTicket: null, - sdkVersion: "0.30.160919", - buildIdentifier: "jbuild_javascriptsdk_0", + sdkVersion: "0.31.161003", + buildIdentifier: "jbuild_javascriptsdk_1", productionServerUrl: ".playfabapi.com", logicServerUrl: null, @@ -316,6 +316,12 @@ PlayFab.ServerApi = { PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Server/GetPublisherData", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback); }, + GetTime: 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() + "/Server/GetTime", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback); + }, + GetTitleData: function (request, callback) { if (PlayFab.settings.developerSecretKey == null) throw "Must have PlayFab.settings.developerSecretKey set to call this method";