Skip to content

Commit 51fe47f

Browse files
author
Playfab Jenkins Bot
committed
https://api.playfab.com/releaseNotes/#161003
2 parents e47cacb + e44ddca commit 51fe47f

File tree

6 files changed

+26
-28
lines changed

6 files changed

+26
-28
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

README.md

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,10 @@ This SDK can alternatively be obtained via our CDN. Additional details can be fo
2828
4. testTitleData.json file required for example test files.
2929
----
3030

31-
This sdk includes an optional example project that is used by PlayFab to verify sdk features are fully functional. The testTitleData.json file provides your secret title information to the unit-test project, so it can execute tests in your own PlayFab title.
32-
33-
The format is as follows:
34-
35-
{
36-
"titleId": "your Game Title ID, found in the settings/credentials section of your dashboard on the website",
37-
"developerSecretKey": "your PlayFab API Secret Key, found in the settings/credentials section of your dashboard on the website - NEVER SHARE THIS KEY WITH PLAYERS",
38-
"titleCanUpdateSettings": "false", // "true" or "false", based on your Allow Client to Post Player Statistics option, found in the settings/general section of your dashboard on the website
39-
"userName": "testUser", // Arbitrary username, you can change this to any valid username
40-
"userEmail": "your@email.com", // This email address will be bound to the username above
41-
"userPassword": "testPassword", // This must be the correct password for the testUser above (if that user does not exist yet, this will be the new password)
42-
"characterName": "testCharacter" // Arbitrary characterName, you can change this to any valid characterName
43-
}
31+
This sdk includes an optional example project that is used by PlayFab to verify sdk features are fully functional.
4432

33+
Please read about the testTitleData.json format, and purpose here:
34+
* https://github.com/PlayFab/SDKGenerator/blob/master/JenkinsConsoleUtility/testTitleData.md
4535
This file must be created and placed in the root of the sdk (beside PlayFabApiTest.html & PlayFabApiTest.js), and must be named "testTitleData.json"
4636

4737

0 commit comments

Comments
 (0)