Skip to content

Commit dd59ab0

Browse files
https://api.playfab.com/releaseNotes/#180917
2 parents 47eb784 + 55dd976 commit dd59ab0

27 files changed

+633
-91
lines changed

PlayFabSdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "playfab-web-sdk",
3-
"version": "1.30.180906",
3+
"version": "1.31.180917",
44
"description": "Playfab SDK for JS client applications",
55
"license": "Apache-2.0",
66
"repository": {

PlayFabSdk/src/PlayFab/PlayFabAdminApi.js

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,28 @@ if(!PlayFab.settings) {
2121
if(!PlayFab._internalSettings) {
2222
PlayFab._internalSettings = {
2323
entityToken: null,
24-
sdkVersion: "1.30.180906",
24+
sdkVersion: "1.31.180917",
2525
requestGetParams: {
26-
sdk: "JavaScriptSDK-1.30.180906"
26+
sdk: "JavaScriptSDK-1.31.180917"
2727
},
2828
sessionTicket: null,
29+
verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
2930
productionServerUrl: ".playfabapi.com",
3031
errorTitleId: "Must be have PlayFab.settings.titleId set to call this method",
3132
errorLoggedIn: "Must be logged in to call this method",
3233
errorEntityToken: "You must successfully call GetEntityToken before calling this",
3334
errorSecretKey: "Must have PlayFab.settings.developerSecretKey set to call this method",
3435

3536
GetServerUrl: function () {
36-
return "https://" + PlayFab.settings.titleId + PlayFab._internalSettings.productionServerUrl;
37+
if (!(PlayFab._internalSettings.productionServerUrl.substring(0, 4) === "http")) {
38+
if (PlayFab._internalSettings.verticalName) {
39+
return "https://" + PlayFab._internalSettings.verticalName + PlayFab._internalSettings.productionServerUrl;
40+
} else {
41+
return "https://" + PlayFab.settings.titleId + PlayFab._internalSettings.productionServerUrl;
42+
}
43+
} else {
44+
return PlayFab._internalSettings.productionServerUrl;
45+
}
3746
},
3847

3948
InjectHeaders: function (xhr, headersObj) {
@@ -148,7 +157,7 @@ if(!PlayFab._internalSettings) {
148157
}
149158

150159
PlayFab.buildIdentifier = "jbuild_javascriptsdk__sdk-slave2016-3_1";
151-
PlayFab.sdkVersion = "1.30.180906";
160+
PlayFab.sdkVersion = "1.31.180917";
152161
PlayFab.GenerateErrorReport = function (error) {
153162
if (error == null)
154163
return "";
@@ -320,6 +329,11 @@ PlayFab.AdminApi = {
320329
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Admin/GetMatchmakerGameModes", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback, customData, extraHeaders);
321330
},
322331

332+
GetMatchmakingQueue: function (request, callback, customData, extraHeaders) {
333+
if (!PlayFab.settings.developerSecretKey) throw PlayFab._internalSettings.errorSecretKey;
334+
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Admin/GetMatchmakingQueue", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback, customData, extraHeaders);
335+
},
336+
323337
GetPlayedTitleList: function (request, callback, customData, extraHeaders) {
324338
if (!PlayFab.settings.developerSecretKey) throw PlayFab._internalSettings.errorSecretKey;
325339
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Admin/GetPlayedTitleList", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback, customData, extraHeaders);
@@ -475,6 +489,11 @@ PlayFab.AdminApi = {
475489
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Admin/IncrementPlayerStatisticVersion", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback, customData, extraHeaders);
476490
},
477491

492+
ListMatchmakingQueues: function (request, callback, customData, extraHeaders) {
493+
if (!PlayFab.settings.developerSecretKey) throw PlayFab._internalSettings.errorSecretKey;
494+
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Admin/ListMatchmakingQueues", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback, customData, extraHeaders);
495+
},
496+
478497
ListServerBuilds: function (request, callback, customData, extraHeaders) {
479498
if (!PlayFab.settings.developerSecretKey) throw PlayFab._internalSettings.errorSecretKey;
480499
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Admin/ListServerBuilds", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback, customData, extraHeaders);
@@ -500,6 +519,11 @@ PlayFab.AdminApi = {
500519
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Admin/RefundPurchase", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback, customData, extraHeaders);
501520
},
502521

522+
RemoveMatchmakingQueue: function (request, callback, customData, extraHeaders) {
523+
if (!PlayFab.settings.developerSecretKey) throw PlayFab._internalSettings.errorSecretKey;
524+
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Admin/RemoveMatchmakingQueue", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback, customData, extraHeaders);
525+
},
526+
503527
RemovePlayerTag: function (request, callback, customData, extraHeaders) {
504528
if (!PlayFab.settings.developerSecretKey) throw PlayFab._internalSettings.errorSecretKey;
505529
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Admin/RemovePlayerTag", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback, customData, extraHeaders);
@@ -570,6 +594,11 @@ PlayFab.AdminApi = {
570594
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Admin/SetCatalogItems", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback, customData, extraHeaders);
571595
},
572596

597+
SetMatchmakingQueue: function (request, callback, customData, extraHeaders) {
598+
if (!PlayFab.settings.developerSecretKey) throw PlayFab._internalSettings.errorSecretKey;
599+
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Admin/SetMatchmakingQueue", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback, customData, extraHeaders);
600+
},
601+
573602
SetPlayerSecret: function (request, callback, customData, extraHeaders) {
574603
if (!PlayFab.settings.developerSecretKey) throw PlayFab._internalSettings.errorSecretKey;
575604
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Admin/SetPlayerSecret", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback, customData, extraHeaders);

PlayFabSdk/src/PlayFab/PlayFabAuthenticationApi.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,28 @@ if(!PlayFab.settings) {
2121
if(!PlayFab._internalSettings) {
2222
PlayFab._internalSettings = {
2323
entityToken: null,
24-
sdkVersion: "1.30.180906",
24+
sdkVersion: "1.31.180917",
2525
requestGetParams: {
26-
sdk: "JavaScriptSDK-1.30.180906"
26+
sdk: "JavaScriptSDK-1.31.180917"
2727
},
2828
sessionTicket: null,
29+
verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
2930
productionServerUrl: ".playfabapi.com",
3031
errorTitleId: "Must be have PlayFab.settings.titleId set to call this method",
3132
errorLoggedIn: "Must be logged in to call this method",
3233
errorEntityToken: "You must successfully call GetEntityToken before calling this",
3334
errorSecretKey: "Must have PlayFab.settings.developerSecretKey set to call this method",
3435

3536
GetServerUrl: function () {
36-
return "https://" + PlayFab.settings.titleId + PlayFab._internalSettings.productionServerUrl;
37+
if (!(PlayFab._internalSettings.productionServerUrl.substring(0, 4) === "http")) {
38+
if (PlayFab._internalSettings.verticalName) {
39+
return "https://" + PlayFab._internalSettings.verticalName + PlayFab._internalSettings.productionServerUrl;
40+
} else {
41+
return "https://" + PlayFab.settings.titleId + PlayFab._internalSettings.productionServerUrl;
42+
}
43+
} else {
44+
return PlayFab._internalSettings.productionServerUrl;
45+
}
3746
},
3847

3948
InjectHeaders: function (xhr, headersObj) {
@@ -148,7 +157,7 @@ if(!PlayFab._internalSettings) {
148157
}
149158

150159
PlayFab.buildIdentifier = "jbuild_javascriptsdk__sdk-slave2016-3_1";
151-
PlayFab.sdkVersion = "1.30.180906";
160+
PlayFab.sdkVersion = "1.31.180917";
152161
PlayFab.GenerateErrorReport = function (error) {
153162
if (error == null)
154163
return "";

PlayFabSdk/src/PlayFab/PlayFabClientApi.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,28 @@ if(!PlayFab.settings) {
2121
if(!PlayFab._internalSettings) {
2222
PlayFab._internalSettings = {
2323
entityToken: null,
24-
sdkVersion: "1.30.180906",
24+
sdkVersion: "1.31.180917",
2525
requestGetParams: {
26-
sdk: "JavaScriptSDK-1.30.180906"
26+
sdk: "JavaScriptSDK-1.31.180917"
2727
},
2828
sessionTicket: null,
29+
verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
2930
productionServerUrl: ".playfabapi.com",
3031
errorTitleId: "Must be have PlayFab.settings.titleId set to call this method",
3132
errorLoggedIn: "Must be logged in to call this method",
3233
errorEntityToken: "You must successfully call GetEntityToken before calling this",
3334
errorSecretKey: "Must have PlayFab.settings.developerSecretKey set to call this method",
3435

3536
GetServerUrl: function () {
36-
return "https://" + PlayFab.settings.titleId + PlayFab._internalSettings.productionServerUrl;
37+
if (!(PlayFab._internalSettings.productionServerUrl.substring(0, 4) === "http")) {
38+
if (PlayFab._internalSettings.verticalName) {
39+
return "https://" + PlayFab._internalSettings.verticalName + PlayFab._internalSettings.productionServerUrl;
40+
} else {
41+
return "https://" + PlayFab.settings.titleId + PlayFab._internalSettings.productionServerUrl;
42+
}
43+
} else {
44+
return PlayFab._internalSettings.productionServerUrl;
45+
}
3746
},
3847

3948
InjectHeaders: function (xhr, headersObj) {
@@ -148,7 +157,7 @@ if(!PlayFab._internalSettings) {
148157
}
149158

150159
PlayFab.buildIdentifier = "jbuild_javascriptsdk__sdk-slave2016-3_1";
151-
PlayFab.sdkVersion = "1.30.180906";
160+
PlayFab.sdkVersion = "1.31.180917";
152161
PlayFab.GenerateErrorReport = function (error) {
153162
if (error == null)
154163
return "";

PlayFabSdk/src/PlayFab/PlayFabCloudScriptApi.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,28 @@ if(!PlayFab.settings) {
2121
if(!PlayFab._internalSettings) {
2222
PlayFab._internalSettings = {
2323
entityToken: null,
24-
sdkVersion: "1.30.180906",
24+
sdkVersion: "1.31.180917",
2525
requestGetParams: {
26-
sdk: "JavaScriptSDK-1.30.180906"
26+
sdk: "JavaScriptSDK-1.31.180917"
2727
},
2828
sessionTicket: null,
29+
verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
2930
productionServerUrl: ".playfabapi.com",
3031
errorTitleId: "Must be have PlayFab.settings.titleId set to call this method",
3132
errorLoggedIn: "Must be logged in to call this method",
3233
errorEntityToken: "You must successfully call GetEntityToken before calling this",
3334
errorSecretKey: "Must have PlayFab.settings.developerSecretKey set to call this method",
3435

3536
GetServerUrl: function () {
36-
return "https://" + PlayFab.settings.titleId + PlayFab._internalSettings.productionServerUrl;
37+
if (!(PlayFab._internalSettings.productionServerUrl.substring(0, 4) === "http")) {
38+
if (PlayFab._internalSettings.verticalName) {
39+
return "https://" + PlayFab._internalSettings.verticalName + PlayFab._internalSettings.productionServerUrl;
40+
} else {
41+
return "https://" + PlayFab.settings.titleId + PlayFab._internalSettings.productionServerUrl;
42+
}
43+
} else {
44+
return PlayFab._internalSettings.productionServerUrl;
45+
}
3746
},
3847

3948
InjectHeaders: function (xhr, headersObj) {
@@ -148,7 +157,7 @@ if(!PlayFab._internalSettings) {
148157
}
149158

150159
PlayFab.buildIdentifier = "jbuild_javascriptsdk__sdk-slave2016-3_1";
151-
PlayFab.sdkVersion = "1.30.180906";
160+
PlayFab.sdkVersion = "1.31.180917";
152161
PlayFab.GenerateErrorReport = function (error) {
153162
if (error == null)
154163
return "";

PlayFabSdk/src/PlayFab/PlayFabDataApi.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,28 @@ if(!PlayFab.settings) {
2121
if(!PlayFab._internalSettings) {
2222
PlayFab._internalSettings = {
2323
entityToken: null,
24-
sdkVersion: "1.30.180906",
24+
sdkVersion: "1.31.180917",
2525
requestGetParams: {
26-
sdk: "JavaScriptSDK-1.30.180906"
26+
sdk: "JavaScriptSDK-1.31.180917"
2727
},
2828
sessionTicket: null,
29+
verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
2930
productionServerUrl: ".playfabapi.com",
3031
errorTitleId: "Must be have PlayFab.settings.titleId set to call this method",
3132
errorLoggedIn: "Must be logged in to call this method",
3233
errorEntityToken: "You must successfully call GetEntityToken before calling this",
3334
errorSecretKey: "Must have PlayFab.settings.developerSecretKey set to call this method",
3435

3536
GetServerUrl: function () {
36-
return "https://" + PlayFab.settings.titleId + PlayFab._internalSettings.productionServerUrl;
37+
if (!(PlayFab._internalSettings.productionServerUrl.substring(0, 4) === "http")) {
38+
if (PlayFab._internalSettings.verticalName) {
39+
return "https://" + PlayFab._internalSettings.verticalName + PlayFab._internalSettings.productionServerUrl;
40+
} else {
41+
return "https://" + PlayFab.settings.titleId + PlayFab._internalSettings.productionServerUrl;
42+
}
43+
} else {
44+
return PlayFab._internalSettings.productionServerUrl;
45+
}
3746
},
3847

3948
InjectHeaders: function (xhr, headersObj) {
@@ -148,7 +157,7 @@ if(!PlayFab._internalSettings) {
148157
}
149158

150159
PlayFab.buildIdentifier = "jbuild_javascriptsdk__sdk-slave2016-3_1";
151-
PlayFab.sdkVersion = "1.30.180906";
160+
PlayFab.sdkVersion = "1.31.180917";
152161
PlayFab.GenerateErrorReport = function (error) {
153162
if (error == null)
154163
return "";

PlayFabSdk/src/PlayFab/PlayFabEventsApi.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,28 @@ if(!PlayFab.settings) {
2121
if(!PlayFab._internalSettings) {
2222
PlayFab._internalSettings = {
2323
entityToken: null,
24-
sdkVersion: "1.30.180906",
24+
sdkVersion: "1.31.180917",
2525
requestGetParams: {
26-
sdk: "JavaScriptSDK-1.30.180906"
26+
sdk: "JavaScriptSDK-1.31.180917"
2727
},
2828
sessionTicket: null,
29+
verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
2930
productionServerUrl: ".playfabapi.com",
3031
errorTitleId: "Must be have PlayFab.settings.titleId set to call this method",
3132
errorLoggedIn: "Must be logged in to call this method",
3233
errorEntityToken: "You must successfully call GetEntityToken before calling this",
3334
errorSecretKey: "Must have PlayFab.settings.developerSecretKey set to call this method",
3435

3536
GetServerUrl: function () {
36-
return "https://" + PlayFab.settings.titleId + PlayFab._internalSettings.productionServerUrl;
37+
if (!(PlayFab._internalSettings.productionServerUrl.substring(0, 4) === "http")) {
38+
if (PlayFab._internalSettings.verticalName) {
39+
return "https://" + PlayFab._internalSettings.verticalName + PlayFab._internalSettings.productionServerUrl;
40+
} else {
41+
return "https://" + PlayFab.settings.titleId + PlayFab._internalSettings.productionServerUrl;
42+
}
43+
} else {
44+
return PlayFab._internalSettings.productionServerUrl;
45+
}
3746
},
3847

3948
InjectHeaders: function (xhr, headersObj) {
@@ -148,7 +157,7 @@ if(!PlayFab._internalSettings) {
148157
}
149158

150159
PlayFab.buildIdentifier = "jbuild_javascriptsdk__sdk-slave2016-3_1";
151-
PlayFab.sdkVersion = "1.30.180906";
160+
PlayFab.sdkVersion = "1.31.180917";
152161
PlayFab.GenerateErrorReport = function (error) {
153162
if (error == null)
154163
return "";

PlayFabSdk/src/PlayFab/PlayFabGroupsApi.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,28 @@ if(!PlayFab.settings) {
2121
if(!PlayFab._internalSettings) {
2222
PlayFab._internalSettings = {
2323
entityToken: null,
24-
sdkVersion: "1.30.180906",
24+
sdkVersion: "1.31.180917",
2525
requestGetParams: {
26-
sdk: "JavaScriptSDK-1.30.180906"
26+
sdk: "JavaScriptSDK-1.31.180917"
2727
},
2828
sessionTicket: null,
29+
verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
2930
productionServerUrl: ".playfabapi.com",
3031
errorTitleId: "Must be have PlayFab.settings.titleId set to call this method",
3132
errorLoggedIn: "Must be logged in to call this method",
3233
errorEntityToken: "You must successfully call GetEntityToken before calling this",
3334
errorSecretKey: "Must have PlayFab.settings.developerSecretKey set to call this method",
3435

3536
GetServerUrl: function () {
36-
return "https://" + PlayFab.settings.titleId + PlayFab._internalSettings.productionServerUrl;
37+
if (!(PlayFab._internalSettings.productionServerUrl.substring(0, 4) === "http")) {
38+
if (PlayFab._internalSettings.verticalName) {
39+
return "https://" + PlayFab._internalSettings.verticalName + PlayFab._internalSettings.productionServerUrl;
40+
} else {
41+
return "https://" + PlayFab.settings.titleId + PlayFab._internalSettings.productionServerUrl;
42+
}
43+
} else {
44+
return PlayFab._internalSettings.productionServerUrl;
45+
}
3746
},
3847

3948
InjectHeaders: function (xhr, headersObj) {
@@ -148,7 +157,7 @@ if(!PlayFab._internalSettings) {
148157
}
149158

150159
PlayFab.buildIdentifier = "jbuild_javascriptsdk__sdk-slave2016-3_1";
151-
PlayFab.sdkVersion = "1.30.180906";
160+
PlayFab.sdkVersion = "1.31.180917";
152161
PlayFab.GenerateErrorReport = function (error) {
153162
if (error == null)
154163
return "";

PlayFabSdk/src/PlayFab/PlayFabLocalizationApi.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,28 @@ if(!PlayFab.settings) {
2121
if(!PlayFab._internalSettings) {
2222
PlayFab._internalSettings = {
2323
entityToken: null,
24-
sdkVersion: "1.30.180906",
24+
sdkVersion: "1.31.180917",
2525
requestGetParams: {
26-
sdk: "JavaScriptSDK-1.30.180906"
26+
sdk: "JavaScriptSDK-1.31.180917"
2727
},
2828
sessionTicket: null,
29+
verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
2930
productionServerUrl: ".playfabapi.com",
3031
errorTitleId: "Must be have PlayFab.settings.titleId set to call this method",
3132
errorLoggedIn: "Must be logged in to call this method",
3233
errorEntityToken: "You must successfully call GetEntityToken before calling this",
3334
errorSecretKey: "Must have PlayFab.settings.developerSecretKey set to call this method",
3435

3536
GetServerUrl: function () {
36-
return "https://" + PlayFab.settings.titleId + PlayFab._internalSettings.productionServerUrl;
37+
if (!(PlayFab._internalSettings.productionServerUrl.substring(0, 4) === "http")) {
38+
if (PlayFab._internalSettings.verticalName) {
39+
return "https://" + PlayFab._internalSettings.verticalName + PlayFab._internalSettings.productionServerUrl;
40+
} else {
41+
return "https://" + PlayFab.settings.titleId + PlayFab._internalSettings.productionServerUrl;
42+
}
43+
} else {
44+
return PlayFab._internalSettings.productionServerUrl;
45+
}
3746
},
3847

3948
InjectHeaders: function (xhr, headersObj) {
@@ -148,7 +157,7 @@ if(!PlayFab._internalSettings) {
148157
}
149158

150159
PlayFab.buildIdentifier = "jbuild_javascriptsdk__sdk-slave2016-3_1";
151-
PlayFab.sdkVersion = "1.30.180906";
160+
PlayFab.sdkVersion = "1.31.180917";
152161
PlayFab.GenerateErrorReport = function (error) {
153162
if (error == null)
154163
return "";

0 commit comments

Comments
 (0)