Skip to content

Commit

Permalink
https://api.playfab.com/releaseNotes/#161003
Browse files Browse the repository at this point in the history
  • Loading branch information
Playfab Jenkins Bot committed Oct 3, 2016
2 parents 6bc58e7 + 76c041f commit e44ddca
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 15 deletions.
10 changes: 3 additions & 7 deletions PlayFabApiTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions PlayFabSDK/PlayFabAdminApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Expand Down
10 changes: 8 additions & 2 deletions PlayFabSDK/PlayFabClientApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Expand Down Expand Up @@ -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";

Expand Down
4 changes: 2 additions & 2 deletions PlayFabSDK/PlayFabMatchmakerApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Expand Down
10 changes: 8 additions & 2 deletions PlayFabSDK/PlayFabServerApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Expand Down Expand Up @@ -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";

Expand Down

0 comments on commit e44ddca

Please sign in to comment.