Skip to content

Commit e44ddca

Browse files
author
Playfab Jenkins Bot
committed
https://api.playfab.com/releaseNotes/#161003
2 parents 6bc58e7 + 76c041f commit e44ddca

File tree

5 files changed

+23
-15
lines changed

5 files changed

+23
-15
lines changed

PlayFabApiTest.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,8 @@ var PlayFabApiTests = {
1717
titleId: null, // put titleId here
1818
developerSecretKey: null, // put secretKey here
1919
titleCanUpdateSettings: "true",
20-
userName: "put test username here",
21-
userEmail: "put valid email for userName here",
22-
userPassword: "put valid password for userName here",
23-
characterName: "put valid characterName for userName here"
20+
userEmail: "put valid email associated with an existing account here",
21+
characterName: "put any character name here"
2422
},
2523
testData: {
2624
playFabId: null, // Filled during login
@@ -81,9 +79,7 @@ var PlayFabApiTests = {
8179
var titleDataValid = inputTitleData.hasOwnProperty("titleId") && inputTitleData.titleId != null
8280
&& inputTitleData.hasOwnProperty("developerSecretKey") && inputTitleData.developerSecretKey != null
8381
&& inputTitleData.hasOwnProperty("titleCanUpdateSettings")
84-
&& inputTitleData.hasOwnProperty("userName")
8582
&& inputTitleData.hasOwnProperty("userEmail")
86-
&& inputTitleData.hasOwnProperty("userPassword")
8783
&& inputTitleData.hasOwnProperty("characterName");
8884

8985
if (titleDataValid)
@@ -151,7 +147,7 @@ var PlayFabApiTests = {
151147
// https://api.playfab.com/Documentation/Client/method/LoginWithEmailAddress
152148
TitleId: PlayFab.settings.titleId,
153149
Email: PlayFabApiTests.titleData.userEmail,
154-
Password: PlayFabApiTests.titleData.userPassword + "INVALID"
150+
Password: "INVALID"
155151
};
156152

157153
var invalidLoginCallback = function (result, error) {

PlayFabSDK/PlayFabAdminApi.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ if(!PlayFab.settings) {
1818
if(!PlayFab._internalSettings) {
1919
PlayFab._internalSettings = {
2020
sessionTicket: null,
21-
sdkVersion: "0.30.160919",
22-
buildIdentifier: "jbuild_javascriptsdk_0",
21+
sdkVersion: "0.31.161003",
22+
buildIdentifier: "jbuild_javascriptsdk_1",
2323
productionServerUrl: ".playfabapi.com",
2424
logicServerUrl: null,
2525

PlayFabSDK/PlayFabClientApi.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ if(!PlayFab.settings) {
1818
if(!PlayFab._internalSettings) {
1919
PlayFab._internalSettings = {
2020
sessionTicket: null,
21-
sdkVersion: "0.30.160919",
22-
buildIdentifier: "jbuild_javascriptsdk_0",
21+
sdkVersion: "0.31.161003",
22+
buildIdentifier: "jbuild_javascriptsdk_1",
2323
productionServerUrl: ".playfabapi.com",
2424
logicServerUrl: null,
2525

@@ -622,6 +622,12 @@ PlayFab.ClientApi = {
622622
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Client/GetStoreItems", request, "X-Authorization", PlayFab._internalSettings.sessionTicket, callback);
623623
},
624624

625+
GetTime: function (request, callback) {
626+
if (PlayFab._internalSettings.sessionTicket == null) throw "Must be logged in to call this method";
627+
628+
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Client/GetTime", request, "X-Authorization", PlayFab._internalSettings.sessionTicket, callback);
629+
},
630+
625631
GetTitleData: function (request, callback) {
626632
if (PlayFab._internalSettings.sessionTicket == null) throw "Must be logged in to call this method";
627633

PlayFabSDK/PlayFabMatchmakerApi.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ if(!PlayFab.settings) {
1818
if(!PlayFab._internalSettings) {
1919
PlayFab._internalSettings = {
2020
sessionTicket: null,
21-
sdkVersion: "0.30.160919",
22-
buildIdentifier: "jbuild_javascriptsdk_0",
21+
sdkVersion: "0.31.161003",
22+
buildIdentifier: "jbuild_javascriptsdk_1",
2323
productionServerUrl: ".playfabapi.com",
2424
logicServerUrl: null,
2525

PlayFabSDK/PlayFabServerApi.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ if(!PlayFab.settings) {
1818
if(!PlayFab._internalSettings) {
1919
PlayFab._internalSettings = {
2020
sessionTicket: null,
21-
sdkVersion: "0.30.160919",
22-
buildIdentifier: "jbuild_javascriptsdk_0",
21+
sdkVersion: "0.31.161003",
22+
buildIdentifier: "jbuild_javascriptsdk_1",
2323
productionServerUrl: ".playfabapi.com",
2424
logicServerUrl: null,
2525

@@ -316,6 +316,12 @@ PlayFab.ServerApi = {
316316
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Server/GetPublisherData", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback);
317317
},
318318

319+
GetTime: function (request, callback) {
320+
if (PlayFab.settings.developerSecretKey == null) throw "Must have PlayFab.settings.developerSecretKey set to call this method";
321+
322+
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Server/GetTime", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback);
323+
},
324+
319325
GetTitleData: function (request, callback) {
320326
if (PlayFab.settings.developerSecretKey == null) throw "Must have PlayFab.settings.developerSecretKey set to call this method";
321327

0 commit comments

Comments
 (0)