Skip to content

Commit b68054c

Browse files
author
Paul Gilmore
authored
https://api.playfab.com/releaseNotes/#160912
https://api.playfab.com/releaseNotes/#160912
1 parent e951730 commit b68054c

File tree

5 files changed

+30
-16
lines changed

5 files changed

+30
-16
lines changed

PlayFabApiTest.js

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ var PlayFabApiTests = {
2828
testNumber: null // Used by several tests
2929
},
3030
testConstants: {
31-
TEST_KEY: "testCounter",
31+
TEST_DATA_KEY: "testCounter",
3232
TEST_STAT_NAME: "str",
3333
CHAR_TEST_TYPE: "Fighter"
3434
},
@@ -44,7 +44,7 @@ var PlayFabApiTests = {
4444
},
4545

4646
LoginTests: function () {
47-
// All tests run completely synchronously, which is a bit tricky.
47+
// All tests run in parallel, which is a bit tricky.
4848
// Some test rely on data loaded from other tests, and there's no super easy to force tests to be sequential/dependent
4949
// In fact, most of the tests return here before they're done, and report back success/fail in some arbitrary future
5050

@@ -147,6 +147,8 @@ var PlayFabApiTests = {
147147
var invalidDone = assert.async();
148148

149149
var invalidRequest = {
150+
// Currently, you need to look up the correct format for this object in the API-docs:
151+
// https://api.playfab.com/Documentation/Client/method/LoginWithEmailAddress
150152
TitleId: PlayFab.settings.titleId,
151153
Email: PlayFabApiTests.titleData.userEmail,
152154
Password: PlayFabApiTests.titleData.userPassword + "INVALID"
@@ -270,10 +272,10 @@ var PlayFabApiTests = {
270272
var getDataCallback2 = function (result, error) {
271273
PlayFabApiTests.VerifyNullError(result, error, assert, "Testing GetUserData result");
272274
assert.ok(result.data.Data != null, "Testing GetUserData Data");
273-
assert.ok(result.data.Data.hasOwnProperty(PlayFabApiTests.testConstants.TEST_KEY), "Testing GetUserData DataKey");
275+
assert.ok(result.data.Data.hasOwnProperty(PlayFabApiTests.testConstants.TEST_DATA_KEY), "Testing GetUserData DataKey");
274276

275-
var actualtestNumber = parseInt(result.data.Data[PlayFabApiTests.testConstants.TEST_KEY].Value, 10);
276-
var timeUpdated = new Date(result.data.Data[PlayFabApiTests.testConstants.TEST_KEY].LastUpdated);
277+
var actualtestNumber = parseInt(result.data.Data[PlayFabApiTests.testConstants.TEST_DATA_KEY].Value, 10);
278+
var timeUpdated = new Date(result.data.Data[PlayFabApiTests.testConstants.TEST_DATA_KEY].LastUpdated);
277279

278280
var now = Date.now();
279281
var testMin = now - (1000 * 60 * 5);
@@ -292,16 +294,16 @@ var PlayFabApiTests = {
292294
PlayFabApiTests.VerifyNullError(result, error, assert, "Testing GetUserData result");
293295
assert.ok(result.data.Data != null, "Testing GetUserData Data");
294296

295-
var hasData = result.data.Data.hasOwnProperty(PlayFabApiTests.testConstants.TEST_KEY);
296-
PlayFabApiTests.testData.testNumber = !hasData ? 1 : parseInt(result.data.Data[PlayFabApiTests.testConstants.TEST_KEY].Value, 10);
297+
var hasData = result.data.Data.hasOwnProperty(PlayFabApiTests.testConstants.TEST_DATA_KEY);
298+
PlayFabApiTests.testData.testNumber = !hasData ? 1 : parseInt(result.data.Data[PlayFabApiTests.testConstants.TEST_DATA_KEY].Value, 10);
297299
PlayFabApiTests.testData.testNumber = (PlayFabApiTests.testData.testNumber + 1) % 100; // This test is about the expected value changing - but not testing more complicated issues like bounds
298300

299301
var updateDataRequest = {
300302
// Currently, you need to look up the correct format for this object in the API-docs:
301303
// https://api.playfab.com/Documentation/Client/method/UpdateUserData
302304
Data: {} // Can't pre-define properties because the param-name is in a string
303305
};
304-
updateDataRequest.Data[PlayFabApiTests.testConstants.TEST_KEY] = PlayFabApiTests.testData.testNumber;
306+
updateDataRequest.Data[PlayFabApiTests.testConstants.TEST_DATA_KEY] = PlayFabApiTests.testData.testNumber;
305307
PlayFabClientSDK.UpdateUserData(updateDataRequest, PlayFabApiTests.CallbackWrapper("updateDataCallback", updateDataCallback, assert));
306308
get1Done();
307309
};

PlayFabSDK/PlayFabAdminApi.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.28.160829",
22-
buildIdentifier: "jbuild_javascriptsdk_0",
21+
sdkVersion: "0.29.160912",
22+
buildIdentifier: "jbuild_javascriptsdk_1",
2323
productionServerUrl: ".playfabapi.com",
2424
logicServerUrl: null,
2525

@@ -538,6 +538,12 @@ PlayFab.AdminApi = {
538538
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Admin/AddPlayerTag", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback);
539539
},
540540

541+
GetAllActionGroups: function (request, callback) {
542+
if (PlayFab.settings.developerSecretKey == null) throw "Must have PlayFab.settings.developerSecretKey set to call this method";
543+
544+
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Admin/GetAllActionGroups", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback);
545+
},
546+
541547
GetAllSegments: function (request, callback) {
542548
if (PlayFab.settings.developerSecretKey == null) throw "Must have PlayFab.settings.developerSecretKey set to call this method";
543549

PlayFabSDK/PlayFabClientApi.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.28.160829",
22-
buildIdentifier: "jbuild_javascriptsdk_0",
21+
sdkVersion: "0.29.160912",
22+
buildIdentifier: "jbuild_javascriptsdk_1",
2323
productionServerUrl: ".playfabapi.com",
2424
logicServerUrl: null,
2525

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.28.160829",
22-
buildIdentifier: "jbuild_javascriptsdk_0",
21+
sdkVersion: "0.29.160912",
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.28.160829",
22-
buildIdentifier: "jbuild_javascriptsdk_0",
21+
sdkVersion: "0.29.160912",
22+
buildIdentifier: "jbuild_javascriptsdk_1",
2323
productionServerUrl: ".playfabapi.com",
2424
logicServerUrl: null,
2525

@@ -673,6 +673,12 @@ PlayFab.ServerApi = {
673673
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Server/AddPlayerTag", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback);
674674
},
675675

676+
GetAllActionGroups: function (request, callback) {
677+
if (PlayFab.settings.developerSecretKey == null) throw "Must have PlayFab.settings.developerSecretKey set to call this method";
678+
679+
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Server/GetAllActionGroups", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback);
680+
},
681+
676682
GetAllSegments: function (request, callback) {
677683
if (PlayFab.settings.developerSecretKey == null) throw "Must have PlayFab.settings.developerSecretKey set to call this method";
678684

0 commit comments

Comments
 (0)