diff --git a/PlayFabSdk/package.json b/PlayFabSdk/package.json
index 046175d2..3fc28fc6 100644
--- a/PlayFabSdk/package.json
+++ b/PlayFabSdk/package.json
@@ -1,10 +1,10 @@
{
- "name": "playfab-web-sdk",
+ "name": "@nagyv/playfab-web-sdk",
"version": "1.65.200518",
"description": "Playfab SDK for JS client applications",
"license": "Apache-2.0",
"repository": {
"type": "git",
- "url": "https://github.com/playfab/JavaScriptSDK"
+ "url": "https://github.com/nagyv/PlayFab-JavaScript-SDK"
}
}
diff --git a/PlayFabSdk/src/PlayFab/PlayFabAdminApi.js b/PlayFabSdk/src/PlayFab/PlayFabAdminApi.js
deleted file mode 100644
index cf9e4a78..00000000
--- a/PlayFabSdk/src/PlayFab/PlayFabAdminApi.js
+++ /dev/null
@@ -1,698 +0,0 @@
-///
-
-var PlayFab = typeof PlayFab != "undefined" ? PlayFab : {};
-
-if(!PlayFab.settings) {
- PlayFab.settings = {
- titleId: null, // You must set this value for PlayFabSdk to work properly (Found in the Game Manager for your title, at the PlayFab Website)
- developerSecretKey: null, // For security reasons you must never expose this value to the client or players - You must set this value for Server-APIs to work properly (Found in the Game Manager for your title, at the PlayFab Website)
- advertisingIdType: null,
- advertisingIdValue: null,
- GlobalHeaderInjection: null,
-
- // disableAdvertising is provided for completeness, but changing it is not suggested
- // Disabling this may prevent your advertising-related PlayFab marketplace partners from working correctly
- disableAdvertising: false,
- AD_TYPE_IDFA: "Idfa",
- AD_TYPE_ANDROID_ID: "Adid"
- }
-}
-
-if(!PlayFab._internalSettings) {
- PlayFab._internalSettings = {
- entityToken: null,
- sdkVersion: "1.65.200518",
- requestGetParams: {
- sdk: "JavaScriptSDK-1.65.200518"
- },
- sessionTicket: null,
- verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
- productionServerUrl: ".playfabapi.com",
- errorTitleId: "Must be have PlayFab.settings.titleId set to call this method",
- errorLoggedIn: "Must be logged in to call this method",
- errorEntityToken: "You must successfully call GetEntityToken before calling this",
- errorSecretKey: "Must have PlayFab.settings.developerSecretKey set to call this method",
-
- GetServerUrl: function () {
- if (!(PlayFab._internalSettings.productionServerUrl.substring(0, 4) === "http")) {
- if (PlayFab._internalSettings.verticalName) {
- return "https://" + PlayFab._internalSettings.verticalName + PlayFab._internalSettings.productionServerUrl;
- } else {
- return "https://" + PlayFab.settings.titleId + PlayFab._internalSettings.productionServerUrl;
- }
- } else {
- return PlayFab._internalSettings.productionServerUrl;
- }
- },
-
- InjectHeaders: function (xhr, headersObj) {
- if (!headersObj)
- return;
-
- for (var headerKey in headersObj)
- {
- try {
- xhr.setRequestHeader(gHeaderKey, headersObj[headerKey]);
- } catch (e) {
- console.log("Failed to append header: " + headerKey + " = " + headersObj[headerKey] + "Error: " + e);
- }
- }
- },
-
- ExecuteRequest: function (url, request, authkey, authValue, callback, customData, extraHeaders) {
- var resultPromise = new Promise(function (resolve, reject) {
- if (callback != null && typeof (callback) !== "function")
- throw "Callback must be null or a function";
-
- if (request == null)
- request = {};
-
- var startTime = new Date();
- var requestBody = JSON.stringify(request);
-
- var urlArr = [url];
- var getParams = PlayFab._internalSettings.requestGetParams;
- if (getParams != null) {
- var firstParam = true;
- for (var key in getParams) {
- if (firstParam) {
- urlArr.push("?");
- firstParam = false;
- } else {
- urlArr.push("&");
- }
- urlArr.push(key);
- urlArr.push("=");
- urlArr.push(getParams[key]);
- }
- }
-
- var completeUrl = urlArr.join("");
-
- var xhr = new XMLHttpRequest();
- // window.console.log("URL: " + completeUrl);
- xhr.open("POST", completeUrl, true);
-
- xhr.setRequestHeader("Content-Type", "application/json");
- xhr.setRequestHeader("X-PlayFabSDK", "JavaScriptSDK-" + PlayFab._internalSettings.sdkVersion);
- if (authkey != null)
- xhr.setRequestHeader(authkey, authValue);
- PlayFab._internalSettings.InjectHeaders(xhr, PlayFab.settings.GlobalHeaderInjection);
- PlayFab._internalSettings.InjectHeaders(xhr, extraHeaders);
-
- xhr.onloadend = function () {
- if (callback == null)
- return;
-
- var result = PlayFab._internalSettings.GetPlayFabResponse(request, xhr, startTime, customData);
- if (result.code === 200) {
- callback(result, null);
- } else {
- callback(null, result);
- }
- }
-
- xhr.onerror = function () {
- if (callback == null)
- return;
-
- var result = PlayFab._internalSettings.GetPlayFabResponse(request, xhr, startTime, customData);
- callback(null, result);
- }
-
- xhr.send(requestBody);
- xhr.onreadystatechange = function () {
- if (this.readyState === 4) {
- var xhrResult = PlayFab._internalSettings.GetPlayFabResponse(request, this, startTime, customData);
- if (this.status === 200) {
- resolve(xhrResult);
- } else {
- reject(xhrResult);
- }
- }
- };
- });
- // Return a Promise so that calls to various API methods can be handled asynchronously
- return resultPromise;
- },
-
- GetPlayFabResponse: function(request, xhr, startTime, customData) {
- var result = null;
- try {
- // window.console.log("parsing json result: " + xhr.responseText);
- result = JSON.parse(xhr.responseText);
- } catch (e) {
- result = {
- code: 503, // Service Unavailable
- status: "Service Unavailable",
- error: "Connection error",
- errorCode: 2, // PlayFabErrorCode.ConnectionError
- errorMessage: xhr.responseText
- };
- }
-
- result.CallBackTimeMS = new Date() - startTime;
- result.Request = request;
- result.CustomData = customData;
- return result;
- },
-
- authenticationContext: {
- PlayFabId: null,
- EntityId: null,
- EntityType: null,
- SessionTicket: null,
- EntityToken: null
- },
-
- UpdateAuthenticationContext: function (authenticationContext, result) {
- var authenticationContextUpdates = {};
- if(result.data.PlayFabId !== null) {
- PlayFab._internalSettings.authenticationContext.PlayFabId = result.data.PlayFabId;
- authenticationContextUpdates.PlayFabId = result.data.PlayFabId;
- }
- if(result.data.SessionTicket !== null) {
- PlayFab._internalSettings.authenticationContext.SessionTicket = result.data.SessionTicket;
- authenticationContextUpdates.SessionTicket = result.data.SessionTicket;
- }
- if (result.data.EntityToken !== null) {
- PlayFab._internalSettings.authenticationContext.EntityId = result.data.EntityToken.Entity.Id;
- authenticationContextUpdates.EntityId = result.data.EntityToken.Entity.Id;
- PlayFab._internalSettings.authenticationContext.EntityType = result.data.EntityToken.Entity.Type;
- authenticationContextUpdates.EntityType = result.data.EntityToken.Entity.Type;
- PlayFab._internalSettings.authenticationContext.EntityToken = result.data.EntityToken.EntityToken;
- authenticationContextUpdates.EntityToken = result.data.EntityToken.EntityToken;
- }
- // Update the authenticationContext with values from the result
- authenticationContext = Object.assign(authenticationContext, authenticationContextUpdates);
- return authenticationContext;
- },
-
- AuthInfoMap: {
- "X-EntityToken": {
- authAttr: "entityToken",
- authError: "errorEntityToken"
- },
- "X-Authorization": {
- authAttr: "sessionTicket",
- authError: "errorLoggedIn"
- },
- "X-SecretKey": {
- authAttr: "developerSecretKey",
- authError: "errorSecretKey"
- }
- },
-
- GetAuthInfo: function (request, authKey) {
- // Use the most-recently saved authKey, unless one was provided in the request via the AuthenticationContext
- var authError = PlayFab._internalSettings.AuthInfoMap[authKey].authError;
- var authAttr = PlayFab._internalSettings.AuthInfoMap[authKey].authAttr;
- var defaultAuthValue = null;
- if (authAttr === "entityToken")
- defaultAuthValue = PlayFab._internalSettings.entityToken;
- else if (authAttr === "sessionTicket")
- defaultAuthValue = PlayFab._internalSettings.sessionTicket;
- else if (authAttr === "developerSecretKey")
- defaultAuthValue = PlayFab.settings.developerSecretKey;
- var authValue = request.AuthenticationContext ? request.AuthenticationContext[authAttr] : defaultAuthValue;
- return {"authKey": authKey, "authValue": authValue, "authError": authError};
- },
-
- ExecuteRequestWrapper: function (apiURL, request, authKey, callback, customData, extraHeaders) {
- var authValue = null;
- if (authKey !== null){
- var authInfo = PlayFab._internalSettings.GetAuthInfo(request, authKey=authKey);
- var authKey = authInfo.authKey, authValue = authInfo.authValue, authError = authInfo.authError;
-
- if (!authValue) throw authError;
- }
- return PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + apiURL, request, authKey, authValue, callback, customData, extraHeaders);
- }
- }
-}
-
-PlayFab.buildIdentifier = "jbuild_javascriptsdk__sdk-genericslave-1_2";
-PlayFab.sdkVersion = "1.65.200518";
-PlayFab.GenerateErrorReport = function (error) {
- if (error == null)
- return "";
- var fullErrors = error.errorMessage;
- for (var paramName in error.errorDetails)
- for (var msgIdx in error.errorDetails[paramName])
- fullErrors += "\n" + paramName + ": " + error.errorDetails[paramName][msgIdx];
- return fullErrors;
-};
-
-PlayFab.AdminApi = {
- ForgetAllCredentials: function () {
- PlayFab._internalSettings.sessionTicket = null;
- PlayFab._internalSettings.entityToken = null;
- },
-
- AbortTaskInstance: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/AbortTaskInstance", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- AddLocalizedNews: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/AddLocalizedNews", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- AddNews: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/AddNews", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- AddPlayerTag: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/AddPlayerTag", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- AddServerBuild: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/AddServerBuild", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- AddUserVirtualCurrency: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/AddUserVirtualCurrency", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- AddVirtualCurrencyTypes: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/AddVirtualCurrencyTypes", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- BanUsers: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/BanUsers", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- CheckLimitedEditionItemAvailability: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/CheckLimitedEditionItemAvailability", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- CreateActionsOnPlayersInSegmentTask: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/CreateActionsOnPlayersInSegmentTask", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- CreateCloudScriptTask: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/CreateCloudScriptTask", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- CreateInsightsScheduledScalingTask: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/CreateInsightsScheduledScalingTask", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- CreateOpenIdConnection: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/CreateOpenIdConnection", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- CreatePlayerSharedSecret: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/CreatePlayerSharedSecret", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- CreatePlayerStatisticDefinition: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/CreatePlayerStatisticDefinition", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- DeleteContent: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/DeleteContent", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- DeleteMasterPlayerAccount: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/DeleteMasterPlayerAccount", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- DeleteOpenIdConnection: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/DeleteOpenIdConnection", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- DeletePlayer: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/DeletePlayer", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- DeletePlayerSharedSecret: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/DeletePlayerSharedSecret", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- DeleteStore: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/DeleteStore", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- DeleteTask: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/DeleteTask", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- DeleteTitle: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/DeleteTitle", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- ExportMasterPlayerData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/ExportMasterPlayerData", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetActionsOnPlayersInSegmentTaskInstance: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/GetActionsOnPlayersInSegmentTaskInstance", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetAllSegments: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/GetAllSegments", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetCatalogItems: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/GetCatalogItems", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetCloudScriptRevision: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/GetCloudScriptRevision", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetCloudScriptTaskInstance: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/GetCloudScriptTaskInstance", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetCloudScriptVersions: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/GetCloudScriptVersions", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetContentList: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/GetContentList", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetContentUploadUrl: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/GetContentUploadUrl", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetDataReport: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/GetDataReport", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetMatchmakerGameInfo: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/GetMatchmakerGameInfo", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetMatchmakerGameModes: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/GetMatchmakerGameModes", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetPlayedTitleList: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/GetPlayedTitleList", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetPlayerIdFromAuthToken: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/GetPlayerIdFromAuthToken", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetPlayerProfile: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/GetPlayerProfile", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetPlayerSegments: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/GetPlayerSegments", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetPlayerSharedSecrets: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/GetPlayerSharedSecrets", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetPlayersInSegment: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/GetPlayersInSegment", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetPlayerStatisticDefinitions: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/GetPlayerStatisticDefinitions", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetPlayerStatisticVersions: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/GetPlayerStatisticVersions", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetPlayerTags: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/GetPlayerTags", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetPolicy: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/GetPolicy", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetPublisherData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/GetPublisherData", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetRandomResultTables: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/GetRandomResultTables", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetServerBuildInfo: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/GetServerBuildInfo", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetServerBuildUploadUrl: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/GetServerBuildUploadUrl", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetStoreItems: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/GetStoreItems", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetTaskInstances: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/GetTaskInstances", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetTasks: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/GetTasks", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetTitleData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/GetTitleData", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetTitleInternalData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/GetTitleInternalData", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetUserAccountInfo: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/GetUserAccountInfo", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetUserBans: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/GetUserBans", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetUserData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/GetUserData", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetUserInternalData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/GetUserInternalData", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetUserInventory: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/GetUserInventory", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetUserPublisherData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/GetUserPublisherData", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetUserPublisherInternalData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/GetUserPublisherInternalData", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetUserPublisherReadOnlyData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/GetUserPublisherReadOnlyData", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetUserReadOnlyData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/GetUserReadOnlyData", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GrantItemsToUsers: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/GrantItemsToUsers", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- IncrementLimitedEditionItemAvailability: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/IncrementLimitedEditionItemAvailability", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- IncrementPlayerStatisticVersion: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/IncrementPlayerStatisticVersion", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- ListOpenIdConnection: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/ListOpenIdConnection", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- ListServerBuilds: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/ListServerBuilds", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- ListVirtualCurrencyTypes: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/ListVirtualCurrencyTypes", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- ModifyMatchmakerGameModes: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/ModifyMatchmakerGameModes", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- ModifyServerBuild: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/ModifyServerBuild", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- RefundPurchase: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/RefundPurchase", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- RemovePlayerTag: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/RemovePlayerTag", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- RemoveServerBuild: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/RemoveServerBuild", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- RemoveVirtualCurrencyTypes: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/RemoveVirtualCurrencyTypes", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- ResetCharacterStatistics: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/ResetCharacterStatistics", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- ResetPassword: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/ResetPassword", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- ResetUserStatistics: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/ResetUserStatistics", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- ResolvePurchaseDispute: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/ResolvePurchaseDispute", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- RevokeAllBansForUser: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/RevokeAllBansForUser", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- RevokeBans: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/RevokeBans", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- RevokeInventoryItem: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/RevokeInventoryItem", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- RevokeInventoryItems: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/RevokeInventoryItems", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- RunTask: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/RunTask", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- SendAccountRecoveryEmail: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/SendAccountRecoveryEmail", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- SetCatalogItems: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/SetCatalogItems", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- SetPlayerSecret: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/SetPlayerSecret", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- SetPublishedRevision: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/SetPublishedRevision", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- SetPublisherData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/SetPublisherData", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- SetStoreItems: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/SetStoreItems", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- SetTitleData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/SetTitleData", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- SetTitleInternalData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/SetTitleInternalData", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- SetupPushNotification: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/SetupPushNotification", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- SubtractUserVirtualCurrency: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/SubtractUserVirtualCurrency", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- UpdateBans: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/UpdateBans", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- UpdateCatalogItems: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/UpdateCatalogItems", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- UpdateCloudScript: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/UpdateCloudScript", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- UpdateOpenIdConnection: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/UpdateOpenIdConnection", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- UpdatePlayerSharedSecret: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/UpdatePlayerSharedSecret", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- UpdatePlayerStatisticDefinition: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/UpdatePlayerStatisticDefinition", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- UpdatePolicy: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/UpdatePolicy", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- UpdateRandomResultTables: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/UpdateRandomResultTables", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- UpdateStoreItems: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/UpdateStoreItems", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- UpdateTask: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/UpdateTask", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- UpdateUserData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/UpdateUserData", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- UpdateUserInternalData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/UpdateUserInternalData", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- UpdateUserPublisherData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/UpdateUserPublisherData", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- UpdateUserPublisherInternalData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/UpdateUserPublisherInternalData", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- UpdateUserPublisherReadOnlyData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/UpdateUserPublisherReadOnlyData", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- UpdateUserReadOnlyData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/UpdateUserReadOnlyData", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- UpdateUserTitleDisplayName: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Admin/UpdateUserTitleDisplayName", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-};
-
-var PlayFabAdminSDK = PlayFab.AdminApi;
-
diff --git a/PlayFabSdk/src/PlayFab/PlayFabAuthenticationApi.js b/PlayFabSdk/src/PlayFab/PlayFabAuthenticationApi.js
deleted file mode 100644
index 7724d78c..00000000
--- a/PlayFabSdk/src/PlayFab/PlayFabAuthenticationApi.js
+++ /dev/null
@@ -1,271 +0,0 @@
-///
-
-var PlayFab = typeof PlayFab != "undefined" ? PlayFab : {};
-
-if(!PlayFab.settings) {
- PlayFab.settings = {
- titleId: null, // You must set this value for PlayFabSdk to work properly (Found in the Game Manager for your title, at the PlayFab Website)
- developerSecretKey: null, // For security reasons you must never expose this value to the client or players - You must set this value for Server-APIs to work properly (Found in the Game Manager for your title, at the PlayFab Website)
- advertisingIdType: null,
- advertisingIdValue: null,
- GlobalHeaderInjection: null,
-
- // disableAdvertising is provided for completeness, but changing it is not suggested
- // Disabling this may prevent your advertising-related PlayFab marketplace partners from working correctly
- disableAdvertising: false,
- AD_TYPE_IDFA: "Idfa",
- AD_TYPE_ANDROID_ID: "Adid"
- }
-}
-
-if(!PlayFab._internalSettings) {
- PlayFab._internalSettings = {
- entityToken: null,
- sdkVersion: "1.65.200518",
- requestGetParams: {
- sdk: "JavaScriptSDK-1.65.200518"
- },
- sessionTicket: null,
- verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
- productionServerUrl: ".playfabapi.com",
- errorTitleId: "Must be have PlayFab.settings.titleId set to call this method",
- errorLoggedIn: "Must be logged in to call this method",
- errorEntityToken: "You must successfully call GetEntityToken before calling this",
- errorSecretKey: "Must have PlayFab.settings.developerSecretKey set to call this method",
-
- GetServerUrl: function () {
- if (!(PlayFab._internalSettings.productionServerUrl.substring(0, 4) === "http")) {
- if (PlayFab._internalSettings.verticalName) {
- return "https://" + PlayFab._internalSettings.verticalName + PlayFab._internalSettings.productionServerUrl;
- } else {
- return "https://" + PlayFab.settings.titleId + PlayFab._internalSettings.productionServerUrl;
- }
- } else {
- return PlayFab._internalSettings.productionServerUrl;
- }
- },
-
- InjectHeaders: function (xhr, headersObj) {
- if (!headersObj)
- return;
-
- for (var headerKey in headersObj)
- {
- try {
- xhr.setRequestHeader(gHeaderKey, headersObj[headerKey]);
- } catch (e) {
- console.log("Failed to append header: " + headerKey + " = " + headersObj[headerKey] + "Error: " + e);
- }
- }
- },
-
- ExecuteRequest: function (url, request, authkey, authValue, callback, customData, extraHeaders) {
- var resultPromise = new Promise(function (resolve, reject) {
- if (callback != null && typeof (callback) !== "function")
- throw "Callback must be null or a function";
-
- if (request == null)
- request = {};
-
- var startTime = new Date();
- var requestBody = JSON.stringify(request);
-
- var urlArr = [url];
- var getParams = PlayFab._internalSettings.requestGetParams;
- if (getParams != null) {
- var firstParam = true;
- for (var key in getParams) {
- if (firstParam) {
- urlArr.push("?");
- firstParam = false;
- } else {
- urlArr.push("&");
- }
- urlArr.push(key);
- urlArr.push("=");
- urlArr.push(getParams[key]);
- }
- }
-
- var completeUrl = urlArr.join("");
-
- var xhr = new XMLHttpRequest();
- // window.console.log("URL: " + completeUrl);
- xhr.open("POST", completeUrl, true);
-
- xhr.setRequestHeader("Content-Type", "application/json");
- xhr.setRequestHeader("X-PlayFabSDK", "JavaScriptSDK-" + PlayFab._internalSettings.sdkVersion);
- if (authkey != null)
- xhr.setRequestHeader(authkey, authValue);
- PlayFab._internalSettings.InjectHeaders(xhr, PlayFab.settings.GlobalHeaderInjection);
- PlayFab._internalSettings.InjectHeaders(xhr, extraHeaders);
-
- xhr.onloadend = function () {
- if (callback == null)
- return;
-
- var result = PlayFab._internalSettings.GetPlayFabResponse(request, xhr, startTime, customData);
- if (result.code === 200) {
- callback(result, null);
- } else {
- callback(null, result);
- }
- }
-
- xhr.onerror = function () {
- if (callback == null)
- return;
-
- var result = PlayFab._internalSettings.GetPlayFabResponse(request, xhr, startTime, customData);
- callback(null, result);
- }
-
- xhr.send(requestBody);
- xhr.onreadystatechange = function () {
- if (this.readyState === 4) {
- var xhrResult = PlayFab._internalSettings.GetPlayFabResponse(request, this, startTime, customData);
- if (this.status === 200) {
- resolve(xhrResult);
- } else {
- reject(xhrResult);
- }
- }
- };
- });
- // Return a Promise so that calls to various API methods can be handled asynchronously
- return resultPromise;
- },
-
- GetPlayFabResponse: function(request, xhr, startTime, customData) {
- var result = null;
- try {
- // window.console.log("parsing json result: " + xhr.responseText);
- result = JSON.parse(xhr.responseText);
- } catch (e) {
- result = {
- code: 503, // Service Unavailable
- status: "Service Unavailable",
- error: "Connection error",
- errorCode: 2, // PlayFabErrorCode.ConnectionError
- errorMessage: xhr.responseText
- };
- }
-
- result.CallBackTimeMS = new Date() - startTime;
- result.Request = request;
- result.CustomData = customData;
- return result;
- },
-
- authenticationContext: {
- PlayFabId: null,
- EntityId: null,
- EntityType: null,
- SessionTicket: null,
- EntityToken: null
- },
-
- UpdateAuthenticationContext: function (authenticationContext, result) {
- var authenticationContextUpdates = {};
- if(result.data.PlayFabId !== null) {
- PlayFab._internalSettings.authenticationContext.PlayFabId = result.data.PlayFabId;
- authenticationContextUpdates.PlayFabId = result.data.PlayFabId;
- }
- if(result.data.SessionTicket !== null) {
- PlayFab._internalSettings.authenticationContext.SessionTicket = result.data.SessionTicket;
- authenticationContextUpdates.SessionTicket = result.data.SessionTicket;
- }
- if (result.data.EntityToken !== null) {
- PlayFab._internalSettings.authenticationContext.EntityId = result.data.EntityToken.Entity.Id;
- authenticationContextUpdates.EntityId = result.data.EntityToken.Entity.Id;
- PlayFab._internalSettings.authenticationContext.EntityType = result.data.EntityToken.Entity.Type;
- authenticationContextUpdates.EntityType = result.data.EntityToken.Entity.Type;
- PlayFab._internalSettings.authenticationContext.EntityToken = result.data.EntityToken.EntityToken;
- authenticationContextUpdates.EntityToken = result.data.EntityToken.EntityToken;
- }
- // Update the authenticationContext with values from the result
- authenticationContext = Object.assign(authenticationContext, authenticationContextUpdates);
- return authenticationContext;
- },
-
- AuthInfoMap: {
- "X-EntityToken": {
- authAttr: "entityToken",
- authError: "errorEntityToken"
- },
- "X-Authorization": {
- authAttr: "sessionTicket",
- authError: "errorLoggedIn"
- },
- "X-SecretKey": {
- authAttr: "developerSecretKey",
- authError: "errorSecretKey"
- }
- },
-
- GetAuthInfo: function (request, authKey) {
- // Use the most-recently saved authKey, unless one was provided in the request via the AuthenticationContext
- var authError = PlayFab._internalSettings.AuthInfoMap[authKey].authError;
- var authAttr = PlayFab._internalSettings.AuthInfoMap[authKey].authAttr;
- var defaultAuthValue = null;
- if (authAttr === "entityToken")
- defaultAuthValue = PlayFab._internalSettings.entityToken;
- else if (authAttr === "sessionTicket")
- defaultAuthValue = PlayFab._internalSettings.sessionTicket;
- else if (authAttr === "developerSecretKey")
- defaultAuthValue = PlayFab.settings.developerSecretKey;
- var authValue = request.AuthenticationContext ? request.AuthenticationContext[authAttr] : defaultAuthValue;
- return {"authKey": authKey, "authValue": authValue, "authError": authError};
- },
-
- ExecuteRequestWrapper: function (apiURL, request, authKey, callback, customData, extraHeaders) {
- var authValue = null;
- if (authKey !== null){
- var authInfo = PlayFab._internalSettings.GetAuthInfo(request, authKey=authKey);
- var authKey = authInfo.authKey, authValue = authInfo.authValue, authError = authInfo.authError;
-
- if (!authValue) throw authError;
- }
- return PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + apiURL, request, authKey, authValue, callback, customData, extraHeaders);
- }
- }
-}
-
-PlayFab.buildIdentifier = "jbuild_javascriptsdk__sdk-genericslave-1_2";
-PlayFab.sdkVersion = "1.65.200518";
-PlayFab.GenerateErrorReport = function (error) {
- if (error == null)
- return "";
- var fullErrors = error.errorMessage;
- for (var paramName in error.errorDetails)
- for (var msgIdx in error.errorDetails[paramName])
- fullErrors += "\n" + paramName + ": " + error.errorDetails[paramName][msgIdx];
- return fullErrors;
-};
-
-PlayFab.AuthenticationApi = {
- ForgetAllCredentials: function () {
- PlayFab._internalSettings.sessionTicket = null;
- PlayFab._internalSettings.entityToken = null;
- },
-
- GetEntityToken: function (request, callback, customData, extraHeaders) {
- var authKey = null; var authValue = null;
- if (!authKey && PlayFab._internalSettings.sessionTicket) { var authInfo = PlayFab._internalSettings.GetAuthInfo(request, authKey="X-Authorization"); authKey = authInfo.authKey, authValue = authInfo.authValue; }
- if (!authKey && PlayFab.settings.developerSecretKey) { var authInfo = PlayFab._internalSettings.GetAuthInfo(request, authKey="X-SecretKey"); authKey = authInfo.authKey, authValue = authInfo.authValue; }
- var overloadCallback = function (result, error) {
- if (result != null && result.data.EntityToken != null)
- PlayFab._internalSettings.entityToken = result.data.EntityToken;
- if (callback != null && typeof (callback) === "function")
- callback(result, error);
- };
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Authentication/GetEntityToken", request, authKey, overloadCallback, customData, extraHeaders);
- },
-
- ValidateEntityToken: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Authentication/ValidateEntityToken", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-};
-
-var PlayFabAuthenticationSDK = PlayFab.AuthenticationApi;
-
diff --git a/PlayFabSdk/src/PlayFab/PlayFabClientApi.js b/PlayFabSdk/src/PlayFab/PlayFabClientApi.js
deleted file mode 100644
index 0d7ba542..00000000
--- a/PlayFabSdk/src/PlayFab/PlayFabClientApi.js
+++ /dev/null
@@ -1,1386 +0,0 @@
-///
-
-var PlayFab = typeof PlayFab != "undefined" ? PlayFab : {};
-
-if(!PlayFab.settings) {
- PlayFab.settings = {
- titleId: null, // You must set this value for PlayFabSdk to work properly (Found in the Game Manager for your title, at the PlayFab Website)
- developerSecretKey: null, // For security reasons you must never expose this value to the client or players - You must set this value for Server-APIs to work properly (Found in the Game Manager for your title, at the PlayFab Website)
- advertisingIdType: null,
- advertisingIdValue: null,
- GlobalHeaderInjection: null,
-
- // disableAdvertising is provided for completeness, but changing it is not suggested
- // Disabling this may prevent your advertising-related PlayFab marketplace partners from working correctly
- disableAdvertising: false,
- AD_TYPE_IDFA: "Idfa",
- AD_TYPE_ANDROID_ID: "Adid"
- }
-}
-
-if(!PlayFab._internalSettings) {
- PlayFab._internalSettings = {
- entityToken: null,
- sdkVersion: "1.65.200518",
- requestGetParams: {
- sdk: "JavaScriptSDK-1.65.200518"
- },
- sessionTicket: null,
- verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
- productionServerUrl: ".playfabapi.com",
- errorTitleId: "Must be have PlayFab.settings.titleId set to call this method",
- errorLoggedIn: "Must be logged in to call this method",
- errorEntityToken: "You must successfully call GetEntityToken before calling this",
- errorSecretKey: "Must have PlayFab.settings.developerSecretKey set to call this method",
-
- GetServerUrl: function () {
- if (!(PlayFab._internalSettings.productionServerUrl.substring(0, 4) === "http")) {
- if (PlayFab._internalSettings.verticalName) {
- return "https://" + PlayFab._internalSettings.verticalName + PlayFab._internalSettings.productionServerUrl;
- } else {
- return "https://" + PlayFab.settings.titleId + PlayFab._internalSettings.productionServerUrl;
- }
- } else {
- return PlayFab._internalSettings.productionServerUrl;
- }
- },
-
- InjectHeaders: function (xhr, headersObj) {
- if (!headersObj)
- return;
-
- for (var headerKey in headersObj)
- {
- try {
- xhr.setRequestHeader(gHeaderKey, headersObj[headerKey]);
- } catch (e) {
- console.log("Failed to append header: " + headerKey + " = " + headersObj[headerKey] + "Error: " + e);
- }
- }
- },
-
- ExecuteRequest: function (url, request, authkey, authValue, callback, customData, extraHeaders) {
- var resultPromise = new Promise(function (resolve, reject) {
- if (callback != null && typeof (callback) !== "function")
- throw "Callback must be null or a function";
-
- if (request == null)
- request = {};
-
- var startTime = new Date();
- var requestBody = JSON.stringify(request);
-
- var urlArr = [url];
- var getParams = PlayFab._internalSettings.requestGetParams;
- if (getParams != null) {
- var firstParam = true;
- for (var key in getParams) {
- if (firstParam) {
- urlArr.push("?");
- firstParam = false;
- } else {
- urlArr.push("&");
- }
- urlArr.push(key);
- urlArr.push("=");
- urlArr.push(getParams[key]);
- }
- }
-
- var completeUrl = urlArr.join("");
-
- var xhr = new XMLHttpRequest();
- // window.console.log("URL: " + completeUrl);
- xhr.open("POST", completeUrl, true);
-
- xhr.setRequestHeader("Content-Type", "application/json");
- xhr.setRequestHeader("X-PlayFabSDK", "JavaScriptSDK-" + PlayFab._internalSettings.sdkVersion);
- if (authkey != null)
- xhr.setRequestHeader(authkey, authValue);
- PlayFab._internalSettings.InjectHeaders(xhr, PlayFab.settings.GlobalHeaderInjection);
- PlayFab._internalSettings.InjectHeaders(xhr, extraHeaders);
-
- xhr.onloadend = function () {
- if (callback == null)
- return;
-
- var result = PlayFab._internalSettings.GetPlayFabResponse(request, xhr, startTime, customData);
- if (result.code === 200) {
- callback(result, null);
- } else {
- callback(null, result);
- }
- }
-
- xhr.onerror = function () {
- if (callback == null)
- return;
-
- var result = PlayFab._internalSettings.GetPlayFabResponse(request, xhr, startTime, customData);
- callback(null, result);
- }
-
- xhr.send(requestBody);
- xhr.onreadystatechange = function () {
- if (this.readyState === 4) {
- var xhrResult = PlayFab._internalSettings.GetPlayFabResponse(request, this, startTime, customData);
- if (this.status === 200) {
- resolve(xhrResult);
- } else {
- reject(xhrResult);
- }
- }
- };
- });
- // Return a Promise so that calls to various API methods can be handled asynchronously
- return resultPromise;
- },
-
- GetPlayFabResponse: function(request, xhr, startTime, customData) {
- var result = null;
- try {
- // window.console.log("parsing json result: " + xhr.responseText);
- result = JSON.parse(xhr.responseText);
- } catch (e) {
- result = {
- code: 503, // Service Unavailable
- status: "Service Unavailable",
- error: "Connection error",
- errorCode: 2, // PlayFabErrorCode.ConnectionError
- errorMessage: xhr.responseText
- };
- }
-
- result.CallBackTimeMS = new Date() - startTime;
- result.Request = request;
- result.CustomData = customData;
- return result;
- },
-
- authenticationContext: {
- PlayFabId: null,
- EntityId: null,
- EntityType: null,
- SessionTicket: null,
- EntityToken: null
- },
-
- UpdateAuthenticationContext: function (authenticationContext, result) {
- var authenticationContextUpdates = {};
- if(result.data.PlayFabId !== null) {
- PlayFab._internalSettings.authenticationContext.PlayFabId = result.data.PlayFabId;
- authenticationContextUpdates.PlayFabId = result.data.PlayFabId;
- }
- if(result.data.SessionTicket !== null) {
- PlayFab._internalSettings.authenticationContext.SessionTicket = result.data.SessionTicket;
- authenticationContextUpdates.SessionTicket = result.data.SessionTicket;
- }
- if (result.data.EntityToken !== null) {
- PlayFab._internalSettings.authenticationContext.EntityId = result.data.EntityToken.Entity.Id;
- authenticationContextUpdates.EntityId = result.data.EntityToken.Entity.Id;
- PlayFab._internalSettings.authenticationContext.EntityType = result.data.EntityToken.Entity.Type;
- authenticationContextUpdates.EntityType = result.data.EntityToken.Entity.Type;
- PlayFab._internalSettings.authenticationContext.EntityToken = result.data.EntityToken.EntityToken;
- authenticationContextUpdates.EntityToken = result.data.EntityToken.EntityToken;
- }
- // Update the authenticationContext with values from the result
- authenticationContext = Object.assign(authenticationContext, authenticationContextUpdates);
- return authenticationContext;
- },
-
- AuthInfoMap: {
- "X-EntityToken": {
- authAttr: "entityToken",
- authError: "errorEntityToken"
- },
- "X-Authorization": {
- authAttr: "sessionTicket",
- authError: "errorLoggedIn"
- },
- "X-SecretKey": {
- authAttr: "developerSecretKey",
- authError: "errorSecretKey"
- }
- },
-
- GetAuthInfo: function (request, authKey) {
- // Use the most-recently saved authKey, unless one was provided in the request via the AuthenticationContext
- var authError = PlayFab._internalSettings.AuthInfoMap[authKey].authError;
- var authAttr = PlayFab._internalSettings.AuthInfoMap[authKey].authAttr;
- var defaultAuthValue = null;
- if (authAttr === "entityToken")
- defaultAuthValue = PlayFab._internalSettings.entityToken;
- else if (authAttr === "sessionTicket")
- defaultAuthValue = PlayFab._internalSettings.sessionTicket;
- else if (authAttr === "developerSecretKey")
- defaultAuthValue = PlayFab.settings.developerSecretKey;
- var authValue = request.AuthenticationContext ? request.AuthenticationContext[authAttr] : defaultAuthValue;
- return {"authKey": authKey, "authValue": authValue, "authError": authError};
- },
-
- ExecuteRequestWrapper: function (apiURL, request, authKey, callback, customData, extraHeaders) {
- var authValue = null;
- if (authKey !== null){
- var authInfo = PlayFab._internalSettings.GetAuthInfo(request, authKey=authKey);
- var authKey = authInfo.authKey, authValue = authInfo.authValue, authError = authInfo.authError;
-
- if (!authValue) throw authError;
- }
- return PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + apiURL, request, authKey, authValue, callback, customData, extraHeaders);
- }
- }
-}
-
-PlayFab.buildIdentifier = "jbuild_javascriptsdk__sdk-genericslave-1_2";
-PlayFab.sdkVersion = "1.65.200518";
-PlayFab.GenerateErrorReport = function (error) {
- if (error == null)
- return "";
- var fullErrors = error.errorMessage;
- for (var paramName in error.errorDetails)
- for (var msgIdx in error.errorDetails[paramName])
- fullErrors += "\n" + paramName + ": " + error.errorDetails[paramName][msgIdx];
- return fullErrors;
-};
-
-PlayFab.ClientApi = {
-
- IsClientLoggedIn: function () {
- return PlayFab._internalSettings.sessionTicket != null && PlayFab._internalSettings.sessionTicket.length > 0;
- },
- ForgetAllCredentials: function () {
- PlayFab._internalSettings.sessionTicket = null;
- PlayFab._internalSettings.entityToken = null;
- },
-
- AcceptTrade: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/AcceptTrade", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- AddFriend: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/AddFriend", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- AddGenericID: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/AddGenericID", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- AddOrUpdateContactEmail: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/AddOrUpdateContactEmail", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- AddSharedGroupMembers: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/AddSharedGroupMembers", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- AddUsernamePassword: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/AddUsernamePassword", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- AddUserVirtualCurrency: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/AddUserVirtualCurrency", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- AndroidDevicePushNotificationRegistration: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/AndroidDevicePushNotificationRegistration", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- AttributeInstall: function (request, callback, customData, extraHeaders) {
- var overloadCallback = function (result, error) {
- // Modify advertisingIdType: Prevents us from sending the id multiple times, and allows automated tests to determine id was sent successfully
- PlayFab.settings.advertisingIdType += "_Successful";
-
- if (callback != null && typeof (callback) === "function")
- callback(result, error);
- };
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/AttributeInstall", request, "X-Authorization", overloadCallback, customData, extraHeaders);
- },
-
- CancelTrade: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/CancelTrade", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- ConfirmPurchase: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/ConfirmPurchase", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- ConsumeItem: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/ConsumeItem", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- ConsumePSNEntitlements: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/ConsumePSNEntitlements", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- ConsumeXboxEntitlements: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/ConsumeXboxEntitlements", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- CreateSharedGroup: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/CreateSharedGroup", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- ExecuteCloudScript: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/ExecuteCloudScript", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetAccountInfo: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetAccountInfo", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetAdPlacements: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetAdPlacements", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetAllUsersCharacters: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetAllUsersCharacters", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetCatalogItems: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetCatalogItems", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetCharacterData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetCharacterData", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetCharacterInventory: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetCharacterInventory", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetCharacterLeaderboard: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetCharacterLeaderboard", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetCharacterReadOnlyData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetCharacterReadOnlyData", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetCharacterStatistics: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetCharacterStatistics", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetContentDownloadUrl: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetContentDownloadUrl", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetCurrentGames: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetCurrentGames", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetFriendLeaderboard: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetFriendLeaderboard", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetFriendLeaderboardAroundPlayer: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetFriendLeaderboardAroundPlayer", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetFriendsList: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetFriendsList", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetGameServerRegions: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetGameServerRegions", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetLeaderboard: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetLeaderboard", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetLeaderboardAroundCharacter: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetLeaderboardAroundCharacter", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetLeaderboardAroundPlayer: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetLeaderboardAroundPlayer", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetLeaderboardForUserCharacters: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetLeaderboardForUserCharacters", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetPaymentToken: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetPaymentToken", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetPhotonAuthenticationToken: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetPhotonAuthenticationToken", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetPlayerCombinedInfo: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetPlayerCombinedInfo", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetPlayerProfile: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetPlayerProfile", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetPlayerSegments: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetPlayerSegments", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetPlayerStatistics: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetPlayerStatistics", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetPlayerStatisticVersions: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetPlayerStatisticVersions", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetPlayerTags: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetPlayerTags", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetPlayerTrades: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetPlayerTrades", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetPlayFabIDsFromFacebookIDs: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetPlayFabIDsFromFacebookIDs", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetPlayFabIDsFromFacebookInstantGamesIds: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetPlayFabIDsFromFacebookInstantGamesIds", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetPlayFabIDsFromGameCenterIDs: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetPlayFabIDsFromGameCenterIDs", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetPlayFabIDsFromGenericIDs: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetPlayFabIDsFromGenericIDs", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetPlayFabIDsFromGoogleIDs: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetPlayFabIDsFromGoogleIDs", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetPlayFabIDsFromKongregateIDs: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetPlayFabIDsFromKongregateIDs", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetPlayFabIDsFromNintendoSwitchDeviceIds: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetPlayFabIDsFromNintendoSwitchDeviceIds", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetPlayFabIDsFromPSNAccountIDs: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetPlayFabIDsFromPSNAccountIDs", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetPlayFabIDsFromSteamIDs: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetPlayFabIDsFromSteamIDs", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetPlayFabIDsFromTwitchIDs: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetPlayFabIDsFromTwitchIDs", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetPlayFabIDsFromXboxLiveIDs: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetPlayFabIDsFromXboxLiveIDs", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetPublisherData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetPublisherData", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetPurchase: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetPurchase", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetSharedGroupData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetSharedGroupData", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetStoreItems: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetStoreItems", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetTime: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetTime", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetTitleData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetTitleData", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetTitleNews: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetTitleNews", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetTitlePublicKey: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetTitlePublicKey", request, null, callback, customData, extraHeaders);
- },
-
- GetTradeStatus: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetTradeStatus", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetUserData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetUserData", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetUserInventory: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetUserInventory", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetUserPublisherData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetUserPublisherData", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetUserPublisherReadOnlyData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetUserPublisherReadOnlyData", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetUserReadOnlyData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetUserReadOnlyData", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- GetWindowsHelloChallenge: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetWindowsHelloChallenge", request, null, callback, customData, extraHeaders);
- },
-
- GrantCharacterToUser: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GrantCharacterToUser", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- LinkAndroidDeviceID: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/LinkAndroidDeviceID", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- LinkApple: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/LinkApple", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- LinkCustomID: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/LinkCustomID", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- LinkFacebookAccount: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/LinkFacebookAccount", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- LinkFacebookInstantGamesId: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/LinkFacebookInstantGamesId", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- LinkGameCenterAccount: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/LinkGameCenterAccount", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- LinkGoogleAccount: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/LinkGoogleAccount", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- LinkIOSDeviceID: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/LinkIOSDeviceID", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- LinkKongregate: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/LinkKongregate", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- LinkNintendoSwitchAccount: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/LinkNintendoSwitchAccount", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- LinkNintendoSwitchDeviceId: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/LinkNintendoSwitchDeviceId", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- LinkOpenIdConnect: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/LinkOpenIdConnect", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- LinkPSNAccount: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/LinkPSNAccount", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- LinkSteamAccount: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/LinkSteamAccount", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- LinkTwitch: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/LinkTwitch", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- LinkWindowsHello: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/LinkWindowsHello", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- LinkXboxAccount: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/LinkXboxAccount", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- LoginWithAndroidDeviceID: function (request, callback, customData, extraHeaders) {
- request.TitleId = PlayFab.settings.titleId ? PlayFab.settings.titleId : request.TitleId; if (!request.TitleId) throw PlayFab._internalSettings.errorTitleId;
- // PlayFab._internalSettings.authenticationContext can be modified by other asynchronous login attempts
- // Deep-copy the authenticationContext here to safely update it
- var authenticationContext = JSON.parse(JSON.stringify(PlayFab._internalSettings.authenticationContext));
- var overloadCallback = function (result, error) {
- if (result != null) {
- if(result.data.SessionTicket != null) {
- PlayFab._internalSettings.sessionTicket = result.data.SessionTicket;
- }
- if (result.data.EntityToken != null) {
- PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken;
- }
- // Apply the updates for the AuthenticationContext returned to the client
- authenticationContext = PlayFab._internalSettings.UpdateAuthenticationContext(authenticationContext, result);
- PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution);
- }
- if (callback != null && typeof (callback) === "function")
- callback(result, error);
- };
- PlayFab._internalSettings.ExecuteRequestWrapper("/Client/LoginWithAndroidDeviceID", request, null, overloadCallback, customData, extraHeaders);
- // Return a Promise so that multiple asynchronous calls to this method can be handled simultaneously with Promise.all()
- return new Promise(function(resolve){resolve(authenticationContext);});
- },
-
- LoginWithApple: function (request, callback, customData, extraHeaders) {
- request.TitleId = PlayFab.settings.titleId ? PlayFab.settings.titleId : request.TitleId; if (!request.TitleId) throw PlayFab._internalSettings.errorTitleId;
- // PlayFab._internalSettings.authenticationContext can be modified by other asynchronous login attempts
- // Deep-copy the authenticationContext here to safely update it
- var authenticationContext = JSON.parse(JSON.stringify(PlayFab._internalSettings.authenticationContext));
- var overloadCallback = function (result, error) {
- if (result != null) {
- if(result.data.SessionTicket != null) {
- PlayFab._internalSettings.sessionTicket = result.data.SessionTicket;
- }
- if (result.data.EntityToken != null) {
- PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken;
- }
- // Apply the updates for the AuthenticationContext returned to the client
- authenticationContext = PlayFab._internalSettings.UpdateAuthenticationContext(authenticationContext, result);
- PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution);
- }
- if (callback != null && typeof (callback) === "function")
- callback(result, error);
- };
- PlayFab._internalSettings.ExecuteRequestWrapper("/Client/LoginWithApple", request, null, overloadCallback, customData, extraHeaders);
- // Return a Promise so that multiple asynchronous calls to this method can be handled simultaneously with Promise.all()
- return new Promise(function(resolve){resolve(authenticationContext);});
- },
-
- LoginWithCustomID: function (request, callback, customData, extraHeaders) {
- request.TitleId = PlayFab.settings.titleId ? PlayFab.settings.titleId : request.TitleId; if (!request.TitleId) throw PlayFab._internalSettings.errorTitleId;
- // PlayFab._internalSettings.authenticationContext can be modified by other asynchronous login attempts
- // Deep-copy the authenticationContext here to safely update it
- var authenticationContext = JSON.parse(JSON.stringify(PlayFab._internalSettings.authenticationContext));
- var overloadCallback = function (result, error) {
- if (result != null) {
- if(result.data.SessionTicket != null) {
- PlayFab._internalSettings.sessionTicket = result.data.SessionTicket;
- }
- if (result.data.EntityToken != null) {
- PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken;
- }
- // Apply the updates for the AuthenticationContext returned to the client
- authenticationContext = PlayFab._internalSettings.UpdateAuthenticationContext(authenticationContext, result);
- PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution);
- }
- if (callback != null && typeof (callback) === "function")
- callback(result, error);
- };
- PlayFab._internalSettings.ExecuteRequestWrapper("/Client/LoginWithCustomID", request, null, overloadCallback, customData, extraHeaders);
- // Return a Promise so that multiple asynchronous calls to this method can be handled simultaneously with Promise.all()
- return new Promise(function(resolve){resolve(authenticationContext);});
- },
-
- LoginWithEmailAddress: function (request, callback, customData, extraHeaders) {
- request.TitleId = PlayFab.settings.titleId ? PlayFab.settings.titleId : request.TitleId; if (!request.TitleId) throw PlayFab._internalSettings.errorTitleId;
- // PlayFab._internalSettings.authenticationContext can be modified by other asynchronous login attempts
- // Deep-copy the authenticationContext here to safely update it
- var authenticationContext = JSON.parse(JSON.stringify(PlayFab._internalSettings.authenticationContext));
- var overloadCallback = function (result, error) {
- if (result != null) {
- if(result.data.SessionTicket != null) {
- PlayFab._internalSettings.sessionTicket = result.data.SessionTicket;
- }
- if (result.data.EntityToken != null) {
- PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken;
- }
- // Apply the updates for the AuthenticationContext returned to the client
- authenticationContext = PlayFab._internalSettings.UpdateAuthenticationContext(authenticationContext, result);
- PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution);
- }
- if (callback != null && typeof (callback) === "function")
- callback(result, error);
- };
- PlayFab._internalSettings.ExecuteRequestWrapper("/Client/LoginWithEmailAddress", request, null, overloadCallback, customData, extraHeaders);
- // Return a Promise so that multiple asynchronous calls to this method can be handled simultaneously with Promise.all()
- return new Promise(function(resolve){resolve(authenticationContext);});
- },
-
- LoginWithFacebook: function (request, callback, customData, extraHeaders) {
- request.TitleId = PlayFab.settings.titleId ? PlayFab.settings.titleId : request.TitleId; if (!request.TitleId) throw PlayFab._internalSettings.errorTitleId;
- // PlayFab._internalSettings.authenticationContext can be modified by other asynchronous login attempts
- // Deep-copy the authenticationContext here to safely update it
- var authenticationContext = JSON.parse(JSON.stringify(PlayFab._internalSettings.authenticationContext));
- var overloadCallback = function (result, error) {
- if (result != null) {
- if(result.data.SessionTicket != null) {
- PlayFab._internalSettings.sessionTicket = result.data.SessionTicket;
- }
- if (result.data.EntityToken != null) {
- PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken;
- }
- // Apply the updates for the AuthenticationContext returned to the client
- authenticationContext = PlayFab._internalSettings.UpdateAuthenticationContext(authenticationContext, result);
- PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution);
- }
- if (callback != null && typeof (callback) === "function")
- callback(result, error);
- };
- PlayFab._internalSettings.ExecuteRequestWrapper("/Client/LoginWithFacebook", request, null, overloadCallback, customData, extraHeaders);
- // Return a Promise so that multiple asynchronous calls to this method can be handled simultaneously with Promise.all()
- return new Promise(function(resolve){resolve(authenticationContext);});
- },
-
- LoginWithFacebookInstantGamesId: function (request, callback, customData, extraHeaders) {
- request.TitleId = PlayFab.settings.titleId ? PlayFab.settings.titleId : request.TitleId; if (!request.TitleId) throw PlayFab._internalSettings.errorTitleId;
- // PlayFab._internalSettings.authenticationContext can be modified by other asynchronous login attempts
- // Deep-copy the authenticationContext here to safely update it
- var authenticationContext = JSON.parse(JSON.stringify(PlayFab._internalSettings.authenticationContext));
- var overloadCallback = function (result, error) {
- if (result != null) {
- if(result.data.SessionTicket != null) {
- PlayFab._internalSettings.sessionTicket = result.data.SessionTicket;
- }
- if (result.data.EntityToken != null) {
- PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken;
- }
- // Apply the updates for the AuthenticationContext returned to the client
- authenticationContext = PlayFab._internalSettings.UpdateAuthenticationContext(authenticationContext, result);
- PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution);
- }
- if (callback != null && typeof (callback) === "function")
- callback(result, error);
- };
- PlayFab._internalSettings.ExecuteRequestWrapper("/Client/LoginWithFacebookInstantGamesId", request, null, overloadCallback, customData, extraHeaders);
- // Return a Promise so that multiple asynchronous calls to this method can be handled simultaneously with Promise.all()
- return new Promise(function(resolve){resolve(authenticationContext);});
- },
-
- LoginWithGameCenter: function (request, callback, customData, extraHeaders) {
- request.TitleId = PlayFab.settings.titleId ? PlayFab.settings.titleId : request.TitleId; if (!request.TitleId) throw PlayFab._internalSettings.errorTitleId;
- // PlayFab._internalSettings.authenticationContext can be modified by other asynchronous login attempts
- // Deep-copy the authenticationContext here to safely update it
- var authenticationContext = JSON.parse(JSON.stringify(PlayFab._internalSettings.authenticationContext));
- var overloadCallback = function (result, error) {
- if (result != null) {
- if(result.data.SessionTicket != null) {
- PlayFab._internalSettings.sessionTicket = result.data.SessionTicket;
- }
- if (result.data.EntityToken != null) {
- PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken;
- }
- // Apply the updates for the AuthenticationContext returned to the client
- authenticationContext = PlayFab._internalSettings.UpdateAuthenticationContext(authenticationContext, result);
- PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution);
- }
- if (callback != null && typeof (callback) === "function")
- callback(result, error);
- };
- PlayFab._internalSettings.ExecuteRequestWrapper("/Client/LoginWithGameCenter", request, null, overloadCallback, customData, extraHeaders);
- // Return a Promise so that multiple asynchronous calls to this method can be handled simultaneously with Promise.all()
- return new Promise(function(resolve){resolve(authenticationContext);});
- },
-
- LoginWithGoogleAccount: function (request, callback, customData, extraHeaders) {
- request.TitleId = PlayFab.settings.titleId ? PlayFab.settings.titleId : request.TitleId; if (!request.TitleId) throw PlayFab._internalSettings.errorTitleId;
- // PlayFab._internalSettings.authenticationContext can be modified by other asynchronous login attempts
- // Deep-copy the authenticationContext here to safely update it
- var authenticationContext = JSON.parse(JSON.stringify(PlayFab._internalSettings.authenticationContext));
- var overloadCallback = function (result, error) {
- if (result != null) {
- if(result.data.SessionTicket != null) {
- PlayFab._internalSettings.sessionTicket = result.data.SessionTicket;
- }
- if (result.data.EntityToken != null) {
- PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken;
- }
- // Apply the updates for the AuthenticationContext returned to the client
- authenticationContext = PlayFab._internalSettings.UpdateAuthenticationContext(authenticationContext, result);
- PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution);
- }
- if (callback != null && typeof (callback) === "function")
- callback(result, error);
- };
- PlayFab._internalSettings.ExecuteRequestWrapper("/Client/LoginWithGoogleAccount", request, null, overloadCallback, customData, extraHeaders);
- // Return a Promise so that multiple asynchronous calls to this method can be handled simultaneously with Promise.all()
- return new Promise(function(resolve){resolve(authenticationContext);});
- },
-
- LoginWithIOSDeviceID: function (request, callback, customData, extraHeaders) {
- request.TitleId = PlayFab.settings.titleId ? PlayFab.settings.titleId : request.TitleId; if (!request.TitleId) throw PlayFab._internalSettings.errorTitleId;
- // PlayFab._internalSettings.authenticationContext can be modified by other asynchronous login attempts
- // Deep-copy the authenticationContext here to safely update it
- var authenticationContext = JSON.parse(JSON.stringify(PlayFab._internalSettings.authenticationContext));
- var overloadCallback = function (result, error) {
- if (result != null) {
- if(result.data.SessionTicket != null) {
- PlayFab._internalSettings.sessionTicket = result.data.SessionTicket;
- }
- if (result.data.EntityToken != null) {
- PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken;
- }
- // Apply the updates for the AuthenticationContext returned to the client
- authenticationContext = PlayFab._internalSettings.UpdateAuthenticationContext(authenticationContext, result);
- PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution);
- }
- if (callback != null && typeof (callback) === "function")
- callback(result, error);
- };
- PlayFab._internalSettings.ExecuteRequestWrapper("/Client/LoginWithIOSDeviceID", request, null, overloadCallback, customData, extraHeaders);
- // Return a Promise so that multiple asynchronous calls to this method can be handled simultaneously with Promise.all()
- return new Promise(function(resolve){resolve(authenticationContext);});
- },
-
- LoginWithKongregate: function (request, callback, customData, extraHeaders) {
- request.TitleId = PlayFab.settings.titleId ? PlayFab.settings.titleId : request.TitleId; if (!request.TitleId) throw PlayFab._internalSettings.errorTitleId;
- // PlayFab._internalSettings.authenticationContext can be modified by other asynchronous login attempts
- // Deep-copy the authenticationContext here to safely update it
- var authenticationContext = JSON.parse(JSON.stringify(PlayFab._internalSettings.authenticationContext));
- var overloadCallback = function (result, error) {
- if (result != null) {
- if(result.data.SessionTicket != null) {
- PlayFab._internalSettings.sessionTicket = result.data.SessionTicket;
- }
- if (result.data.EntityToken != null) {
- PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken;
- }
- // Apply the updates for the AuthenticationContext returned to the client
- authenticationContext = PlayFab._internalSettings.UpdateAuthenticationContext(authenticationContext, result);
- PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution);
- }
- if (callback != null && typeof (callback) === "function")
- callback(result, error);
- };
- PlayFab._internalSettings.ExecuteRequestWrapper("/Client/LoginWithKongregate", request, null, overloadCallback, customData, extraHeaders);
- // Return a Promise so that multiple asynchronous calls to this method can be handled simultaneously with Promise.all()
- return new Promise(function(resolve){resolve(authenticationContext);});
- },
-
- LoginWithNintendoSwitchAccount: function (request, callback, customData, extraHeaders) {
- request.TitleId = PlayFab.settings.titleId ? PlayFab.settings.titleId : request.TitleId; if (!request.TitleId) throw PlayFab._internalSettings.errorTitleId;
- // PlayFab._internalSettings.authenticationContext can be modified by other asynchronous login attempts
- // Deep-copy the authenticationContext here to safely update it
- var authenticationContext = JSON.parse(JSON.stringify(PlayFab._internalSettings.authenticationContext));
- var overloadCallback = function (result, error) {
- if (result != null) {
- if(result.data.SessionTicket != null) {
- PlayFab._internalSettings.sessionTicket = result.data.SessionTicket;
- }
- if (result.data.EntityToken != null) {
- PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken;
- }
- // Apply the updates for the AuthenticationContext returned to the client
- authenticationContext = PlayFab._internalSettings.UpdateAuthenticationContext(authenticationContext, result);
- PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution);
- }
- if (callback != null && typeof (callback) === "function")
- callback(result, error);
- };
- PlayFab._internalSettings.ExecuteRequestWrapper("/Client/LoginWithNintendoSwitchAccount", request, null, overloadCallback, customData, extraHeaders);
- // Return a Promise so that multiple asynchronous calls to this method can be handled simultaneously with Promise.all()
- return new Promise(function(resolve){resolve(authenticationContext);});
- },
-
- LoginWithNintendoSwitchDeviceId: function (request, callback, customData, extraHeaders) {
- request.TitleId = PlayFab.settings.titleId ? PlayFab.settings.titleId : request.TitleId; if (!request.TitleId) throw PlayFab._internalSettings.errorTitleId;
- // PlayFab._internalSettings.authenticationContext can be modified by other asynchronous login attempts
- // Deep-copy the authenticationContext here to safely update it
- var authenticationContext = JSON.parse(JSON.stringify(PlayFab._internalSettings.authenticationContext));
- var overloadCallback = function (result, error) {
- if (result != null) {
- if(result.data.SessionTicket != null) {
- PlayFab._internalSettings.sessionTicket = result.data.SessionTicket;
- }
- if (result.data.EntityToken != null) {
- PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken;
- }
- // Apply the updates for the AuthenticationContext returned to the client
- authenticationContext = PlayFab._internalSettings.UpdateAuthenticationContext(authenticationContext, result);
- PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution);
- }
- if (callback != null && typeof (callback) === "function")
- callback(result, error);
- };
- PlayFab._internalSettings.ExecuteRequestWrapper("/Client/LoginWithNintendoSwitchDeviceId", request, null, overloadCallback, customData, extraHeaders);
- // Return a Promise so that multiple asynchronous calls to this method can be handled simultaneously with Promise.all()
- return new Promise(function(resolve){resolve(authenticationContext);});
- },
-
- LoginWithOpenIdConnect: function (request, callback, customData, extraHeaders) {
- request.TitleId = PlayFab.settings.titleId ? PlayFab.settings.titleId : request.TitleId; if (!request.TitleId) throw PlayFab._internalSettings.errorTitleId;
- // PlayFab._internalSettings.authenticationContext can be modified by other asynchronous login attempts
- // Deep-copy the authenticationContext here to safely update it
- var authenticationContext = JSON.parse(JSON.stringify(PlayFab._internalSettings.authenticationContext));
- var overloadCallback = function (result, error) {
- if (result != null) {
- if(result.data.SessionTicket != null) {
- PlayFab._internalSettings.sessionTicket = result.data.SessionTicket;
- }
- if (result.data.EntityToken != null) {
- PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken;
- }
- // Apply the updates for the AuthenticationContext returned to the client
- authenticationContext = PlayFab._internalSettings.UpdateAuthenticationContext(authenticationContext, result);
- PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution);
- }
- if (callback != null && typeof (callback) === "function")
- callback(result, error);
- };
- PlayFab._internalSettings.ExecuteRequestWrapper("/Client/LoginWithOpenIdConnect", request, null, overloadCallback, customData, extraHeaders);
- // Return a Promise so that multiple asynchronous calls to this method can be handled simultaneously with Promise.all()
- return new Promise(function(resolve){resolve(authenticationContext);});
- },
-
- LoginWithPlayFab: function (request, callback, customData, extraHeaders) {
- request.TitleId = PlayFab.settings.titleId ? PlayFab.settings.titleId : request.TitleId; if (!request.TitleId) throw PlayFab._internalSettings.errorTitleId;
- // PlayFab._internalSettings.authenticationContext can be modified by other asynchronous login attempts
- // Deep-copy the authenticationContext here to safely update it
- var authenticationContext = JSON.parse(JSON.stringify(PlayFab._internalSettings.authenticationContext));
- var overloadCallback = function (result, error) {
- if (result != null) {
- if(result.data.SessionTicket != null) {
- PlayFab._internalSettings.sessionTicket = result.data.SessionTicket;
- }
- if (result.data.EntityToken != null) {
- PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken;
- }
- // Apply the updates for the AuthenticationContext returned to the client
- authenticationContext = PlayFab._internalSettings.UpdateAuthenticationContext(authenticationContext, result);
- PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution);
- }
- if (callback != null && typeof (callback) === "function")
- callback(result, error);
- };
- PlayFab._internalSettings.ExecuteRequestWrapper("/Client/LoginWithPlayFab", request, null, overloadCallback, customData, extraHeaders);
- // Return a Promise so that multiple asynchronous calls to this method can be handled simultaneously with Promise.all()
- return new Promise(function(resolve){resolve(authenticationContext);});
- },
-
- LoginWithPSN: function (request, callback, customData, extraHeaders) {
- request.TitleId = PlayFab.settings.titleId ? PlayFab.settings.titleId : request.TitleId; if (!request.TitleId) throw PlayFab._internalSettings.errorTitleId;
- // PlayFab._internalSettings.authenticationContext can be modified by other asynchronous login attempts
- // Deep-copy the authenticationContext here to safely update it
- var authenticationContext = JSON.parse(JSON.stringify(PlayFab._internalSettings.authenticationContext));
- var overloadCallback = function (result, error) {
- if (result != null) {
- if(result.data.SessionTicket != null) {
- PlayFab._internalSettings.sessionTicket = result.data.SessionTicket;
- }
- if (result.data.EntityToken != null) {
- PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken;
- }
- // Apply the updates for the AuthenticationContext returned to the client
- authenticationContext = PlayFab._internalSettings.UpdateAuthenticationContext(authenticationContext, result);
- PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution);
- }
- if (callback != null && typeof (callback) === "function")
- callback(result, error);
- };
- PlayFab._internalSettings.ExecuteRequestWrapper("/Client/LoginWithPSN", request, null, overloadCallback, customData, extraHeaders);
- // Return a Promise so that multiple asynchronous calls to this method can be handled simultaneously with Promise.all()
- return new Promise(function(resolve){resolve(authenticationContext);});
- },
-
- LoginWithSteam: function (request, callback, customData, extraHeaders) {
- request.TitleId = PlayFab.settings.titleId ? PlayFab.settings.titleId : request.TitleId; if (!request.TitleId) throw PlayFab._internalSettings.errorTitleId;
- // PlayFab._internalSettings.authenticationContext can be modified by other asynchronous login attempts
- // Deep-copy the authenticationContext here to safely update it
- var authenticationContext = JSON.parse(JSON.stringify(PlayFab._internalSettings.authenticationContext));
- var overloadCallback = function (result, error) {
- if (result != null) {
- if(result.data.SessionTicket != null) {
- PlayFab._internalSettings.sessionTicket = result.data.SessionTicket;
- }
- if (result.data.EntityToken != null) {
- PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken;
- }
- // Apply the updates for the AuthenticationContext returned to the client
- authenticationContext = PlayFab._internalSettings.UpdateAuthenticationContext(authenticationContext, result);
- PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution);
- }
- if (callback != null && typeof (callback) === "function")
- callback(result, error);
- };
- PlayFab._internalSettings.ExecuteRequestWrapper("/Client/LoginWithSteam", request, null, overloadCallback, customData, extraHeaders);
- // Return a Promise so that multiple asynchronous calls to this method can be handled simultaneously with Promise.all()
- return new Promise(function(resolve){resolve(authenticationContext);});
- },
-
- LoginWithTwitch: function (request, callback, customData, extraHeaders) {
- request.TitleId = PlayFab.settings.titleId ? PlayFab.settings.titleId : request.TitleId; if (!request.TitleId) throw PlayFab._internalSettings.errorTitleId;
- // PlayFab._internalSettings.authenticationContext can be modified by other asynchronous login attempts
- // Deep-copy the authenticationContext here to safely update it
- var authenticationContext = JSON.parse(JSON.stringify(PlayFab._internalSettings.authenticationContext));
- var overloadCallback = function (result, error) {
- if (result != null) {
- if(result.data.SessionTicket != null) {
- PlayFab._internalSettings.sessionTicket = result.data.SessionTicket;
- }
- if (result.data.EntityToken != null) {
- PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken;
- }
- // Apply the updates for the AuthenticationContext returned to the client
- authenticationContext = PlayFab._internalSettings.UpdateAuthenticationContext(authenticationContext, result);
- PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution);
- }
- if (callback != null && typeof (callback) === "function")
- callback(result, error);
- };
- PlayFab._internalSettings.ExecuteRequestWrapper("/Client/LoginWithTwitch", request, null, overloadCallback, customData, extraHeaders);
- // Return a Promise so that multiple asynchronous calls to this method can be handled simultaneously with Promise.all()
- return new Promise(function(resolve){resolve(authenticationContext);});
- },
-
- LoginWithWindowsHello: function (request, callback, customData, extraHeaders) {
- request.TitleId = PlayFab.settings.titleId ? PlayFab.settings.titleId : request.TitleId; if (!request.TitleId) throw PlayFab._internalSettings.errorTitleId;
- // PlayFab._internalSettings.authenticationContext can be modified by other asynchronous login attempts
- // Deep-copy the authenticationContext here to safely update it
- var authenticationContext = JSON.parse(JSON.stringify(PlayFab._internalSettings.authenticationContext));
- var overloadCallback = function (result, error) {
- if (result != null) {
- if(result.data.SessionTicket != null) {
- PlayFab._internalSettings.sessionTicket = result.data.SessionTicket;
- }
- if (result.data.EntityToken != null) {
- PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken;
- }
- // Apply the updates for the AuthenticationContext returned to the client
- authenticationContext = PlayFab._internalSettings.UpdateAuthenticationContext(authenticationContext, result);
- PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution);
- }
- if (callback != null && typeof (callback) === "function")
- callback(result, error);
- };
- PlayFab._internalSettings.ExecuteRequestWrapper("/Client/LoginWithWindowsHello", request, null, overloadCallback, customData, extraHeaders);
- // Return a Promise so that multiple asynchronous calls to this method can be handled simultaneously with Promise.all()
- return new Promise(function(resolve){resolve(authenticationContext);});
- },
-
- LoginWithXbox: function (request, callback, customData, extraHeaders) {
- request.TitleId = PlayFab.settings.titleId ? PlayFab.settings.titleId : request.TitleId; if (!request.TitleId) throw PlayFab._internalSettings.errorTitleId;
- // PlayFab._internalSettings.authenticationContext can be modified by other asynchronous login attempts
- // Deep-copy the authenticationContext here to safely update it
- var authenticationContext = JSON.parse(JSON.stringify(PlayFab._internalSettings.authenticationContext));
- var overloadCallback = function (result, error) {
- if (result != null) {
- if(result.data.SessionTicket != null) {
- PlayFab._internalSettings.sessionTicket = result.data.SessionTicket;
- }
- if (result.data.EntityToken != null) {
- PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken;
- }
- // Apply the updates for the AuthenticationContext returned to the client
- authenticationContext = PlayFab._internalSettings.UpdateAuthenticationContext(authenticationContext, result);
- PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution);
- }
- if (callback != null && typeof (callback) === "function")
- callback(result, error);
- };
- PlayFab._internalSettings.ExecuteRequestWrapper("/Client/LoginWithXbox", request, null, overloadCallback, customData, extraHeaders);
- // Return a Promise so that multiple asynchronous calls to this method can be handled simultaneously with Promise.all()
- return new Promise(function(resolve){resolve(authenticationContext);});
- },
-
- Matchmake: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/Matchmake", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- OpenTrade: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/OpenTrade", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- PayForPurchase: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/PayForPurchase", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- PurchaseItem: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/PurchaseItem", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- RedeemCoupon: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/RedeemCoupon", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- RefreshPSNAuthToken: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/RefreshPSNAuthToken", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- RegisterForIOSPushNotification: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/RegisterForIOSPushNotification", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- RegisterPlayFabUser: function (request, callback, customData, extraHeaders) {
- request.TitleId = PlayFab.settings.titleId ? PlayFab.settings.titleId : request.TitleId; if (!request.TitleId) throw PlayFab._internalSettings.errorTitleId;
- // PlayFab._internalSettings.authenticationContext can be modified by other asynchronous login attempts
- // Deep-copy the authenticationContext here to safely update it
- var authenticationContext = JSON.parse(JSON.stringify(PlayFab._internalSettings.authenticationContext));
- var overloadCallback = function (result, error) {
- if (result != null && result.data.SessionTicket != null) {
- PlayFab._internalSettings.sessionTicket = result.data.SessionTicket;
- PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution);
- }
- if (callback != null && typeof (callback) === "function")
- callback(result, error);
- };
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/RegisterPlayFabUser", request, null, overloadCallback, customData, extraHeaders);
- },
-
- RegisterWithWindowsHello: function (request, callback, customData, extraHeaders) {
- request.TitleId = PlayFab.settings.titleId ? PlayFab.settings.titleId : request.TitleId; if (!request.TitleId) throw PlayFab._internalSettings.errorTitleId;
- // PlayFab._internalSettings.authenticationContext can be modified by other asynchronous login attempts
- // Deep-copy the authenticationContext here to safely update it
- var authenticationContext = JSON.parse(JSON.stringify(PlayFab._internalSettings.authenticationContext));
- var overloadCallback = function (result, error) {
- if (result != null) {
- if(result.data.SessionTicket != null) {
- PlayFab._internalSettings.sessionTicket = result.data.SessionTicket;
- }
- if (result.data.EntityToken != null) {
- PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken;
- }
- // Apply the updates for the AuthenticationContext returned to the client
- authenticationContext = PlayFab._internalSettings.UpdateAuthenticationContext(authenticationContext, result);
- PlayFab.ClientApi._MultiStepClientLogin(result.data.SettingsForUser.NeedsAttribution);
- }
- if (callback != null && typeof (callback) === "function")
- callback(result, error);
- };
- PlayFab._internalSettings.ExecuteRequestWrapper("/Client/RegisterWithWindowsHello", request, null, overloadCallback, customData, extraHeaders);
- // Return a Promise so that multiple asynchronous calls to this method can be handled simultaneously with Promise.all()
- return new Promise(function(resolve){resolve(authenticationContext);});
- },
-
- RemoveContactEmail: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/RemoveContactEmail", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- RemoveFriend: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/RemoveFriend", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- RemoveGenericID: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/RemoveGenericID", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- RemoveSharedGroupMembers: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/RemoveSharedGroupMembers", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- ReportAdActivity: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/ReportAdActivity", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- ReportDeviceInfo: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/ReportDeviceInfo", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- ReportPlayer: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/ReportPlayer", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- RestoreIOSPurchases: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/RestoreIOSPurchases", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- RewardAdActivity: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/RewardAdActivity", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- SendAccountRecoveryEmail: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/SendAccountRecoveryEmail", request, null, callback, customData, extraHeaders);
- },
-
- SetFriendTags: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/SetFriendTags", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- SetPlayerSecret: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/SetPlayerSecret", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- StartGame: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/StartGame", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- StartPurchase: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/StartPurchase", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- SubtractUserVirtualCurrency: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/SubtractUserVirtualCurrency", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- UnlinkAndroidDeviceID: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/UnlinkAndroidDeviceID", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- UnlinkApple: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/UnlinkApple", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- UnlinkCustomID: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/UnlinkCustomID", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- UnlinkFacebookAccount: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/UnlinkFacebookAccount", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- UnlinkFacebookInstantGamesId: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/UnlinkFacebookInstantGamesId", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- UnlinkGameCenterAccount: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/UnlinkGameCenterAccount", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- UnlinkGoogleAccount: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/UnlinkGoogleAccount", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- UnlinkIOSDeviceID: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/UnlinkIOSDeviceID", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- UnlinkKongregate: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/UnlinkKongregate", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- UnlinkNintendoSwitchAccount: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/UnlinkNintendoSwitchAccount", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- UnlinkNintendoSwitchDeviceId: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/UnlinkNintendoSwitchDeviceId", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- UnlinkOpenIdConnect: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/UnlinkOpenIdConnect", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- UnlinkPSNAccount: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/UnlinkPSNAccount", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- UnlinkSteamAccount: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/UnlinkSteamAccount", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- UnlinkTwitch: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/UnlinkTwitch", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- UnlinkWindowsHello: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/UnlinkWindowsHello", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- UnlinkXboxAccount: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/UnlinkXboxAccount", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- UnlockContainerInstance: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/UnlockContainerInstance", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- UnlockContainerItem: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/UnlockContainerItem", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- UpdateAvatarUrl: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/UpdateAvatarUrl", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- UpdateCharacterData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/UpdateCharacterData", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- UpdateCharacterStatistics: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/UpdateCharacterStatistics", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- UpdatePlayerStatistics: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/UpdatePlayerStatistics", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- UpdateSharedGroupData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/UpdateSharedGroupData", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- UpdateUserData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/UpdateUserData", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- UpdateUserPublisherData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/UpdateUserPublisherData", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- UpdateUserTitleDisplayName: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/UpdateUserTitleDisplayName", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- ValidateAmazonIAPReceipt: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/ValidateAmazonIAPReceipt", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- ValidateGooglePlayPurchase: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/ValidateGooglePlayPurchase", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- ValidateIOSReceipt: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/ValidateIOSReceipt", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- ValidateWindowsStoreReceipt: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/ValidateWindowsStoreReceipt", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- WriteCharacterEvent: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/WriteCharacterEvent", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- WritePlayerEvent: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/WritePlayerEvent", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- WriteTitleEvent: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/WriteTitleEvent", request, "X-Authorization", callback, customData, extraHeaders);
- },
-
- _MultiStepClientLogin: function (needsAttribution) {
- if (needsAttribution && !PlayFab.settings.disableAdvertising && PlayFab.settings.advertisingIdType !== null && PlayFab.settings.advertisingIdValue !== null) {
- var request = {};
- if (PlayFab.settings.advertisingIdType === PlayFab.settings.AD_TYPE_IDFA) {
- request.Idfa = PlayFab.settings.advertisingIdValue;
- } else if (PlayFab.settings.advertisingIdType === PlayFab.settings.AD_TYPE_ANDROID_ID) {
- request.Adid = PlayFab.settings.advertisingIdValue;
- } else {
- return;
- }
- PlayFab.ClientApi.AttributeInstall(request, null);
- }
- }
-};
-
-var PlayFabClientSDK = PlayFab.ClientApi;
-
-PlayFab.RegisterWithPhaser = function() {
- if ( typeof Phaser === "undefined" || typeof Phaser.Plugin === "undefined" )
- return;
-
- Phaser.Plugin.PlayFab = function (game, parent) {
- Phaser.Plugin.call(this, game, parent);
- };
- Phaser.Plugin.PlayFab.prototype = Object.create(Phaser.Plugin.prototype);
- Phaser.Plugin.PlayFab.prototype.constructor = Phaser.Plugin.PlayFab;
- Phaser.Plugin.PlayFab.prototype.PlayFab = PlayFab;
- Phaser.Plugin.PlayFab.prototype.settings = PlayFab.settings;
- Phaser.Plugin.PlayFab.prototype.ClientApi = PlayFab.ClientApi;
-};
-PlayFab.RegisterWithPhaser();
-
diff --git a/PlayFabSdk/src/PlayFab/PlayFabCloudScriptApi.js b/PlayFabSdk/src/PlayFab/PlayFabCloudScriptApi.js
deleted file mode 100644
index 07dd485f..00000000
--- a/PlayFabSdk/src/PlayFab/PlayFabCloudScriptApi.js
+++ /dev/null
@@ -1,302 +0,0 @@
-///
-
-var PlayFab = typeof PlayFab != "undefined" ? PlayFab : {};
-
-if(!PlayFab.settings) {
- PlayFab.settings = {
- titleId: null, // You must set this value for PlayFabSdk to work properly (Found in the Game Manager for your title, at the PlayFab Website)
- developerSecretKey: null, // For security reasons you must never expose this value to the client or players - You must set this value for Server-APIs to work properly (Found in the Game Manager for your title, at the PlayFab Website)
- advertisingIdType: null,
- advertisingIdValue: null,
- GlobalHeaderInjection: null,
-
- // disableAdvertising is provided for completeness, but changing it is not suggested
- // Disabling this may prevent your advertising-related PlayFab marketplace partners from working correctly
- disableAdvertising: false,
- AD_TYPE_IDFA: "Idfa",
- AD_TYPE_ANDROID_ID: "Adid"
- }
-}
-
-if(!PlayFab._internalSettings) {
- PlayFab._internalSettings = {
- entityToken: null,
- sdkVersion: "1.65.200518",
- requestGetParams: {
- sdk: "JavaScriptSDK-1.65.200518"
- },
- sessionTicket: null,
- verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
- productionServerUrl: ".playfabapi.com",
- errorTitleId: "Must be have PlayFab.settings.titleId set to call this method",
- errorLoggedIn: "Must be logged in to call this method",
- errorEntityToken: "You must successfully call GetEntityToken before calling this",
- errorSecretKey: "Must have PlayFab.settings.developerSecretKey set to call this method",
-
- GetServerUrl: function () {
- if (!(PlayFab._internalSettings.productionServerUrl.substring(0, 4) === "http")) {
- if (PlayFab._internalSettings.verticalName) {
- return "https://" + PlayFab._internalSettings.verticalName + PlayFab._internalSettings.productionServerUrl;
- } else {
- return "https://" + PlayFab.settings.titleId + PlayFab._internalSettings.productionServerUrl;
- }
- } else {
- return PlayFab._internalSettings.productionServerUrl;
- }
- },
-
- InjectHeaders: function (xhr, headersObj) {
- if (!headersObj)
- return;
-
- for (var headerKey in headersObj)
- {
- try {
- xhr.setRequestHeader(gHeaderKey, headersObj[headerKey]);
- } catch (e) {
- console.log("Failed to append header: " + headerKey + " = " + headersObj[headerKey] + "Error: " + e);
- }
- }
- },
-
- ExecuteRequest: function (url, request, authkey, authValue, callback, customData, extraHeaders) {
- var resultPromise = new Promise(function (resolve, reject) {
- if (callback != null && typeof (callback) !== "function")
- throw "Callback must be null or a function";
-
- if (request == null)
- request = {};
-
- var startTime = new Date();
- var requestBody = JSON.stringify(request);
-
- var urlArr = [url];
- var getParams = PlayFab._internalSettings.requestGetParams;
- if (getParams != null) {
- var firstParam = true;
- for (var key in getParams) {
- if (firstParam) {
- urlArr.push("?");
- firstParam = false;
- } else {
- urlArr.push("&");
- }
- urlArr.push(key);
- urlArr.push("=");
- urlArr.push(getParams[key]);
- }
- }
-
- var completeUrl = urlArr.join("");
-
- var xhr = new XMLHttpRequest();
- // window.console.log("URL: " + completeUrl);
- xhr.open("POST", completeUrl, true);
-
- xhr.setRequestHeader("Content-Type", "application/json");
- xhr.setRequestHeader("X-PlayFabSDK", "JavaScriptSDK-" + PlayFab._internalSettings.sdkVersion);
- if (authkey != null)
- xhr.setRequestHeader(authkey, authValue);
- PlayFab._internalSettings.InjectHeaders(xhr, PlayFab.settings.GlobalHeaderInjection);
- PlayFab._internalSettings.InjectHeaders(xhr, extraHeaders);
-
- xhr.onloadend = function () {
- if (callback == null)
- return;
-
- var result = PlayFab._internalSettings.GetPlayFabResponse(request, xhr, startTime, customData);
- if (result.code === 200) {
- callback(result, null);
- } else {
- callback(null, result);
- }
- }
-
- xhr.onerror = function () {
- if (callback == null)
- return;
-
- var result = PlayFab._internalSettings.GetPlayFabResponse(request, xhr, startTime, customData);
- callback(null, result);
- }
-
- xhr.send(requestBody);
- xhr.onreadystatechange = function () {
- if (this.readyState === 4) {
- var xhrResult = PlayFab._internalSettings.GetPlayFabResponse(request, this, startTime, customData);
- if (this.status === 200) {
- resolve(xhrResult);
- } else {
- reject(xhrResult);
- }
- }
- };
- });
- // Return a Promise so that calls to various API methods can be handled asynchronously
- return resultPromise;
- },
-
- GetPlayFabResponse: function(request, xhr, startTime, customData) {
- var result = null;
- try {
- // window.console.log("parsing json result: " + xhr.responseText);
- result = JSON.parse(xhr.responseText);
- } catch (e) {
- result = {
- code: 503, // Service Unavailable
- status: "Service Unavailable",
- error: "Connection error",
- errorCode: 2, // PlayFabErrorCode.ConnectionError
- errorMessage: xhr.responseText
- };
- }
-
- result.CallBackTimeMS = new Date() - startTime;
- result.Request = request;
- result.CustomData = customData;
- return result;
- },
-
- authenticationContext: {
- PlayFabId: null,
- EntityId: null,
- EntityType: null,
- SessionTicket: null,
- EntityToken: null
- },
-
- UpdateAuthenticationContext: function (authenticationContext, result) {
- var authenticationContextUpdates = {};
- if(result.data.PlayFabId !== null) {
- PlayFab._internalSettings.authenticationContext.PlayFabId = result.data.PlayFabId;
- authenticationContextUpdates.PlayFabId = result.data.PlayFabId;
- }
- if(result.data.SessionTicket !== null) {
- PlayFab._internalSettings.authenticationContext.SessionTicket = result.data.SessionTicket;
- authenticationContextUpdates.SessionTicket = result.data.SessionTicket;
- }
- if (result.data.EntityToken !== null) {
- PlayFab._internalSettings.authenticationContext.EntityId = result.data.EntityToken.Entity.Id;
- authenticationContextUpdates.EntityId = result.data.EntityToken.Entity.Id;
- PlayFab._internalSettings.authenticationContext.EntityType = result.data.EntityToken.Entity.Type;
- authenticationContextUpdates.EntityType = result.data.EntityToken.Entity.Type;
- PlayFab._internalSettings.authenticationContext.EntityToken = result.data.EntityToken.EntityToken;
- authenticationContextUpdates.EntityToken = result.data.EntityToken.EntityToken;
- }
- // Update the authenticationContext with values from the result
- authenticationContext = Object.assign(authenticationContext, authenticationContextUpdates);
- return authenticationContext;
- },
-
- AuthInfoMap: {
- "X-EntityToken": {
- authAttr: "entityToken",
- authError: "errorEntityToken"
- },
- "X-Authorization": {
- authAttr: "sessionTicket",
- authError: "errorLoggedIn"
- },
- "X-SecretKey": {
- authAttr: "developerSecretKey",
- authError: "errorSecretKey"
- }
- },
-
- GetAuthInfo: function (request, authKey) {
- // Use the most-recently saved authKey, unless one was provided in the request via the AuthenticationContext
- var authError = PlayFab._internalSettings.AuthInfoMap[authKey].authError;
- var authAttr = PlayFab._internalSettings.AuthInfoMap[authKey].authAttr;
- var defaultAuthValue = null;
- if (authAttr === "entityToken")
- defaultAuthValue = PlayFab._internalSettings.entityToken;
- else if (authAttr === "sessionTicket")
- defaultAuthValue = PlayFab._internalSettings.sessionTicket;
- else if (authAttr === "developerSecretKey")
- defaultAuthValue = PlayFab.settings.developerSecretKey;
- var authValue = request.AuthenticationContext ? request.AuthenticationContext[authAttr] : defaultAuthValue;
- return {"authKey": authKey, "authValue": authValue, "authError": authError};
- },
-
- ExecuteRequestWrapper: function (apiURL, request, authKey, callback, customData, extraHeaders) {
- var authValue = null;
- if (authKey !== null){
- var authInfo = PlayFab._internalSettings.GetAuthInfo(request, authKey=authKey);
- var authKey = authInfo.authKey, authValue = authInfo.authValue, authError = authInfo.authError;
-
- if (!authValue) throw authError;
- }
- return PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + apiURL, request, authKey, authValue, callback, customData, extraHeaders);
- }
- }
-}
-
-PlayFab.buildIdentifier = "jbuild_javascriptsdk__sdk-genericslave-1_2";
-PlayFab.sdkVersion = "1.65.200518";
-PlayFab.GenerateErrorReport = function (error) {
- if (error == null)
- return "";
- var fullErrors = error.errorMessage;
- for (var paramName in error.errorDetails)
- for (var msgIdx in error.errorDetails[paramName])
- fullErrors += "\n" + paramName + ": " + error.errorDetails[paramName][msgIdx];
- return fullErrors;
-};
-
-PlayFab.CloudScriptApi = {
- ForgetAllCredentials: function () {
- PlayFab._internalSettings.sessionTicket = null;
- PlayFab._internalSettings.entityToken = null;
- },
-
- ExecuteEntityCloudScript: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/CloudScript/ExecuteEntityCloudScript", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- ExecuteFunction: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/CloudScript/ExecuteFunction", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- ListFunctions: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/CloudScript/ListFunctions", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- ListHttpFunctions: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/CloudScript/ListHttpFunctions", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- ListQueuedFunctions: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/CloudScript/ListQueuedFunctions", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- PostFunctionResultForEntityTriggeredAction: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/CloudScript/PostFunctionResultForEntityTriggeredAction", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- PostFunctionResultForFunctionExecution: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/CloudScript/PostFunctionResultForFunctionExecution", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- PostFunctionResultForPlayerTriggeredAction: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/CloudScript/PostFunctionResultForPlayerTriggeredAction", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- PostFunctionResultForScheduledTask: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/CloudScript/PostFunctionResultForScheduledTask", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- RegisterHttpFunction: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/CloudScript/RegisterHttpFunction", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- RegisterQueuedFunction: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/CloudScript/RegisterQueuedFunction", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- UnregisterFunction: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/CloudScript/UnregisterFunction", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-};
-
-var PlayFabCloudScriptSDK = PlayFab.CloudScriptApi;
-
diff --git a/PlayFabSdk/src/PlayFab/PlayFabDataApi.js b/PlayFabSdk/src/PlayFab/PlayFabDataApi.js
deleted file mode 100644
index 5d4e4434..00000000
--- a/PlayFabSdk/src/PlayFab/PlayFabDataApi.js
+++ /dev/null
@@ -1,282 +0,0 @@
-///
-
-var PlayFab = typeof PlayFab != "undefined" ? PlayFab : {};
-
-if(!PlayFab.settings) {
- PlayFab.settings = {
- titleId: null, // You must set this value for PlayFabSdk to work properly (Found in the Game Manager for your title, at the PlayFab Website)
- developerSecretKey: null, // For security reasons you must never expose this value to the client or players - You must set this value for Server-APIs to work properly (Found in the Game Manager for your title, at the PlayFab Website)
- advertisingIdType: null,
- advertisingIdValue: null,
- GlobalHeaderInjection: null,
-
- // disableAdvertising is provided for completeness, but changing it is not suggested
- // Disabling this may prevent your advertising-related PlayFab marketplace partners from working correctly
- disableAdvertising: false,
- AD_TYPE_IDFA: "Idfa",
- AD_TYPE_ANDROID_ID: "Adid"
- }
-}
-
-if(!PlayFab._internalSettings) {
- PlayFab._internalSettings = {
- entityToken: null,
- sdkVersion: "1.65.200518",
- requestGetParams: {
- sdk: "JavaScriptSDK-1.65.200518"
- },
- sessionTicket: null,
- verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
- productionServerUrl: ".playfabapi.com",
- errorTitleId: "Must be have PlayFab.settings.titleId set to call this method",
- errorLoggedIn: "Must be logged in to call this method",
- errorEntityToken: "You must successfully call GetEntityToken before calling this",
- errorSecretKey: "Must have PlayFab.settings.developerSecretKey set to call this method",
-
- GetServerUrl: function () {
- if (!(PlayFab._internalSettings.productionServerUrl.substring(0, 4) === "http")) {
- if (PlayFab._internalSettings.verticalName) {
- return "https://" + PlayFab._internalSettings.verticalName + PlayFab._internalSettings.productionServerUrl;
- } else {
- return "https://" + PlayFab.settings.titleId + PlayFab._internalSettings.productionServerUrl;
- }
- } else {
- return PlayFab._internalSettings.productionServerUrl;
- }
- },
-
- InjectHeaders: function (xhr, headersObj) {
- if (!headersObj)
- return;
-
- for (var headerKey in headersObj)
- {
- try {
- xhr.setRequestHeader(gHeaderKey, headersObj[headerKey]);
- } catch (e) {
- console.log("Failed to append header: " + headerKey + " = " + headersObj[headerKey] + "Error: " + e);
- }
- }
- },
-
- ExecuteRequest: function (url, request, authkey, authValue, callback, customData, extraHeaders) {
- var resultPromise = new Promise(function (resolve, reject) {
- if (callback != null && typeof (callback) !== "function")
- throw "Callback must be null or a function";
-
- if (request == null)
- request = {};
-
- var startTime = new Date();
- var requestBody = JSON.stringify(request);
-
- var urlArr = [url];
- var getParams = PlayFab._internalSettings.requestGetParams;
- if (getParams != null) {
- var firstParam = true;
- for (var key in getParams) {
- if (firstParam) {
- urlArr.push("?");
- firstParam = false;
- } else {
- urlArr.push("&");
- }
- urlArr.push(key);
- urlArr.push("=");
- urlArr.push(getParams[key]);
- }
- }
-
- var completeUrl = urlArr.join("");
-
- var xhr = new XMLHttpRequest();
- // window.console.log("URL: " + completeUrl);
- xhr.open("POST", completeUrl, true);
-
- xhr.setRequestHeader("Content-Type", "application/json");
- xhr.setRequestHeader("X-PlayFabSDK", "JavaScriptSDK-" + PlayFab._internalSettings.sdkVersion);
- if (authkey != null)
- xhr.setRequestHeader(authkey, authValue);
- PlayFab._internalSettings.InjectHeaders(xhr, PlayFab.settings.GlobalHeaderInjection);
- PlayFab._internalSettings.InjectHeaders(xhr, extraHeaders);
-
- xhr.onloadend = function () {
- if (callback == null)
- return;
-
- var result = PlayFab._internalSettings.GetPlayFabResponse(request, xhr, startTime, customData);
- if (result.code === 200) {
- callback(result, null);
- } else {
- callback(null, result);
- }
- }
-
- xhr.onerror = function () {
- if (callback == null)
- return;
-
- var result = PlayFab._internalSettings.GetPlayFabResponse(request, xhr, startTime, customData);
- callback(null, result);
- }
-
- xhr.send(requestBody);
- xhr.onreadystatechange = function () {
- if (this.readyState === 4) {
- var xhrResult = PlayFab._internalSettings.GetPlayFabResponse(request, this, startTime, customData);
- if (this.status === 200) {
- resolve(xhrResult);
- } else {
- reject(xhrResult);
- }
- }
- };
- });
- // Return a Promise so that calls to various API methods can be handled asynchronously
- return resultPromise;
- },
-
- GetPlayFabResponse: function(request, xhr, startTime, customData) {
- var result = null;
- try {
- // window.console.log("parsing json result: " + xhr.responseText);
- result = JSON.parse(xhr.responseText);
- } catch (e) {
- result = {
- code: 503, // Service Unavailable
- status: "Service Unavailable",
- error: "Connection error",
- errorCode: 2, // PlayFabErrorCode.ConnectionError
- errorMessage: xhr.responseText
- };
- }
-
- result.CallBackTimeMS = new Date() - startTime;
- result.Request = request;
- result.CustomData = customData;
- return result;
- },
-
- authenticationContext: {
- PlayFabId: null,
- EntityId: null,
- EntityType: null,
- SessionTicket: null,
- EntityToken: null
- },
-
- UpdateAuthenticationContext: function (authenticationContext, result) {
- var authenticationContextUpdates = {};
- if(result.data.PlayFabId !== null) {
- PlayFab._internalSettings.authenticationContext.PlayFabId = result.data.PlayFabId;
- authenticationContextUpdates.PlayFabId = result.data.PlayFabId;
- }
- if(result.data.SessionTicket !== null) {
- PlayFab._internalSettings.authenticationContext.SessionTicket = result.data.SessionTicket;
- authenticationContextUpdates.SessionTicket = result.data.SessionTicket;
- }
- if (result.data.EntityToken !== null) {
- PlayFab._internalSettings.authenticationContext.EntityId = result.data.EntityToken.Entity.Id;
- authenticationContextUpdates.EntityId = result.data.EntityToken.Entity.Id;
- PlayFab._internalSettings.authenticationContext.EntityType = result.data.EntityToken.Entity.Type;
- authenticationContextUpdates.EntityType = result.data.EntityToken.Entity.Type;
- PlayFab._internalSettings.authenticationContext.EntityToken = result.data.EntityToken.EntityToken;
- authenticationContextUpdates.EntityToken = result.data.EntityToken.EntityToken;
- }
- // Update the authenticationContext with values from the result
- authenticationContext = Object.assign(authenticationContext, authenticationContextUpdates);
- return authenticationContext;
- },
-
- AuthInfoMap: {
- "X-EntityToken": {
- authAttr: "entityToken",
- authError: "errorEntityToken"
- },
- "X-Authorization": {
- authAttr: "sessionTicket",
- authError: "errorLoggedIn"
- },
- "X-SecretKey": {
- authAttr: "developerSecretKey",
- authError: "errorSecretKey"
- }
- },
-
- GetAuthInfo: function (request, authKey) {
- // Use the most-recently saved authKey, unless one was provided in the request via the AuthenticationContext
- var authError = PlayFab._internalSettings.AuthInfoMap[authKey].authError;
- var authAttr = PlayFab._internalSettings.AuthInfoMap[authKey].authAttr;
- var defaultAuthValue = null;
- if (authAttr === "entityToken")
- defaultAuthValue = PlayFab._internalSettings.entityToken;
- else if (authAttr === "sessionTicket")
- defaultAuthValue = PlayFab._internalSettings.sessionTicket;
- else if (authAttr === "developerSecretKey")
- defaultAuthValue = PlayFab.settings.developerSecretKey;
- var authValue = request.AuthenticationContext ? request.AuthenticationContext[authAttr] : defaultAuthValue;
- return {"authKey": authKey, "authValue": authValue, "authError": authError};
- },
-
- ExecuteRequestWrapper: function (apiURL, request, authKey, callback, customData, extraHeaders) {
- var authValue = null;
- if (authKey !== null){
- var authInfo = PlayFab._internalSettings.GetAuthInfo(request, authKey=authKey);
- var authKey = authInfo.authKey, authValue = authInfo.authValue, authError = authInfo.authError;
-
- if (!authValue) throw authError;
- }
- return PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + apiURL, request, authKey, authValue, callback, customData, extraHeaders);
- }
- }
-}
-
-PlayFab.buildIdentifier = "jbuild_javascriptsdk__sdk-genericslave-1_2";
-PlayFab.sdkVersion = "1.65.200518";
-PlayFab.GenerateErrorReport = function (error) {
- if (error == null)
- return "";
- var fullErrors = error.errorMessage;
- for (var paramName in error.errorDetails)
- for (var msgIdx in error.errorDetails[paramName])
- fullErrors += "\n" + paramName + ": " + error.errorDetails[paramName][msgIdx];
- return fullErrors;
-};
-
-PlayFab.DataApi = {
- ForgetAllCredentials: function () {
- PlayFab._internalSettings.sessionTicket = null;
- PlayFab._internalSettings.entityToken = null;
- },
-
- AbortFileUploads: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/File/AbortFileUploads", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- DeleteFiles: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/File/DeleteFiles", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- FinalizeFileUploads: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/File/FinalizeFileUploads", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- GetFiles: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/File/GetFiles", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- GetObjects: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Object/GetObjects", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- InitiateFileUploads: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/File/InitiateFileUploads", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- SetObjects: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Object/SetObjects", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-};
-
-var PlayFabDataSDK = PlayFab.DataApi;
-
diff --git a/PlayFabSdk/src/PlayFab/PlayFabEventsApi.js b/PlayFabSdk/src/PlayFab/PlayFabEventsApi.js
deleted file mode 100644
index efae9e81..00000000
--- a/PlayFabSdk/src/PlayFab/PlayFabEventsApi.js
+++ /dev/null
@@ -1,262 +0,0 @@
-///
-
-var PlayFab = typeof PlayFab != "undefined" ? PlayFab : {};
-
-if(!PlayFab.settings) {
- PlayFab.settings = {
- titleId: null, // You must set this value for PlayFabSdk to work properly (Found in the Game Manager for your title, at the PlayFab Website)
- developerSecretKey: null, // For security reasons you must never expose this value to the client or players - You must set this value for Server-APIs to work properly (Found in the Game Manager for your title, at the PlayFab Website)
- advertisingIdType: null,
- advertisingIdValue: null,
- GlobalHeaderInjection: null,
-
- // disableAdvertising is provided for completeness, but changing it is not suggested
- // Disabling this may prevent your advertising-related PlayFab marketplace partners from working correctly
- disableAdvertising: false,
- AD_TYPE_IDFA: "Idfa",
- AD_TYPE_ANDROID_ID: "Adid"
- }
-}
-
-if(!PlayFab._internalSettings) {
- PlayFab._internalSettings = {
- entityToken: null,
- sdkVersion: "1.65.200518",
- requestGetParams: {
- sdk: "JavaScriptSDK-1.65.200518"
- },
- sessionTicket: null,
- verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
- productionServerUrl: ".playfabapi.com",
- errorTitleId: "Must be have PlayFab.settings.titleId set to call this method",
- errorLoggedIn: "Must be logged in to call this method",
- errorEntityToken: "You must successfully call GetEntityToken before calling this",
- errorSecretKey: "Must have PlayFab.settings.developerSecretKey set to call this method",
-
- GetServerUrl: function () {
- if (!(PlayFab._internalSettings.productionServerUrl.substring(0, 4) === "http")) {
- if (PlayFab._internalSettings.verticalName) {
- return "https://" + PlayFab._internalSettings.verticalName + PlayFab._internalSettings.productionServerUrl;
- } else {
- return "https://" + PlayFab.settings.titleId + PlayFab._internalSettings.productionServerUrl;
- }
- } else {
- return PlayFab._internalSettings.productionServerUrl;
- }
- },
-
- InjectHeaders: function (xhr, headersObj) {
- if (!headersObj)
- return;
-
- for (var headerKey in headersObj)
- {
- try {
- xhr.setRequestHeader(gHeaderKey, headersObj[headerKey]);
- } catch (e) {
- console.log("Failed to append header: " + headerKey + " = " + headersObj[headerKey] + "Error: " + e);
- }
- }
- },
-
- ExecuteRequest: function (url, request, authkey, authValue, callback, customData, extraHeaders) {
- var resultPromise = new Promise(function (resolve, reject) {
- if (callback != null && typeof (callback) !== "function")
- throw "Callback must be null or a function";
-
- if (request == null)
- request = {};
-
- var startTime = new Date();
- var requestBody = JSON.stringify(request);
-
- var urlArr = [url];
- var getParams = PlayFab._internalSettings.requestGetParams;
- if (getParams != null) {
- var firstParam = true;
- for (var key in getParams) {
- if (firstParam) {
- urlArr.push("?");
- firstParam = false;
- } else {
- urlArr.push("&");
- }
- urlArr.push(key);
- urlArr.push("=");
- urlArr.push(getParams[key]);
- }
- }
-
- var completeUrl = urlArr.join("");
-
- var xhr = new XMLHttpRequest();
- // window.console.log("URL: " + completeUrl);
- xhr.open("POST", completeUrl, true);
-
- xhr.setRequestHeader("Content-Type", "application/json");
- xhr.setRequestHeader("X-PlayFabSDK", "JavaScriptSDK-" + PlayFab._internalSettings.sdkVersion);
- if (authkey != null)
- xhr.setRequestHeader(authkey, authValue);
- PlayFab._internalSettings.InjectHeaders(xhr, PlayFab.settings.GlobalHeaderInjection);
- PlayFab._internalSettings.InjectHeaders(xhr, extraHeaders);
-
- xhr.onloadend = function () {
- if (callback == null)
- return;
-
- var result = PlayFab._internalSettings.GetPlayFabResponse(request, xhr, startTime, customData);
- if (result.code === 200) {
- callback(result, null);
- } else {
- callback(null, result);
- }
- }
-
- xhr.onerror = function () {
- if (callback == null)
- return;
-
- var result = PlayFab._internalSettings.GetPlayFabResponse(request, xhr, startTime, customData);
- callback(null, result);
- }
-
- xhr.send(requestBody);
- xhr.onreadystatechange = function () {
- if (this.readyState === 4) {
- var xhrResult = PlayFab._internalSettings.GetPlayFabResponse(request, this, startTime, customData);
- if (this.status === 200) {
- resolve(xhrResult);
- } else {
- reject(xhrResult);
- }
- }
- };
- });
- // Return a Promise so that calls to various API methods can be handled asynchronously
- return resultPromise;
- },
-
- GetPlayFabResponse: function(request, xhr, startTime, customData) {
- var result = null;
- try {
- // window.console.log("parsing json result: " + xhr.responseText);
- result = JSON.parse(xhr.responseText);
- } catch (e) {
- result = {
- code: 503, // Service Unavailable
- status: "Service Unavailable",
- error: "Connection error",
- errorCode: 2, // PlayFabErrorCode.ConnectionError
- errorMessage: xhr.responseText
- };
- }
-
- result.CallBackTimeMS = new Date() - startTime;
- result.Request = request;
- result.CustomData = customData;
- return result;
- },
-
- authenticationContext: {
- PlayFabId: null,
- EntityId: null,
- EntityType: null,
- SessionTicket: null,
- EntityToken: null
- },
-
- UpdateAuthenticationContext: function (authenticationContext, result) {
- var authenticationContextUpdates = {};
- if(result.data.PlayFabId !== null) {
- PlayFab._internalSettings.authenticationContext.PlayFabId = result.data.PlayFabId;
- authenticationContextUpdates.PlayFabId = result.data.PlayFabId;
- }
- if(result.data.SessionTicket !== null) {
- PlayFab._internalSettings.authenticationContext.SessionTicket = result.data.SessionTicket;
- authenticationContextUpdates.SessionTicket = result.data.SessionTicket;
- }
- if (result.data.EntityToken !== null) {
- PlayFab._internalSettings.authenticationContext.EntityId = result.data.EntityToken.Entity.Id;
- authenticationContextUpdates.EntityId = result.data.EntityToken.Entity.Id;
- PlayFab._internalSettings.authenticationContext.EntityType = result.data.EntityToken.Entity.Type;
- authenticationContextUpdates.EntityType = result.data.EntityToken.Entity.Type;
- PlayFab._internalSettings.authenticationContext.EntityToken = result.data.EntityToken.EntityToken;
- authenticationContextUpdates.EntityToken = result.data.EntityToken.EntityToken;
- }
- // Update the authenticationContext with values from the result
- authenticationContext = Object.assign(authenticationContext, authenticationContextUpdates);
- return authenticationContext;
- },
-
- AuthInfoMap: {
- "X-EntityToken": {
- authAttr: "entityToken",
- authError: "errorEntityToken"
- },
- "X-Authorization": {
- authAttr: "sessionTicket",
- authError: "errorLoggedIn"
- },
- "X-SecretKey": {
- authAttr: "developerSecretKey",
- authError: "errorSecretKey"
- }
- },
-
- GetAuthInfo: function (request, authKey) {
- // Use the most-recently saved authKey, unless one was provided in the request via the AuthenticationContext
- var authError = PlayFab._internalSettings.AuthInfoMap[authKey].authError;
- var authAttr = PlayFab._internalSettings.AuthInfoMap[authKey].authAttr;
- var defaultAuthValue = null;
- if (authAttr === "entityToken")
- defaultAuthValue = PlayFab._internalSettings.entityToken;
- else if (authAttr === "sessionTicket")
- defaultAuthValue = PlayFab._internalSettings.sessionTicket;
- else if (authAttr === "developerSecretKey")
- defaultAuthValue = PlayFab.settings.developerSecretKey;
- var authValue = request.AuthenticationContext ? request.AuthenticationContext[authAttr] : defaultAuthValue;
- return {"authKey": authKey, "authValue": authValue, "authError": authError};
- },
-
- ExecuteRequestWrapper: function (apiURL, request, authKey, callback, customData, extraHeaders) {
- var authValue = null;
- if (authKey !== null){
- var authInfo = PlayFab._internalSettings.GetAuthInfo(request, authKey=authKey);
- var authKey = authInfo.authKey, authValue = authInfo.authValue, authError = authInfo.authError;
-
- if (!authValue) throw authError;
- }
- return PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + apiURL, request, authKey, authValue, callback, customData, extraHeaders);
- }
- }
-}
-
-PlayFab.buildIdentifier = "jbuild_javascriptsdk__sdk-genericslave-1_2";
-PlayFab.sdkVersion = "1.65.200518";
-PlayFab.GenerateErrorReport = function (error) {
- if (error == null)
- return "";
- var fullErrors = error.errorMessage;
- for (var paramName in error.errorDetails)
- for (var msgIdx in error.errorDetails[paramName])
- fullErrors += "\n" + paramName + ": " + error.errorDetails[paramName][msgIdx];
- return fullErrors;
-};
-
-PlayFab.EventsApi = {
- ForgetAllCredentials: function () {
- PlayFab._internalSettings.sessionTicket = null;
- PlayFab._internalSettings.entityToken = null;
- },
-
- WriteEvents: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Event/WriteEvents", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- WriteTelemetryEvents: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Event/WriteTelemetryEvents", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-};
-
-var PlayFabEventsSDK = PlayFab.EventsApi;
-
diff --git a/PlayFabSdk/src/PlayFab/PlayFabExperimentationApi.js b/PlayFabSdk/src/PlayFab/PlayFabExperimentationApi.js
deleted file mode 100644
index d3b2277a..00000000
--- a/PlayFabSdk/src/PlayFab/PlayFabExperimentationApi.js
+++ /dev/null
@@ -1,286 +0,0 @@
-///
-
-var PlayFab = typeof PlayFab != "undefined" ? PlayFab : {};
-
-if(!PlayFab.settings) {
- PlayFab.settings = {
- titleId: null, // You must set this value for PlayFabSdk to work properly (Found in the Game Manager for your title, at the PlayFab Website)
- developerSecretKey: null, // For security reasons you must never expose this value to the client or players - You must set this value for Server-APIs to work properly (Found in the Game Manager for your title, at the PlayFab Website)
- advertisingIdType: null,
- advertisingIdValue: null,
- GlobalHeaderInjection: null,
-
- // disableAdvertising is provided for completeness, but changing it is not suggested
- // Disabling this may prevent your advertising-related PlayFab marketplace partners from working correctly
- disableAdvertising: false,
- AD_TYPE_IDFA: "Idfa",
- AD_TYPE_ANDROID_ID: "Adid"
- }
-}
-
-if(!PlayFab._internalSettings) {
- PlayFab._internalSettings = {
- entityToken: null,
- sdkVersion: "1.65.200518",
- requestGetParams: {
- sdk: "JavaScriptSDK-1.65.200518"
- },
- sessionTicket: null,
- verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
- productionServerUrl: ".playfabapi.com",
- errorTitleId: "Must be have PlayFab.settings.titleId set to call this method",
- errorLoggedIn: "Must be logged in to call this method",
- errorEntityToken: "You must successfully call GetEntityToken before calling this",
- errorSecretKey: "Must have PlayFab.settings.developerSecretKey set to call this method",
-
- GetServerUrl: function () {
- if (!(PlayFab._internalSettings.productionServerUrl.substring(0, 4) === "http")) {
- if (PlayFab._internalSettings.verticalName) {
- return "https://" + PlayFab._internalSettings.verticalName + PlayFab._internalSettings.productionServerUrl;
- } else {
- return "https://" + PlayFab.settings.titleId + PlayFab._internalSettings.productionServerUrl;
- }
- } else {
- return PlayFab._internalSettings.productionServerUrl;
- }
- },
-
- InjectHeaders: function (xhr, headersObj) {
- if (!headersObj)
- return;
-
- for (var headerKey in headersObj)
- {
- try {
- xhr.setRequestHeader(gHeaderKey, headersObj[headerKey]);
- } catch (e) {
- console.log("Failed to append header: " + headerKey + " = " + headersObj[headerKey] + "Error: " + e);
- }
- }
- },
-
- ExecuteRequest: function (url, request, authkey, authValue, callback, customData, extraHeaders) {
- var resultPromise = new Promise(function (resolve, reject) {
- if (callback != null && typeof (callback) !== "function")
- throw "Callback must be null or a function";
-
- if (request == null)
- request = {};
-
- var startTime = new Date();
- var requestBody = JSON.stringify(request);
-
- var urlArr = [url];
- var getParams = PlayFab._internalSettings.requestGetParams;
- if (getParams != null) {
- var firstParam = true;
- for (var key in getParams) {
- if (firstParam) {
- urlArr.push("?");
- firstParam = false;
- } else {
- urlArr.push("&");
- }
- urlArr.push(key);
- urlArr.push("=");
- urlArr.push(getParams[key]);
- }
- }
-
- var completeUrl = urlArr.join("");
-
- var xhr = new XMLHttpRequest();
- // window.console.log("URL: " + completeUrl);
- xhr.open("POST", completeUrl, true);
-
- xhr.setRequestHeader("Content-Type", "application/json");
- xhr.setRequestHeader("X-PlayFabSDK", "JavaScriptSDK-" + PlayFab._internalSettings.sdkVersion);
- if (authkey != null)
- xhr.setRequestHeader(authkey, authValue);
- PlayFab._internalSettings.InjectHeaders(xhr, PlayFab.settings.GlobalHeaderInjection);
- PlayFab._internalSettings.InjectHeaders(xhr, extraHeaders);
-
- xhr.onloadend = function () {
- if (callback == null)
- return;
-
- var result = PlayFab._internalSettings.GetPlayFabResponse(request, xhr, startTime, customData);
- if (result.code === 200) {
- callback(result, null);
- } else {
- callback(null, result);
- }
- }
-
- xhr.onerror = function () {
- if (callback == null)
- return;
-
- var result = PlayFab._internalSettings.GetPlayFabResponse(request, xhr, startTime, customData);
- callback(null, result);
- }
-
- xhr.send(requestBody);
- xhr.onreadystatechange = function () {
- if (this.readyState === 4) {
- var xhrResult = PlayFab._internalSettings.GetPlayFabResponse(request, this, startTime, customData);
- if (this.status === 200) {
- resolve(xhrResult);
- } else {
- reject(xhrResult);
- }
- }
- };
- });
- // Return a Promise so that calls to various API methods can be handled asynchronously
- return resultPromise;
- },
-
- GetPlayFabResponse: function(request, xhr, startTime, customData) {
- var result = null;
- try {
- // window.console.log("parsing json result: " + xhr.responseText);
- result = JSON.parse(xhr.responseText);
- } catch (e) {
- result = {
- code: 503, // Service Unavailable
- status: "Service Unavailable",
- error: "Connection error",
- errorCode: 2, // PlayFabErrorCode.ConnectionError
- errorMessage: xhr.responseText
- };
- }
-
- result.CallBackTimeMS = new Date() - startTime;
- result.Request = request;
- result.CustomData = customData;
- return result;
- },
-
- authenticationContext: {
- PlayFabId: null,
- EntityId: null,
- EntityType: null,
- SessionTicket: null,
- EntityToken: null
- },
-
- UpdateAuthenticationContext: function (authenticationContext, result) {
- var authenticationContextUpdates = {};
- if(result.data.PlayFabId !== null) {
- PlayFab._internalSettings.authenticationContext.PlayFabId = result.data.PlayFabId;
- authenticationContextUpdates.PlayFabId = result.data.PlayFabId;
- }
- if(result.data.SessionTicket !== null) {
- PlayFab._internalSettings.authenticationContext.SessionTicket = result.data.SessionTicket;
- authenticationContextUpdates.SessionTicket = result.data.SessionTicket;
- }
- if (result.data.EntityToken !== null) {
- PlayFab._internalSettings.authenticationContext.EntityId = result.data.EntityToken.Entity.Id;
- authenticationContextUpdates.EntityId = result.data.EntityToken.Entity.Id;
- PlayFab._internalSettings.authenticationContext.EntityType = result.data.EntityToken.Entity.Type;
- authenticationContextUpdates.EntityType = result.data.EntityToken.Entity.Type;
- PlayFab._internalSettings.authenticationContext.EntityToken = result.data.EntityToken.EntityToken;
- authenticationContextUpdates.EntityToken = result.data.EntityToken.EntityToken;
- }
- // Update the authenticationContext with values from the result
- authenticationContext = Object.assign(authenticationContext, authenticationContextUpdates);
- return authenticationContext;
- },
-
- AuthInfoMap: {
- "X-EntityToken": {
- authAttr: "entityToken",
- authError: "errorEntityToken"
- },
- "X-Authorization": {
- authAttr: "sessionTicket",
- authError: "errorLoggedIn"
- },
- "X-SecretKey": {
- authAttr: "developerSecretKey",
- authError: "errorSecretKey"
- }
- },
-
- GetAuthInfo: function (request, authKey) {
- // Use the most-recently saved authKey, unless one was provided in the request via the AuthenticationContext
- var authError = PlayFab._internalSettings.AuthInfoMap[authKey].authError;
- var authAttr = PlayFab._internalSettings.AuthInfoMap[authKey].authAttr;
- var defaultAuthValue = null;
- if (authAttr === "entityToken")
- defaultAuthValue = PlayFab._internalSettings.entityToken;
- else if (authAttr === "sessionTicket")
- defaultAuthValue = PlayFab._internalSettings.sessionTicket;
- else if (authAttr === "developerSecretKey")
- defaultAuthValue = PlayFab.settings.developerSecretKey;
- var authValue = request.AuthenticationContext ? request.AuthenticationContext[authAttr] : defaultAuthValue;
- return {"authKey": authKey, "authValue": authValue, "authError": authError};
- },
-
- ExecuteRequestWrapper: function (apiURL, request, authKey, callback, customData, extraHeaders) {
- var authValue = null;
- if (authKey !== null){
- var authInfo = PlayFab._internalSettings.GetAuthInfo(request, authKey=authKey);
- var authKey = authInfo.authKey, authValue = authInfo.authValue, authError = authInfo.authError;
-
- if (!authValue) throw authError;
- }
- return PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + apiURL, request, authKey, authValue, callback, customData, extraHeaders);
- }
- }
-}
-
-PlayFab.buildIdentifier = "jbuild_javascriptsdk__sdk-genericslave-1_2";
-PlayFab.sdkVersion = "1.65.200518";
-PlayFab.GenerateErrorReport = function (error) {
- if (error == null)
- return "";
- var fullErrors = error.errorMessage;
- for (var paramName in error.errorDetails)
- for (var msgIdx in error.errorDetails[paramName])
- fullErrors += "\n" + paramName + ": " + error.errorDetails[paramName][msgIdx];
- return fullErrors;
-};
-
-PlayFab.ExperimentationApi = {
- ForgetAllCredentials: function () {
- PlayFab._internalSettings.sessionTicket = null;
- PlayFab._internalSettings.entityToken = null;
- },
-
- CreateExperiment: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Experimentation/CreateExperiment", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- DeleteExperiment: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Experimentation/DeleteExperiment", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- GetExperiments: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Experimentation/GetExperiments", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- GetLatestScorecard: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Experimentation/GetLatestScorecard", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- GetTreatmentAssignment: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Experimentation/GetTreatmentAssignment", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- StartExperiment: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Experimentation/StartExperiment", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- StopExperiment: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Experimentation/StopExperiment", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- UpdateExperiment: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Experimentation/UpdateExperiment", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-};
-
-var PlayFabExperimentationSDK = PlayFab.ExperimentationApi;
-
diff --git a/PlayFabSdk/src/PlayFab/PlayFabGroupsApi.js b/PlayFabSdk/src/PlayFab/PlayFabGroupsApi.js
deleted file mode 100644
index b695cddf..00000000
--- a/PlayFabSdk/src/PlayFab/PlayFabGroupsApi.js
+++ /dev/null
@@ -1,354 +0,0 @@
-///
-
-var PlayFab = typeof PlayFab != "undefined" ? PlayFab : {};
-
-if(!PlayFab.settings) {
- PlayFab.settings = {
- titleId: null, // You must set this value for PlayFabSdk to work properly (Found in the Game Manager for your title, at the PlayFab Website)
- developerSecretKey: null, // For security reasons you must never expose this value to the client or players - You must set this value for Server-APIs to work properly (Found in the Game Manager for your title, at the PlayFab Website)
- advertisingIdType: null,
- advertisingIdValue: null,
- GlobalHeaderInjection: null,
-
- // disableAdvertising is provided for completeness, but changing it is not suggested
- // Disabling this may prevent your advertising-related PlayFab marketplace partners from working correctly
- disableAdvertising: false,
- AD_TYPE_IDFA: "Idfa",
- AD_TYPE_ANDROID_ID: "Adid"
- }
-}
-
-if(!PlayFab._internalSettings) {
- PlayFab._internalSettings = {
- entityToken: null,
- sdkVersion: "1.65.200518",
- requestGetParams: {
- sdk: "JavaScriptSDK-1.65.200518"
- },
- sessionTicket: null,
- verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
- productionServerUrl: ".playfabapi.com",
- errorTitleId: "Must be have PlayFab.settings.titleId set to call this method",
- errorLoggedIn: "Must be logged in to call this method",
- errorEntityToken: "You must successfully call GetEntityToken before calling this",
- errorSecretKey: "Must have PlayFab.settings.developerSecretKey set to call this method",
-
- GetServerUrl: function () {
- if (!(PlayFab._internalSettings.productionServerUrl.substring(0, 4) === "http")) {
- if (PlayFab._internalSettings.verticalName) {
- return "https://" + PlayFab._internalSettings.verticalName + PlayFab._internalSettings.productionServerUrl;
- } else {
- return "https://" + PlayFab.settings.titleId + PlayFab._internalSettings.productionServerUrl;
- }
- } else {
- return PlayFab._internalSettings.productionServerUrl;
- }
- },
-
- InjectHeaders: function (xhr, headersObj) {
- if (!headersObj)
- return;
-
- for (var headerKey in headersObj)
- {
- try {
- xhr.setRequestHeader(gHeaderKey, headersObj[headerKey]);
- } catch (e) {
- console.log("Failed to append header: " + headerKey + " = " + headersObj[headerKey] + "Error: " + e);
- }
- }
- },
-
- ExecuteRequest: function (url, request, authkey, authValue, callback, customData, extraHeaders) {
- var resultPromise = new Promise(function (resolve, reject) {
- if (callback != null && typeof (callback) !== "function")
- throw "Callback must be null or a function";
-
- if (request == null)
- request = {};
-
- var startTime = new Date();
- var requestBody = JSON.stringify(request);
-
- var urlArr = [url];
- var getParams = PlayFab._internalSettings.requestGetParams;
- if (getParams != null) {
- var firstParam = true;
- for (var key in getParams) {
- if (firstParam) {
- urlArr.push("?");
- firstParam = false;
- } else {
- urlArr.push("&");
- }
- urlArr.push(key);
- urlArr.push("=");
- urlArr.push(getParams[key]);
- }
- }
-
- var completeUrl = urlArr.join("");
-
- var xhr = new XMLHttpRequest();
- // window.console.log("URL: " + completeUrl);
- xhr.open("POST", completeUrl, true);
-
- xhr.setRequestHeader("Content-Type", "application/json");
- xhr.setRequestHeader("X-PlayFabSDK", "JavaScriptSDK-" + PlayFab._internalSettings.sdkVersion);
- if (authkey != null)
- xhr.setRequestHeader(authkey, authValue);
- PlayFab._internalSettings.InjectHeaders(xhr, PlayFab.settings.GlobalHeaderInjection);
- PlayFab._internalSettings.InjectHeaders(xhr, extraHeaders);
-
- xhr.onloadend = function () {
- if (callback == null)
- return;
-
- var result = PlayFab._internalSettings.GetPlayFabResponse(request, xhr, startTime, customData);
- if (result.code === 200) {
- callback(result, null);
- } else {
- callback(null, result);
- }
- }
-
- xhr.onerror = function () {
- if (callback == null)
- return;
-
- var result = PlayFab._internalSettings.GetPlayFabResponse(request, xhr, startTime, customData);
- callback(null, result);
- }
-
- xhr.send(requestBody);
- xhr.onreadystatechange = function () {
- if (this.readyState === 4) {
- var xhrResult = PlayFab._internalSettings.GetPlayFabResponse(request, this, startTime, customData);
- if (this.status === 200) {
- resolve(xhrResult);
- } else {
- reject(xhrResult);
- }
- }
- };
- });
- // Return a Promise so that calls to various API methods can be handled asynchronously
- return resultPromise;
- },
-
- GetPlayFabResponse: function(request, xhr, startTime, customData) {
- var result = null;
- try {
- // window.console.log("parsing json result: " + xhr.responseText);
- result = JSON.parse(xhr.responseText);
- } catch (e) {
- result = {
- code: 503, // Service Unavailable
- status: "Service Unavailable",
- error: "Connection error",
- errorCode: 2, // PlayFabErrorCode.ConnectionError
- errorMessage: xhr.responseText
- };
- }
-
- result.CallBackTimeMS = new Date() - startTime;
- result.Request = request;
- result.CustomData = customData;
- return result;
- },
-
- authenticationContext: {
- PlayFabId: null,
- EntityId: null,
- EntityType: null,
- SessionTicket: null,
- EntityToken: null
- },
-
- UpdateAuthenticationContext: function (authenticationContext, result) {
- var authenticationContextUpdates = {};
- if(result.data.PlayFabId !== null) {
- PlayFab._internalSettings.authenticationContext.PlayFabId = result.data.PlayFabId;
- authenticationContextUpdates.PlayFabId = result.data.PlayFabId;
- }
- if(result.data.SessionTicket !== null) {
- PlayFab._internalSettings.authenticationContext.SessionTicket = result.data.SessionTicket;
- authenticationContextUpdates.SessionTicket = result.data.SessionTicket;
- }
- if (result.data.EntityToken !== null) {
- PlayFab._internalSettings.authenticationContext.EntityId = result.data.EntityToken.Entity.Id;
- authenticationContextUpdates.EntityId = result.data.EntityToken.Entity.Id;
- PlayFab._internalSettings.authenticationContext.EntityType = result.data.EntityToken.Entity.Type;
- authenticationContextUpdates.EntityType = result.data.EntityToken.Entity.Type;
- PlayFab._internalSettings.authenticationContext.EntityToken = result.data.EntityToken.EntityToken;
- authenticationContextUpdates.EntityToken = result.data.EntityToken.EntityToken;
- }
- // Update the authenticationContext with values from the result
- authenticationContext = Object.assign(authenticationContext, authenticationContextUpdates);
- return authenticationContext;
- },
-
- AuthInfoMap: {
- "X-EntityToken": {
- authAttr: "entityToken",
- authError: "errorEntityToken"
- },
- "X-Authorization": {
- authAttr: "sessionTicket",
- authError: "errorLoggedIn"
- },
- "X-SecretKey": {
- authAttr: "developerSecretKey",
- authError: "errorSecretKey"
- }
- },
-
- GetAuthInfo: function (request, authKey) {
- // Use the most-recently saved authKey, unless one was provided in the request via the AuthenticationContext
- var authError = PlayFab._internalSettings.AuthInfoMap[authKey].authError;
- var authAttr = PlayFab._internalSettings.AuthInfoMap[authKey].authAttr;
- var defaultAuthValue = null;
- if (authAttr === "entityToken")
- defaultAuthValue = PlayFab._internalSettings.entityToken;
- else if (authAttr === "sessionTicket")
- defaultAuthValue = PlayFab._internalSettings.sessionTicket;
- else if (authAttr === "developerSecretKey")
- defaultAuthValue = PlayFab.settings.developerSecretKey;
- var authValue = request.AuthenticationContext ? request.AuthenticationContext[authAttr] : defaultAuthValue;
- return {"authKey": authKey, "authValue": authValue, "authError": authError};
- },
-
- ExecuteRequestWrapper: function (apiURL, request, authKey, callback, customData, extraHeaders) {
- var authValue = null;
- if (authKey !== null){
- var authInfo = PlayFab._internalSettings.GetAuthInfo(request, authKey=authKey);
- var authKey = authInfo.authKey, authValue = authInfo.authValue, authError = authInfo.authError;
-
- if (!authValue) throw authError;
- }
- return PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + apiURL, request, authKey, authValue, callback, customData, extraHeaders);
- }
- }
-}
-
-PlayFab.buildIdentifier = "jbuild_javascriptsdk__sdk-genericslave-1_2";
-PlayFab.sdkVersion = "1.65.200518";
-PlayFab.GenerateErrorReport = function (error) {
- if (error == null)
- return "";
- var fullErrors = error.errorMessage;
- for (var paramName in error.errorDetails)
- for (var msgIdx in error.errorDetails[paramName])
- fullErrors += "\n" + paramName + ": " + error.errorDetails[paramName][msgIdx];
- return fullErrors;
-};
-
-PlayFab.GroupsApi = {
- ForgetAllCredentials: function () {
- PlayFab._internalSettings.sessionTicket = null;
- PlayFab._internalSettings.entityToken = null;
- },
-
- AcceptGroupApplication: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Group/AcceptGroupApplication", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- AcceptGroupInvitation: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Group/AcceptGroupInvitation", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- AddMembers: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Group/AddMembers", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- ApplyToGroup: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Group/ApplyToGroup", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- BlockEntity: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Group/BlockEntity", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- ChangeMemberRole: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Group/ChangeMemberRole", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- CreateGroup: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Group/CreateGroup", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- CreateRole: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Group/CreateRole", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- DeleteGroup: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Group/DeleteGroup", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- DeleteRole: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Group/DeleteRole", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- GetGroup: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Group/GetGroup", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- InviteToGroup: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Group/InviteToGroup", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- IsMember: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Group/IsMember", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- ListGroupApplications: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Group/ListGroupApplications", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- ListGroupBlocks: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Group/ListGroupBlocks", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- ListGroupInvitations: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Group/ListGroupInvitations", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- ListGroupMembers: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Group/ListGroupMembers", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- ListMembership: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Group/ListMembership", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- ListMembershipOpportunities: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Group/ListMembershipOpportunities", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- RemoveGroupApplication: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Group/RemoveGroupApplication", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- RemoveGroupInvitation: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Group/RemoveGroupInvitation", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- RemoveMembers: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Group/RemoveMembers", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- UnblockEntity: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Group/UnblockEntity", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- UpdateGroup: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Group/UpdateGroup", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- UpdateRole: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Group/UpdateRole", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-};
-
-var PlayFabGroupsSDK = PlayFab.GroupsApi;
-
diff --git a/PlayFabSdk/src/PlayFab/PlayFabInsightsApi.js b/PlayFabSdk/src/PlayFab/PlayFabInsightsApi.js
deleted file mode 100644
index dcb3b812..00000000
--- a/PlayFabSdk/src/PlayFab/PlayFabInsightsApi.js
+++ /dev/null
@@ -1,278 +0,0 @@
-///
-
-var PlayFab = typeof PlayFab != "undefined" ? PlayFab : {};
-
-if(!PlayFab.settings) {
- PlayFab.settings = {
- titleId: null, // You must set this value for PlayFabSdk to work properly (Found in the Game Manager for your title, at the PlayFab Website)
- developerSecretKey: null, // For security reasons you must never expose this value to the client or players - You must set this value for Server-APIs to work properly (Found in the Game Manager for your title, at the PlayFab Website)
- advertisingIdType: null,
- advertisingIdValue: null,
- GlobalHeaderInjection: null,
-
- // disableAdvertising is provided for completeness, but changing it is not suggested
- // Disabling this may prevent your advertising-related PlayFab marketplace partners from working correctly
- disableAdvertising: false,
- AD_TYPE_IDFA: "Idfa",
- AD_TYPE_ANDROID_ID: "Adid"
- }
-}
-
-if(!PlayFab._internalSettings) {
- PlayFab._internalSettings = {
- entityToken: null,
- sdkVersion: "1.65.200518",
- requestGetParams: {
- sdk: "JavaScriptSDK-1.65.200518"
- },
- sessionTicket: null,
- verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
- productionServerUrl: ".playfabapi.com",
- errorTitleId: "Must be have PlayFab.settings.titleId set to call this method",
- errorLoggedIn: "Must be logged in to call this method",
- errorEntityToken: "You must successfully call GetEntityToken before calling this",
- errorSecretKey: "Must have PlayFab.settings.developerSecretKey set to call this method",
-
- GetServerUrl: function () {
- if (!(PlayFab._internalSettings.productionServerUrl.substring(0, 4) === "http")) {
- if (PlayFab._internalSettings.verticalName) {
- return "https://" + PlayFab._internalSettings.verticalName + PlayFab._internalSettings.productionServerUrl;
- } else {
- return "https://" + PlayFab.settings.titleId + PlayFab._internalSettings.productionServerUrl;
- }
- } else {
- return PlayFab._internalSettings.productionServerUrl;
- }
- },
-
- InjectHeaders: function (xhr, headersObj) {
- if (!headersObj)
- return;
-
- for (var headerKey in headersObj)
- {
- try {
- xhr.setRequestHeader(gHeaderKey, headersObj[headerKey]);
- } catch (e) {
- console.log("Failed to append header: " + headerKey + " = " + headersObj[headerKey] + "Error: " + e);
- }
- }
- },
-
- ExecuteRequest: function (url, request, authkey, authValue, callback, customData, extraHeaders) {
- var resultPromise = new Promise(function (resolve, reject) {
- if (callback != null && typeof (callback) !== "function")
- throw "Callback must be null or a function";
-
- if (request == null)
- request = {};
-
- var startTime = new Date();
- var requestBody = JSON.stringify(request);
-
- var urlArr = [url];
- var getParams = PlayFab._internalSettings.requestGetParams;
- if (getParams != null) {
- var firstParam = true;
- for (var key in getParams) {
- if (firstParam) {
- urlArr.push("?");
- firstParam = false;
- } else {
- urlArr.push("&");
- }
- urlArr.push(key);
- urlArr.push("=");
- urlArr.push(getParams[key]);
- }
- }
-
- var completeUrl = urlArr.join("");
-
- var xhr = new XMLHttpRequest();
- // window.console.log("URL: " + completeUrl);
- xhr.open("POST", completeUrl, true);
-
- xhr.setRequestHeader("Content-Type", "application/json");
- xhr.setRequestHeader("X-PlayFabSDK", "JavaScriptSDK-" + PlayFab._internalSettings.sdkVersion);
- if (authkey != null)
- xhr.setRequestHeader(authkey, authValue);
- PlayFab._internalSettings.InjectHeaders(xhr, PlayFab.settings.GlobalHeaderInjection);
- PlayFab._internalSettings.InjectHeaders(xhr, extraHeaders);
-
- xhr.onloadend = function () {
- if (callback == null)
- return;
-
- var result = PlayFab._internalSettings.GetPlayFabResponse(request, xhr, startTime, customData);
- if (result.code === 200) {
- callback(result, null);
- } else {
- callback(null, result);
- }
- }
-
- xhr.onerror = function () {
- if (callback == null)
- return;
-
- var result = PlayFab._internalSettings.GetPlayFabResponse(request, xhr, startTime, customData);
- callback(null, result);
- }
-
- xhr.send(requestBody);
- xhr.onreadystatechange = function () {
- if (this.readyState === 4) {
- var xhrResult = PlayFab._internalSettings.GetPlayFabResponse(request, this, startTime, customData);
- if (this.status === 200) {
- resolve(xhrResult);
- } else {
- reject(xhrResult);
- }
- }
- };
- });
- // Return a Promise so that calls to various API methods can be handled asynchronously
- return resultPromise;
- },
-
- GetPlayFabResponse: function(request, xhr, startTime, customData) {
- var result = null;
- try {
- // window.console.log("parsing json result: " + xhr.responseText);
- result = JSON.parse(xhr.responseText);
- } catch (e) {
- result = {
- code: 503, // Service Unavailable
- status: "Service Unavailable",
- error: "Connection error",
- errorCode: 2, // PlayFabErrorCode.ConnectionError
- errorMessage: xhr.responseText
- };
- }
-
- result.CallBackTimeMS = new Date() - startTime;
- result.Request = request;
- result.CustomData = customData;
- return result;
- },
-
- authenticationContext: {
- PlayFabId: null,
- EntityId: null,
- EntityType: null,
- SessionTicket: null,
- EntityToken: null
- },
-
- UpdateAuthenticationContext: function (authenticationContext, result) {
- var authenticationContextUpdates = {};
- if(result.data.PlayFabId !== null) {
- PlayFab._internalSettings.authenticationContext.PlayFabId = result.data.PlayFabId;
- authenticationContextUpdates.PlayFabId = result.data.PlayFabId;
- }
- if(result.data.SessionTicket !== null) {
- PlayFab._internalSettings.authenticationContext.SessionTicket = result.data.SessionTicket;
- authenticationContextUpdates.SessionTicket = result.data.SessionTicket;
- }
- if (result.data.EntityToken !== null) {
- PlayFab._internalSettings.authenticationContext.EntityId = result.data.EntityToken.Entity.Id;
- authenticationContextUpdates.EntityId = result.data.EntityToken.Entity.Id;
- PlayFab._internalSettings.authenticationContext.EntityType = result.data.EntityToken.Entity.Type;
- authenticationContextUpdates.EntityType = result.data.EntityToken.Entity.Type;
- PlayFab._internalSettings.authenticationContext.EntityToken = result.data.EntityToken.EntityToken;
- authenticationContextUpdates.EntityToken = result.data.EntityToken.EntityToken;
- }
- // Update the authenticationContext with values from the result
- authenticationContext = Object.assign(authenticationContext, authenticationContextUpdates);
- return authenticationContext;
- },
-
- AuthInfoMap: {
- "X-EntityToken": {
- authAttr: "entityToken",
- authError: "errorEntityToken"
- },
- "X-Authorization": {
- authAttr: "sessionTicket",
- authError: "errorLoggedIn"
- },
- "X-SecretKey": {
- authAttr: "developerSecretKey",
- authError: "errorSecretKey"
- }
- },
-
- GetAuthInfo: function (request, authKey) {
- // Use the most-recently saved authKey, unless one was provided in the request via the AuthenticationContext
- var authError = PlayFab._internalSettings.AuthInfoMap[authKey].authError;
- var authAttr = PlayFab._internalSettings.AuthInfoMap[authKey].authAttr;
- var defaultAuthValue = null;
- if (authAttr === "entityToken")
- defaultAuthValue = PlayFab._internalSettings.entityToken;
- else if (authAttr === "sessionTicket")
- defaultAuthValue = PlayFab._internalSettings.sessionTicket;
- else if (authAttr === "developerSecretKey")
- defaultAuthValue = PlayFab.settings.developerSecretKey;
- var authValue = request.AuthenticationContext ? request.AuthenticationContext[authAttr] : defaultAuthValue;
- return {"authKey": authKey, "authValue": authValue, "authError": authError};
- },
-
- ExecuteRequestWrapper: function (apiURL, request, authKey, callback, customData, extraHeaders) {
- var authValue = null;
- if (authKey !== null){
- var authInfo = PlayFab._internalSettings.GetAuthInfo(request, authKey=authKey);
- var authKey = authInfo.authKey, authValue = authInfo.authValue, authError = authInfo.authError;
-
- if (!authValue) throw authError;
- }
- return PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + apiURL, request, authKey, authValue, callback, customData, extraHeaders);
- }
- }
-}
-
-PlayFab.buildIdentifier = "jbuild_javascriptsdk__sdk-genericslave-1_2";
-PlayFab.sdkVersion = "1.65.200518";
-PlayFab.GenerateErrorReport = function (error) {
- if (error == null)
- return "";
- var fullErrors = error.errorMessage;
- for (var paramName in error.errorDetails)
- for (var msgIdx in error.errorDetails[paramName])
- fullErrors += "\n" + paramName + ": " + error.errorDetails[paramName][msgIdx];
- return fullErrors;
-};
-
-PlayFab.InsightsApi = {
- ForgetAllCredentials: function () {
- PlayFab._internalSettings.sessionTicket = null;
- PlayFab._internalSettings.entityToken = null;
- },
-
- GetDetails: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Insights/GetDetails", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- GetLimits: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Insights/GetLimits", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- GetOperationStatus: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Insights/GetOperationStatus", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- GetPendingOperations: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Insights/GetPendingOperations", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- SetPerformance: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Insights/SetPerformance", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- SetStorageRetention: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Insights/SetStorageRetention", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-};
-
-var PlayFabInsightsSDK = PlayFab.InsightsApi;
-
diff --git a/PlayFabSdk/src/PlayFab/PlayFabLocalizationApi.js b/PlayFabSdk/src/PlayFab/PlayFabLocalizationApi.js
deleted file mode 100644
index 0e45a412..00000000
--- a/PlayFabSdk/src/PlayFab/PlayFabLocalizationApi.js
+++ /dev/null
@@ -1,258 +0,0 @@
-///
-
-var PlayFab = typeof PlayFab != "undefined" ? PlayFab : {};
-
-if(!PlayFab.settings) {
- PlayFab.settings = {
- titleId: null, // You must set this value for PlayFabSdk to work properly (Found in the Game Manager for your title, at the PlayFab Website)
- developerSecretKey: null, // For security reasons you must never expose this value to the client or players - You must set this value for Server-APIs to work properly (Found in the Game Manager for your title, at the PlayFab Website)
- advertisingIdType: null,
- advertisingIdValue: null,
- GlobalHeaderInjection: null,
-
- // disableAdvertising is provided for completeness, but changing it is not suggested
- // Disabling this may prevent your advertising-related PlayFab marketplace partners from working correctly
- disableAdvertising: false,
- AD_TYPE_IDFA: "Idfa",
- AD_TYPE_ANDROID_ID: "Adid"
- }
-}
-
-if(!PlayFab._internalSettings) {
- PlayFab._internalSettings = {
- entityToken: null,
- sdkVersion: "1.65.200518",
- requestGetParams: {
- sdk: "JavaScriptSDK-1.65.200518"
- },
- sessionTicket: null,
- verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
- productionServerUrl: ".playfabapi.com",
- errorTitleId: "Must be have PlayFab.settings.titleId set to call this method",
- errorLoggedIn: "Must be logged in to call this method",
- errorEntityToken: "You must successfully call GetEntityToken before calling this",
- errorSecretKey: "Must have PlayFab.settings.developerSecretKey set to call this method",
-
- GetServerUrl: function () {
- if (!(PlayFab._internalSettings.productionServerUrl.substring(0, 4) === "http")) {
- if (PlayFab._internalSettings.verticalName) {
- return "https://" + PlayFab._internalSettings.verticalName + PlayFab._internalSettings.productionServerUrl;
- } else {
- return "https://" + PlayFab.settings.titleId + PlayFab._internalSettings.productionServerUrl;
- }
- } else {
- return PlayFab._internalSettings.productionServerUrl;
- }
- },
-
- InjectHeaders: function (xhr, headersObj) {
- if (!headersObj)
- return;
-
- for (var headerKey in headersObj)
- {
- try {
- xhr.setRequestHeader(gHeaderKey, headersObj[headerKey]);
- } catch (e) {
- console.log("Failed to append header: " + headerKey + " = " + headersObj[headerKey] + "Error: " + e);
- }
- }
- },
-
- ExecuteRequest: function (url, request, authkey, authValue, callback, customData, extraHeaders) {
- var resultPromise = new Promise(function (resolve, reject) {
- if (callback != null && typeof (callback) !== "function")
- throw "Callback must be null or a function";
-
- if (request == null)
- request = {};
-
- var startTime = new Date();
- var requestBody = JSON.stringify(request);
-
- var urlArr = [url];
- var getParams = PlayFab._internalSettings.requestGetParams;
- if (getParams != null) {
- var firstParam = true;
- for (var key in getParams) {
- if (firstParam) {
- urlArr.push("?");
- firstParam = false;
- } else {
- urlArr.push("&");
- }
- urlArr.push(key);
- urlArr.push("=");
- urlArr.push(getParams[key]);
- }
- }
-
- var completeUrl = urlArr.join("");
-
- var xhr = new XMLHttpRequest();
- // window.console.log("URL: " + completeUrl);
- xhr.open("POST", completeUrl, true);
-
- xhr.setRequestHeader("Content-Type", "application/json");
- xhr.setRequestHeader("X-PlayFabSDK", "JavaScriptSDK-" + PlayFab._internalSettings.sdkVersion);
- if (authkey != null)
- xhr.setRequestHeader(authkey, authValue);
- PlayFab._internalSettings.InjectHeaders(xhr, PlayFab.settings.GlobalHeaderInjection);
- PlayFab._internalSettings.InjectHeaders(xhr, extraHeaders);
-
- xhr.onloadend = function () {
- if (callback == null)
- return;
-
- var result = PlayFab._internalSettings.GetPlayFabResponse(request, xhr, startTime, customData);
- if (result.code === 200) {
- callback(result, null);
- } else {
- callback(null, result);
- }
- }
-
- xhr.onerror = function () {
- if (callback == null)
- return;
-
- var result = PlayFab._internalSettings.GetPlayFabResponse(request, xhr, startTime, customData);
- callback(null, result);
- }
-
- xhr.send(requestBody);
- xhr.onreadystatechange = function () {
- if (this.readyState === 4) {
- var xhrResult = PlayFab._internalSettings.GetPlayFabResponse(request, this, startTime, customData);
- if (this.status === 200) {
- resolve(xhrResult);
- } else {
- reject(xhrResult);
- }
- }
- };
- });
- // Return a Promise so that calls to various API methods can be handled asynchronously
- return resultPromise;
- },
-
- GetPlayFabResponse: function(request, xhr, startTime, customData) {
- var result = null;
- try {
- // window.console.log("parsing json result: " + xhr.responseText);
- result = JSON.parse(xhr.responseText);
- } catch (e) {
- result = {
- code: 503, // Service Unavailable
- status: "Service Unavailable",
- error: "Connection error",
- errorCode: 2, // PlayFabErrorCode.ConnectionError
- errorMessage: xhr.responseText
- };
- }
-
- result.CallBackTimeMS = new Date() - startTime;
- result.Request = request;
- result.CustomData = customData;
- return result;
- },
-
- authenticationContext: {
- PlayFabId: null,
- EntityId: null,
- EntityType: null,
- SessionTicket: null,
- EntityToken: null
- },
-
- UpdateAuthenticationContext: function (authenticationContext, result) {
- var authenticationContextUpdates = {};
- if(result.data.PlayFabId !== null) {
- PlayFab._internalSettings.authenticationContext.PlayFabId = result.data.PlayFabId;
- authenticationContextUpdates.PlayFabId = result.data.PlayFabId;
- }
- if(result.data.SessionTicket !== null) {
- PlayFab._internalSettings.authenticationContext.SessionTicket = result.data.SessionTicket;
- authenticationContextUpdates.SessionTicket = result.data.SessionTicket;
- }
- if (result.data.EntityToken !== null) {
- PlayFab._internalSettings.authenticationContext.EntityId = result.data.EntityToken.Entity.Id;
- authenticationContextUpdates.EntityId = result.data.EntityToken.Entity.Id;
- PlayFab._internalSettings.authenticationContext.EntityType = result.data.EntityToken.Entity.Type;
- authenticationContextUpdates.EntityType = result.data.EntityToken.Entity.Type;
- PlayFab._internalSettings.authenticationContext.EntityToken = result.data.EntityToken.EntityToken;
- authenticationContextUpdates.EntityToken = result.data.EntityToken.EntityToken;
- }
- // Update the authenticationContext with values from the result
- authenticationContext = Object.assign(authenticationContext, authenticationContextUpdates);
- return authenticationContext;
- },
-
- AuthInfoMap: {
- "X-EntityToken": {
- authAttr: "entityToken",
- authError: "errorEntityToken"
- },
- "X-Authorization": {
- authAttr: "sessionTicket",
- authError: "errorLoggedIn"
- },
- "X-SecretKey": {
- authAttr: "developerSecretKey",
- authError: "errorSecretKey"
- }
- },
-
- GetAuthInfo: function (request, authKey) {
- // Use the most-recently saved authKey, unless one was provided in the request via the AuthenticationContext
- var authError = PlayFab._internalSettings.AuthInfoMap[authKey].authError;
- var authAttr = PlayFab._internalSettings.AuthInfoMap[authKey].authAttr;
- var defaultAuthValue = null;
- if (authAttr === "entityToken")
- defaultAuthValue = PlayFab._internalSettings.entityToken;
- else if (authAttr === "sessionTicket")
- defaultAuthValue = PlayFab._internalSettings.sessionTicket;
- else if (authAttr === "developerSecretKey")
- defaultAuthValue = PlayFab.settings.developerSecretKey;
- var authValue = request.AuthenticationContext ? request.AuthenticationContext[authAttr] : defaultAuthValue;
- return {"authKey": authKey, "authValue": authValue, "authError": authError};
- },
-
- ExecuteRequestWrapper: function (apiURL, request, authKey, callback, customData, extraHeaders) {
- var authValue = null;
- if (authKey !== null){
- var authInfo = PlayFab._internalSettings.GetAuthInfo(request, authKey=authKey);
- var authKey = authInfo.authKey, authValue = authInfo.authValue, authError = authInfo.authError;
-
- if (!authValue) throw authError;
- }
- return PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + apiURL, request, authKey, authValue, callback, customData, extraHeaders);
- }
- }
-}
-
-PlayFab.buildIdentifier = "jbuild_javascriptsdk__sdk-genericslave-1_2";
-PlayFab.sdkVersion = "1.65.200518";
-PlayFab.GenerateErrorReport = function (error) {
- if (error == null)
- return "";
- var fullErrors = error.errorMessage;
- for (var paramName in error.errorDetails)
- for (var msgIdx in error.errorDetails[paramName])
- fullErrors += "\n" + paramName + ": " + error.errorDetails[paramName][msgIdx];
- return fullErrors;
-};
-
-PlayFab.LocalizationApi = {
- ForgetAllCredentials: function () {
- PlayFab._internalSettings.sessionTicket = null;
- PlayFab._internalSettings.entityToken = null;
- },
-
- GetLanguageList: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Locale/GetLanguageList", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-};
-
-var PlayFabLocalizationSDK = PlayFab.LocalizationApi;
-
diff --git a/PlayFabSdk/src/PlayFab/PlayFabMatchmakerApi.js b/PlayFabSdk/src/PlayFab/PlayFabMatchmakerApi.js
deleted file mode 100644
index 0507ec19..00000000
--- a/PlayFabSdk/src/PlayFab/PlayFabMatchmakerApi.js
+++ /dev/null
@@ -1,274 +0,0 @@
-///
-
-var PlayFab = typeof PlayFab != "undefined" ? PlayFab : {};
-
-if(!PlayFab.settings) {
- PlayFab.settings = {
- titleId: null, // You must set this value for PlayFabSdk to work properly (Found in the Game Manager for your title, at the PlayFab Website)
- developerSecretKey: null, // For security reasons you must never expose this value to the client or players - You must set this value for Server-APIs to work properly (Found in the Game Manager for your title, at the PlayFab Website)
- advertisingIdType: null,
- advertisingIdValue: null,
- GlobalHeaderInjection: null,
-
- // disableAdvertising is provided for completeness, but changing it is not suggested
- // Disabling this may prevent your advertising-related PlayFab marketplace partners from working correctly
- disableAdvertising: false,
- AD_TYPE_IDFA: "Idfa",
- AD_TYPE_ANDROID_ID: "Adid"
- }
-}
-
-if(!PlayFab._internalSettings) {
- PlayFab._internalSettings = {
- entityToken: null,
- sdkVersion: "1.65.200518",
- requestGetParams: {
- sdk: "JavaScriptSDK-1.65.200518"
- },
- sessionTicket: null,
- verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
- productionServerUrl: ".playfabapi.com",
- errorTitleId: "Must be have PlayFab.settings.titleId set to call this method",
- errorLoggedIn: "Must be logged in to call this method",
- errorEntityToken: "You must successfully call GetEntityToken before calling this",
- errorSecretKey: "Must have PlayFab.settings.developerSecretKey set to call this method",
-
- GetServerUrl: function () {
- if (!(PlayFab._internalSettings.productionServerUrl.substring(0, 4) === "http")) {
- if (PlayFab._internalSettings.verticalName) {
- return "https://" + PlayFab._internalSettings.verticalName + PlayFab._internalSettings.productionServerUrl;
- } else {
- return "https://" + PlayFab.settings.titleId + PlayFab._internalSettings.productionServerUrl;
- }
- } else {
- return PlayFab._internalSettings.productionServerUrl;
- }
- },
-
- InjectHeaders: function (xhr, headersObj) {
- if (!headersObj)
- return;
-
- for (var headerKey in headersObj)
- {
- try {
- xhr.setRequestHeader(gHeaderKey, headersObj[headerKey]);
- } catch (e) {
- console.log("Failed to append header: " + headerKey + " = " + headersObj[headerKey] + "Error: " + e);
- }
- }
- },
-
- ExecuteRequest: function (url, request, authkey, authValue, callback, customData, extraHeaders) {
- var resultPromise = new Promise(function (resolve, reject) {
- if (callback != null && typeof (callback) !== "function")
- throw "Callback must be null or a function";
-
- if (request == null)
- request = {};
-
- var startTime = new Date();
- var requestBody = JSON.stringify(request);
-
- var urlArr = [url];
- var getParams = PlayFab._internalSettings.requestGetParams;
- if (getParams != null) {
- var firstParam = true;
- for (var key in getParams) {
- if (firstParam) {
- urlArr.push("?");
- firstParam = false;
- } else {
- urlArr.push("&");
- }
- urlArr.push(key);
- urlArr.push("=");
- urlArr.push(getParams[key]);
- }
- }
-
- var completeUrl = urlArr.join("");
-
- var xhr = new XMLHttpRequest();
- // window.console.log("URL: " + completeUrl);
- xhr.open("POST", completeUrl, true);
-
- xhr.setRequestHeader("Content-Type", "application/json");
- xhr.setRequestHeader("X-PlayFabSDK", "JavaScriptSDK-" + PlayFab._internalSettings.sdkVersion);
- if (authkey != null)
- xhr.setRequestHeader(authkey, authValue);
- PlayFab._internalSettings.InjectHeaders(xhr, PlayFab.settings.GlobalHeaderInjection);
- PlayFab._internalSettings.InjectHeaders(xhr, extraHeaders);
-
- xhr.onloadend = function () {
- if (callback == null)
- return;
-
- var result = PlayFab._internalSettings.GetPlayFabResponse(request, xhr, startTime, customData);
- if (result.code === 200) {
- callback(result, null);
- } else {
- callback(null, result);
- }
- }
-
- xhr.onerror = function () {
- if (callback == null)
- return;
-
- var result = PlayFab._internalSettings.GetPlayFabResponse(request, xhr, startTime, customData);
- callback(null, result);
- }
-
- xhr.send(requestBody);
- xhr.onreadystatechange = function () {
- if (this.readyState === 4) {
- var xhrResult = PlayFab._internalSettings.GetPlayFabResponse(request, this, startTime, customData);
- if (this.status === 200) {
- resolve(xhrResult);
- } else {
- reject(xhrResult);
- }
- }
- };
- });
- // Return a Promise so that calls to various API methods can be handled asynchronously
- return resultPromise;
- },
-
- GetPlayFabResponse: function(request, xhr, startTime, customData) {
- var result = null;
- try {
- // window.console.log("parsing json result: " + xhr.responseText);
- result = JSON.parse(xhr.responseText);
- } catch (e) {
- result = {
- code: 503, // Service Unavailable
- status: "Service Unavailable",
- error: "Connection error",
- errorCode: 2, // PlayFabErrorCode.ConnectionError
- errorMessage: xhr.responseText
- };
- }
-
- result.CallBackTimeMS = new Date() - startTime;
- result.Request = request;
- result.CustomData = customData;
- return result;
- },
-
- authenticationContext: {
- PlayFabId: null,
- EntityId: null,
- EntityType: null,
- SessionTicket: null,
- EntityToken: null
- },
-
- UpdateAuthenticationContext: function (authenticationContext, result) {
- var authenticationContextUpdates = {};
- if(result.data.PlayFabId !== null) {
- PlayFab._internalSettings.authenticationContext.PlayFabId = result.data.PlayFabId;
- authenticationContextUpdates.PlayFabId = result.data.PlayFabId;
- }
- if(result.data.SessionTicket !== null) {
- PlayFab._internalSettings.authenticationContext.SessionTicket = result.data.SessionTicket;
- authenticationContextUpdates.SessionTicket = result.data.SessionTicket;
- }
- if (result.data.EntityToken !== null) {
- PlayFab._internalSettings.authenticationContext.EntityId = result.data.EntityToken.Entity.Id;
- authenticationContextUpdates.EntityId = result.data.EntityToken.Entity.Id;
- PlayFab._internalSettings.authenticationContext.EntityType = result.data.EntityToken.Entity.Type;
- authenticationContextUpdates.EntityType = result.data.EntityToken.Entity.Type;
- PlayFab._internalSettings.authenticationContext.EntityToken = result.data.EntityToken.EntityToken;
- authenticationContextUpdates.EntityToken = result.data.EntityToken.EntityToken;
- }
- // Update the authenticationContext with values from the result
- authenticationContext = Object.assign(authenticationContext, authenticationContextUpdates);
- return authenticationContext;
- },
-
- AuthInfoMap: {
- "X-EntityToken": {
- authAttr: "entityToken",
- authError: "errorEntityToken"
- },
- "X-Authorization": {
- authAttr: "sessionTicket",
- authError: "errorLoggedIn"
- },
- "X-SecretKey": {
- authAttr: "developerSecretKey",
- authError: "errorSecretKey"
- }
- },
-
- GetAuthInfo: function (request, authKey) {
- // Use the most-recently saved authKey, unless one was provided in the request via the AuthenticationContext
- var authError = PlayFab._internalSettings.AuthInfoMap[authKey].authError;
- var authAttr = PlayFab._internalSettings.AuthInfoMap[authKey].authAttr;
- var defaultAuthValue = null;
- if (authAttr === "entityToken")
- defaultAuthValue = PlayFab._internalSettings.entityToken;
- else if (authAttr === "sessionTicket")
- defaultAuthValue = PlayFab._internalSettings.sessionTicket;
- else if (authAttr === "developerSecretKey")
- defaultAuthValue = PlayFab.settings.developerSecretKey;
- var authValue = request.AuthenticationContext ? request.AuthenticationContext[authAttr] : defaultAuthValue;
- return {"authKey": authKey, "authValue": authValue, "authError": authError};
- },
-
- ExecuteRequestWrapper: function (apiURL, request, authKey, callback, customData, extraHeaders) {
- var authValue = null;
- if (authKey !== null){
- var authInfo = PlayFab._internalSettings.GetAuthInfo(request, authKey=authKey);
- var authKey = authInfo.authKey, authValue = authInfo.authValue, authError = authInfo.authError;
-
- if (!authValue) throw authError;
- }
- return PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + apiURL, request, authKey, authValue, callback, customData, extraHeaders);
- }
- }
-}
-
-PlayFab.buildIdentifier = "jbuild_javascriptsdk__sdk-genericslave-1_2";
-PlayFab.sdkVersion = "1.65.200518";
-PlayFab.GenerateErrorReport = function (error) {
- if (error == null)
- return "";
- var fullErrors = error.errorMessage;
- for (var paramName in error.errorDetails)
- for (var msgIdx in error.errorDetails[paramName])
- fullErrors += "\n" + paramName + ": " + error.errorDetails[paramName][msgIdx];
- return fullErrors;
-};
-
-PlayFab.MatchmakerApi = {
- ForgetAllCredentials: function () {
- PlayFab._internalSettings.sessionTicket = null;
- PlayFab._internalSettings.entityToken = null;
- },
-
- AuthUser: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Matchmaker/AuthUser", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- PlayerJoined: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Matchmaker/PlayerJoined", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- PlayerLeft: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Matchmaker/PlayerLeft", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- StartGame: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Matchmaker/StartGame", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- UserInfo: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Matchmaker/UserInfo", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-};
-
-var PlayFabMatchmakerSDK = PlayFab.MatchmakerApi;
-
diff --git a/PlayFabSdk/src/PlayFab/PlayFabMultiplayerApi.js b/PlayFabSdk/src/PlayFab/PlayFabMultiplayerApi.js
deleted file mode 100644
index 64b81cd2..00000000
--- a/PlayFabSdk/src/PlayFab/PlayFabMultiplayerApi.js
+++ /dev/null
@@ -1,497 +0,0 @@
-///
-
-var PlayFab = typeof PlayFab != "undefined" ? PlayFab : {};
-
-if(!PlayFab.settings) {
- PlayFab.settings = {
- titleId: null, // You must set this value for PlayFabSdk to work properly (Found in the Game Manager for your title, at the PlayFab Website)
- developerSecretKey: null, // For security reasons you must never expose this value to the client or players - You must set this value for Server-APIs to work properly (Found in the Game Manager for your title, at the PlayFab Website)
- advertisingIdType: null,
- advertisingIdValue: null,
- GlobalHeaderInjection: null,
-
- // disableAdvertising is provided for completeness, but changing it is not suggested
- // Disabling this may prevent your advertising-related PlayFab marketplace partners from working correctly
- disableAdvertising: false,
- AD_TYPE_IDFA: "Idfa",
- AD_TYPE_ANDROID_ID: "Adid"
- }
-}
-
-if(!PlayFab._internalSettings) {
- PlayFab._internalSettings = {
- entityToken: null,
- sdkVersion: "1.65.200518",
- requestGetParams: {
- sdk: "JavaScriptSDK-1.65.200518"
- },
- sessionTicket: null,
- verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
- productionServerUrl: ".playfabapi.com",
- errorTitleId: "Must be have PlayFab.settings.titleId set to call this method",
- errorLoggedIn: "Must be logged in to call this method",
- errorEntityToken: "You must successfully call GetEntityToken before calling this",
- errorSecretKey: "Must have PlayFab.settings.developerSecretKey set to call this method",
-
- GetServerUrl: function () {
- if (!(PlayFab._internalSettings.productionServerUrl.substring(0, 4) === "http")) {
- if (PlayFab._internalSettings.verticalName) {
- return "https://" + PlayFab._internalSettings.verticalName + PlayFab._internalSettings.productionServerUrl;
- } else {
- return "https://" + PlayFab.settings.titleId + PlayFab._internalSettings.productionServerUrl;
- }
- } else {
- return PlayFab._internalSettings.productionServerUrl;
- }
- },
-
- InjectHeaders: function (xhr, headersObj) {
- if (!headersObj)
- return;
-
- for (var headerKey in headersObj)
- {
- try {
- xhr.setRequestHeader(gHeaderKey, headersObj[headerKey]);
- } catch (e) {
- console.log("Failed to append header: " + headerKey + " = " + headersObj[headerKey] + "Error: " + e);
- }
- }
- },
-
- ExecuteRequest: function (url, request, authkey, authValue, callback, customData, extraHeaders) {
- var resultPromise = new Promise(function (resolve, reject) {
- if (callback != null && typeof (callback) !== "function")
- throw "Callback must be null or a function";
-
- if (request == null)
- request = {};
-
- var startTime = new Date();
- var requestBody = JSON.stringify(request);
-
- var urlArr = [url];
- var getParams = PlayFab._internalSettings.requestGetParams;
- if (getParams != null) {
- var firstParam = true;
- for (var key in getParams) {
- if (firstParam) {
- urlArr.push("?");
- firstParam = false;
- } else {
- urlArr.push("&");
- }
- urlArr.push(key);
- urlArr.push("=");
- urlArr.push(getParams[key]);
- }
- }
-
- var completeUrl = urlArr.join("");
-
- var xhr = new XMLHttpRequest();
- // window.console.log("URL: " + completeUrl);
- xhr.open("POST", completeUrl, true);
-
- xhr.setRequestHeader("Content-Type", "application/json");
- xhr.setRequestHeader("X-PlayFabSDK", "JavaScriptSDK-" + PlayFab._internalSettings.sdkVersion);
- if (authkey != null)
- xhr.setRequestHeader(authkey, authValue);
- PlayFab._internalSettings.InjectHeaders(xhr, PlayFab.settings.GlobalHeaderInjection);
- PlayFab._internalSettings.InjectHeaders(xhr, extraHeaders);
-
- xhr.onloadend = function () {
- if (callback == null)
- return;
-
- var result = PlayFab._internalSettings.GetPlayFabResponse(request, xhr, startTime, customData);
- if (result.code === 200) {
- callback(result, null);
- } else {
- callback(null, result);
- }
- }
-
- xhr.onerror = function () {
- if (callback == null)
- return;
-
- var result = PlayFab._internalSettings.GetPlayFabResponse(request, xhr, startTime, customData);
- callback(null, result);
- }
-
- xhr.send(requestBody);
- xhr.onreadystatechange = function () {
- if (this.readyState === 4) {
- var xhrResult = PlayFab._internalSettings.GetPlayFabResponse(request, this, startTime, customData);
- if (this.status === 200) {
- resolve(xhrResult);
- } else {
- reject(xhrResult);
- }
- }
- };
- });
- // Return a Promise so that calls to various API methods can be handled asynchronously
- return resultPromise;
- },
-
- GetPlayFabResponse: function(request, xhr, startTime, customData) {
- var result = null;
- try {
- // window.console.log("parsing json result: " + xhr.responseText);
- result = JSON.parse(xhr.responseText);
- } catch (e) {
- result = {
- code: 503, // Service Unavailable
- status: "Service Unavailable",
- error: "Connection error",
- errorCode: 2, // PlayFabErrorCode.ConnectionError
- errorMessage: xhr.responseText
- };
- }
-
- result.CallBackTimeMS = new Date() - startTime;
- result.Request = request;
- result.CustomData = customData;
- return result;
- },
-
- authenticationContext: {
- PlayFabId: null,
- EntityId: null,
- EntityType: null,
- SessionTicket: null,
- EntityToken: null
- },
-
- UpdateAuthenticationContext: function (authenticationContext, result) {
- var authenticationContextUpdates = {};
- if(result.data.PlayFabId !== null) {
- PlayFab._internalSettings.authenticationContext.PlayFabId = result.data.PlayFabId;
- authenticationContextUpdates.PlayFabId = result.data.PlayFabId;
- }
- if(result.data.SessionTicket !== null) {
- PlayFab._internalSettings.authenticationContext.SessionTicket = result.data.SessionTicket;
- authenticationContextUpdates.SessionTicket = result.data.SessionTicket;
- }
- if (result.data.EntityToken !== null) {
- PlayFab._internalSettings.authenticationContext.EntityId = result.data.EntityToken.Entity.Id;
- authenticationContextUpdates.EntityId = result.data.EntityToken.Entity.Id;
- PlayFab._internalSettings.authenticationContext.EntityType = result.data.EntityToken.Entity.Type;
- authenticationContextUpdates.EntityType = result.data.EntityToken.Entity.Type;
- PlayFab._internalSettings.authenticationContext.EntityToken = result.data.EntityToken.EntityToken;
- authenticationContextUpdates.EntityToken = result.data.EntityToken.EntityToken;
- }
- // Update the authenticationContext with values from the result
- authenticationContext = Object.assign(authenticationContext, authenticationContextUpdates);
- return authenticationContext;
- },
-
- AuthInfoMap: {
- "X-EntityToken": {
- authAttr: "entityToken",
- authError: "errorEntityToken"
- },
- "X-Authorization": {
- authAttr: "sessionTicket",
- authError: "errorLoggedIn"
- },
- "X-SecretKey": {
- authAttr: "developerSecretKey",
- authError: "errorSecretKey"
- }
- },
-
- GetAuthInfo: function (request, authKey) {
- // Use the most-recently saved authKey, unless one was provided in the request via the AuthenticationContext
- var authError = PlayFab._internalSettings.AuthInfoMap[authKey].authError;
- var authAttr = PlayFab._internalSettings.AuthInfoMap[authKey].authAttr;
- var defaultAuthValue = null;
- if (authAttr === "entityToken")
- defaultAuthValue = PlayFab._internalSettings.entityToken;
- else if (authAttr === "sessionTicket")
- defaultAuthValue = PlayFab._internalSettings.sessionTicket;
- else if (authAttr === "developerSecretKey")
- defaultAuthValue = PlayFab.settings.developerSecretKey;
- var authValue = request.AuthenticationContext ? request.AuthenticationContext[authAttr] : defaultAuthValue;
- return {"authKey": authKey, "authValue": authValue, "authError": authError};
- },
-
- ExecuteRequestWrapper: function (apiURL, request, authKey, callback, customData, extraHeaders) {
- var authValue = null;
- if (authKey !== null){
- var authInfo = PlayFab._internalSettings.GetAuthInfo(request, authKey=authKey);
- var authKey = authInfo.authKey, authValue = authInfo.authValue, authError = authInfo.authError;
-
- if (!authValue) throw authError;
- }
- return PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + apiURL, request, authKey, authValue, callback, customData, extraHeaders);
- }
- }
-}
-
-PlayFab.buildIdentifier = "jbuild_javascriptsdk__sdk-genericslave-1_2";
-PlayFab.sdkVersion = "1.65.200518";
-PlayFab.GenerateErrorReport = function (error) {
- if (error == null)
- return "";
- var fullErrors = error.errorMessage;
- for (var paramName in error.errorDetails)
- for (var msgIdx in error.errorDetails[paramName])
- fullErrors += "\n" + paramName + ": " + error.errorDetails[paramName][msgIdx];
- return fullErrors;
-};
-
-PlayFab.MultiplayerApi = {
- ForgetAllCredentials: function () {
- PlayFab._internalSettings.sessionTicket = null;
- PlayFab._internalSettings.entityToken = null;
- },
-
- CancelAllMatchmakingTicketsForPlayer: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Match/CancelAllMatchmakingTicketsForPlayer", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- CancelAllServerBackfillTicketsForPlayer: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Match/CancelAllServerBackfillTicketsForPlayer", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- CancelMatchmakingTicket: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Match/CancelMatchmakingTicket", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- CancelServerBackfillTicket: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Match/CancelServerBackfillTicket", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- CreateBuildAlias: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/MultiplayerServer/CreateBuildAlias", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- CreateBuildWithCustomContainer: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/MultiplayerServer/CreateBuildWithCustomContainer", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- CreateBuildWithManagedContainer: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/MultiplayerServer/CreateBuildWithManagedContainer", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- CreateMatchmakingTicket: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Match/CreateMatchmakingTicket", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- CreateRemoteUser: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/MultiplayerServer/CreateRemoteUser", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- CreateServerBackfillTicket: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Match/CreateServerBackfillTicket", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- CreateServerMatchmakingTicket: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Match/CreateServerMatchmakingTicket", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- DeleteAsset: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/MultiplayerServer/DeleteAsset", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- DeleteBuild: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/MultiplayerServer/DeleteBuild", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- DeleteBuildAlias: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/MultiplayerServer/DeleteBuildAlias", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- DeleteBuildRegion: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/MultiplayerServer/DeleteBuildRegion", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- DeleteCertificate: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/MultiplayerServer/DeleteCertificate", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- DeleteContainerImageRepository: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/MultiplayerServer/DeleteContainerImageRepository", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- DeleteRemoteUser: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/MultiplayerServer/DeleteRemoteUser", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- EnableMultiplayerServersForTitle: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/MultiplayerServer/EnableMultiplayerServersForTitle", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- GetAssetUploadUrl: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/MultiplayerServer/GetAssetUploadUrl", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- GetBuild: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/MultiplayerServer/GetBuild", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- GetBuildAlias: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/MultiplayerServer/GetBuildAlias", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- GetContainerRegistryCredentials: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/MultiplayerServer/GetContainerRegistryCredentials", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- GetMatch: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Match/GetMatch", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- GetMatchmakingQueue: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Match/GetMatchmakingQueue", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- GetMatchmakingTicket: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Match/GetMatchmakingTicket", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- GetMultiplayerServerDetails: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/MultiplayerServer/GetMultiplayerServerDetails", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- GetMultiplayerServerLogs: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/MultiplayerServer/GetMultiplayerServerLogs", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- GetMultiplayerSessionLogsBySessionId: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/MultiplayerServer/GetMultiplayerSessionLogsBySessionId", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- GetQueueStatistics: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Match/GetQueueStatistics", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- GetRemoteLoginEndpoint: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/MultiplayerServer/GetRemoteLoginEndpoint", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- GetServerBackfillTicket: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Match/GetServerBackfillTicket", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- GetTitleEnabledForMultiplayerServersStatus: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/MultiplayerServer/GetTitleEnabledForMultiplayerServersStatus", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- GetTitleMultiplayerServersQuotas: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/MultiplayerServer/GetTitleMultiplayerServersQuotas", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- JoinMatchmakingTicket: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Match/JoinMatchmakingTicket", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- ListArchivedMultiplayerServers: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/MultiplayerServer/ListArchivedMultiplayerServers", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- ListAssetSummaries: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/MultiplayerServer/ListAssetSummaries", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- ListBuildAliases: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/MultiplayerServer/ListBuildAliases", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- ListBuildSummaries: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/MultiplayerServer/ListBuildSummaries", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- ListCertificateSummaries: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/MultiplayerServer/ListCertificateSummaries", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- ListContainerImages: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/MultiplayerServer/ListContainerImages", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- ListContainerImageTags: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/MultiplayerServer/ListContainerImageTags", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- ListMatchmakingQueues: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Match/ListMatchmakingQueues", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- ListMatchmakingTicketsForPlayer: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Match/ListMatchmakingTicketsForPlayer", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- ListMultiplayerServers: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/MultiplayerServer/ListMultiplayerServers", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- ListPartyQosServers: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/MultiplayerServer/ListPartyQosServers", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- /**
- * @deprecated Please use ListQosServersForTitle instead.
- */
- ListQosServers: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/MultiplayerServer/ListQosServers", request, null, callback, customData, extraHeaders);
- },
-
- ListQosServersForTitle: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/MultiplayerServer/ListQosServersForTitle", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- ListServerBackfillTicketsForPlayer: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Match/ListServerBackfillTicketsForPlayer", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- ListVirtualMachineSummaries: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/MultiplayerServer/ListVirtualMachineSummaries", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- RemoveMatchmakingQueue: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Match/RemoveMatchmakingQueue", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- RequestMultiplayerServer: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/MultiplayerServer/RequestMultiplayerServer", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- RolloverContainerRegistryCredentials: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/MultiplayerServer/RolloverContainerRegistryCredentials", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- SetMatchmakingQueue: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Match/SetMatchmakingQueue", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- ShutdownMultiplayerServer: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/MultiplayerServer/ShutdownMultiplayerServer", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- UntagContainerImage: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/MultiplayerServer/UntagContainerImage", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- UpdateBuildAlias: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/MultiplayerServer/UpdateBuildAlias", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- UpdateBuildRegion: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/MultiplayerServer/UpdateBuildRegion", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- UpdateBuildRegions: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/MultiplayerServer/UpdateBuildRegions", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- UploadCertificate: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/MultiplayerServer/UploadCertificate", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-};
-
-var PlayFabMultiplayerSDK = PlayFab.MultiplayerApi;
-
diff --git a/PlayFabSdk/src/PlayFab/PlayFabProfilesApi.js b/PlayFabSdk/src/PlayFab/PlayFabProfilesApi.js
deleted file mode 100644
index 14d102d1..00000000
--- a/PlayFabSdk/src/PlayFab/PlayFabProfilesApi.js
+++ /dev/null
@@ -1,282 +0,0 @@
-///
-
-var PlayFab = typeof PlayFab != "undefined" ? PlayFab : {};
-
-if(!PlayFab.settings) {
- PlayFab.settings = {
- titleId: null, // You must set this value for PlayFabSdk to work properly (Found in the Game Manager for your title, at the PlayFab Website)
- developerSecretKey: null, // For security reasons you must never expose this value to the client or players - You must set this value for Server-APIs to work properly (Found in the Game Manager for your title, at the PlayFab Website)
- advertisingIdType: null,
- advertisingIdValue: null,
- GlobalHeaderInjection: null,
-
- // disableAdvertising is provided for completeness, but changing it is not suggested
- // Disabling this may prevent your advertising-related PlayFab marketplace partners from working correctly
- disableAdvertising: false,
- AD_TYPE_IDFA: "Idfa",
- AD_TYPE_ANDROID_ID: "Adid"
- }
-}
-
-if(!PlayFab._internalSettings) {
- PlayFab._internalSettings = {
- entityToken: null,
- sdkVersion: "1.65.200518",
- requestGetParams: {
- sdk: "JavaScriptSDK-1.65.200518"
- },
- sessionTicket: null,
- verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
- productionServerUrl: ".playfabapi.com",
- errorTitleId: "Must be have PlayFab.settings.titleId set to call this method",
- errorLoggedIn: "Must be logged in to call this method",
- errorEntityToken: "You must successfully call GetEntityToken before calling this",
- errorSecretKey: "Must have PlayFab.settings.developerSecretKey set to call this method",
-
- GetServerUrl: function () {
- if (!(PlayFab._internalSettings.productionServerUrl.substring(0, 4) === "http")) {
- if (PlayFab._internalSettings.verticalName) {
- return "https://" + PlayFab._internalSettings.verticalName + PlayFab._internalSettings.productionServerUrl;
- } else {
- return "https://" + PlayFab.settings.titleId + PlayFab._internalSettings.productionServerUrl;
- }
- } else {
- return PlayFab._internalSettings.productionServerUrl;
- }
- },
-
- InjectHeaders: function (xhr, headersObj) {
- if (!headersObj)
- return;
-
- for (var headerKey in headersObj)
- {
- try {
- xhr.setRequestHeader(gHeaderKey, headersObj[headerKey]);
- } catch (e) {
- console.log("Failed to append header: " + headerKey + " = " + headersObj[headerKey] + "Error: " + e);
- }
- }
- },
-
- ExecuteRequest: function (url, request, authkey, authValue, callback, customData, extraHeaders) {
- var resultPromise = new Promise(function (resolve, reject) {
- if (callback != null && typeof (callback) !== "function")
- throw "Callback must be null or a function";
-
- if (request == null)
- request = {};
-
- var startTime = new Date();
- var requestBody = JSON.stringify(request);
-
- var urlArr = [url];
- var getParams = PlayFab._internalSettings.requestGetParams;
- if (getParams != null) {
- var firstParam = true;
- for (var key in getParams) {
- if (firstParam) {
- urlArr.push("?");
- firstParam = false;
- } else {
- urlArr.push("&");
- }
- urlArr.push(key);
- urlArr.push("=");
- urlArr.push(getParams[key]);
- }
- }
-
- var completeUrl = urlArr.join("");
-
- var xhr = new XMLHttpRequest();
- // window.console.log("URL: " + completeUrl);
- xhr.open("POST", completeUrl, true);
-
- xhr.setRequestHeader("Content-Type", "application/json");
- xhr.setRequestHeader("X-PlayFabSDK", "JavaScriptSDK-" + PlayFab._internalSettings.sdkVersion);
- if (authkey != null)
- xhr.setRequestHeader(authkey, authValue);
- PlayFab._internalSettings.InjectHeaders(xhr, PlayFab.settings.GlobalHeaderInjection);
- PlayFab._internalSettings.InjectHeaders(xhr, extraHeaders);
-
- xhr.onloadend = function () {
- if (callback == null)
- return;
-
- var result = PlayFab._internalSettings.GetPlayFabResponse(request, xhr, startTime, customData);
- if (result.code === 200) {
- callback(result, null);
- } else {
- callback(null, result);
- }
- }
-
- xhr.onerror = function () {
- if (callback == null)
- return;
-
- var result = PlayFab._internalSettings.GetPlayFabResponse(request, xhr, startTime, customData);
- callback(null, result);
- }
-
- xhr.send(requestBody);
- xhr.onreadystatechange = function () {
- if (this.readyState === 4) {
- var xhrResult = PlayFab._internalSettings.GetPlayFabResponse(request, this, startTime, customData);
- if (this.status === 200) {
- resolve(xhrResult);
- } else {
- reject(xhrResult);
- }
- }
- };
- });
- // Return a Promise so that calls to various API methods can be handled asynchronously
- return resultPromise;
- },
-
- GetPlayFabResponse: function(request, xhr, startTime, customData) {
- var result = null;
- try {
- // window.console.log("parsing json result: " + xhr.responseText);
- result = JSON.parse(xhr.responseText);
- } catch (e) {
- result = {
- code: 503, // Service Unavailable
- status: "Service Unavailable",
- error: "Connection error",
- errorCode: 2, // PlayFabErrorCode.ConnectionError
- errorMessage: xhr.responseText
- };
- }
-
- result.CallBackTimeMS = new Date() - startTime;
- result.Request = request;
- result.CustomData = customData;
- return result;
- },
-
- authenticationContext: {
- PlayFabId: null,
- EntityId: null,
- EntityType: null,
- SessionTicket: null,
- EntityToken: null
- },
-
- UpdateAuthenticationContext: function (authenticationContext, result) {
- var authenticationContextUpdates = {};
- if(result.data.PlayFabId !== null) {
- PlayFab._internalSettings.authenticationContext.PlayFabId = result.data.PlayFabId;
- authenticationContextUpdates.PlayFabId = result.data.PlayFabId;
- }
- if(result.data.SessionTicket !== null) {
- PlayFab._internalSettings.authenticationContext.SessionTicket = result.data.SessionTicket;
- authenticationContextUpdates.SessionTicket = result.data.SessionTicket;
- }
- if (result.data.EntityToken !== null) {
- PlayFab._internalSettings.authenticationContext.EntityId = result.data.EntityToken.Entity.Id;
- authenticationContextUpdates.EntityId = result.data.EntityToken.Entity.Id;
- PlayFab._internalSettings.authenticationContext.EntityType = result.data.EntityToken.Entity.Type;
- authenticationContextUpdates.EntityType = result.data.EntityToken.Entity.Type;
- PlayFab._internalSettings.authenticationContext.EntityToken = result.data.EntityToken.EntityToken;
- authenticationContextUpdates.EntityToken = result.data.EntityToken.EntityToken;
- }
- // Update the authenticationContext with values from the result
- authenticationContext = Object.assign(authenticationContext, authenticationContextUpdates);
- return authenticationContext;
- },
-
- AuthInfoMap: {
- "X-EntityToken": {
- authAttr: "entityToken",
- authError: "errorEntityToken"
- },
- "X-Authorization": {
- authAttr: "sessionTicket",
- authError: "errorLoggedIn"
- },
- "X-SecretKey": {
- authAttr: "developerSecretKey",
- authError: "errorSecretKey"
- }
- },
-
- GetAuthInfo: function (request, authKey) {
- // Use the most-recently saved authKey, unless one was provided in the request via the AuthenticationContext
- var authError = PlayFab._internalSettings.AuthInfoMap[authKey].authError;
- var authAttr = PlayFab._internalSettings.AuthInfoMap[authKey].authAttr;
- var defaultAuthValue = null;
- if (authAttr === "entityToken")
- defaultAuthValue = PlayFab._internalSettings.entityToken;
- else if (authAttr === "sessionTicket")
- defaultAuthValue = PlayFab._internalSettings.sessionTicket;
- else if (authAttr === "developerSecretKey")
- defaultAuthValue = PlayFab.settings.developerSecretKey;
- var authValue = request.AuthenticationContext ? request.AuthenticationContext[authAttr] : defaultAuthValue;
- return {"authKey": authKey, "authValue": authValue, "authError": authError};
- },
-
- ExecuteRequestWrapper: function (apiURL, request, authKey, callback, customData, extraHeaders) {
- var authValue = null;
- if (authKey !== null){
- var authInfo = PlayFab._internalSettings.GetAuthInfo(request, authKey=authKey);
- var authKey = authInfo.authKey, authValue = authInfo.authValue, authError = authInfo.authError;
-
- if (!authValue) throw authError;
- }
- return PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + apiURL, request, authKey, authValue, callback, customData, extraHeaders);
- }
- }
-}
-
-PlayFab.buildIdentifier = "jbuild_javascriptsdk__sdk-genericslave-1_2";
-PlayFab.sdkVersion = "1.65.200518";
-PlayFab.GenerateErrorReport = function (error) {
- if (error == null)
- return "";
- var fullErrors = error.errorMessage;
- for (var paramName in error.errorDetails)
- for (var msgIdx in error.errorDetails[paramName])
- fullErrors += "\n" + paramName + ": " + error.errorDetails[paramName][msgIdx];
- return fullErrors;
-};
-
-PlayFab.ProfilesApi = {
- ForgetAllCredentials: function () {
- PlayFab._internalSettings.sessionTicket = null;
- PlayFab._internalSettings.entityToken = null;
- },
-
- GetGlobalPolicy: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Profile/GetGlobalPolicy", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- GetProfile: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Profile/GetProfile", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- GetProfiles: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Profile/GetProfiles", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- GetTitlePlayersFromMasterPlayerAccountIds: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Profile/GetTitlePlayersFromMasterPlayerAccountIds", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- SetGlobalPolicy: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Profile/SetGlobalPolicy", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- SetProfileLanguage: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Profile/SetProfileLanguage", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-
- SetProfilePolicy: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Profile/SetProfilePolicy", request, "X-EntityToken", callback, customData, extraHeaders);
- },
-};
-
-var PlayFabProfilesSDK = PlayFab.ProfilesApi;
-
diff --git a/PlayFabSdk/src/PlayFab/PlayFabServerApi.js b/PlayFabSdk/src/PlayFab/PlayFabServerApi.js
deleted file mode 100644
index 049d85b5..00000000
--- a/PlayFabSdk/src/PlayFab/PlayFabServerApi.js
+++ /dev/null
@@ -1,782 +0,0 @@
-///
-
-var PlayFab = typeof PlayFab != "undefined" ? PlayFab : {};
-
-if(!PlayFab.settings) {
- PlayFab.settings = {
- titleId: null, // You must set this value for PlayFabSdk to work properly (Found in the Game Manager for your title, at the PlayFab Website)
- developerSecretKey: null, // For security reasons you must never expose this value to the client or players - You must set this value for Server-APIs to work properly (Found in the Game Manager for your title, at the PlayFab Website)
- advertisingIdType: null,
- advertisingIdValue: null,
- GlobalHeaderInjection: null,
-
- // disableAdvertising is provided for completeness, but changing it is not suggested
- // Disabling this may prevent your advertising-related PlayFab marketplace partners from working correctly
- disableAdvertising: false,
- AD_TYPE_IDFA: "Idfa",
- AD_TYPE_ANDROID_ID: "Adid"
- }
-}
-
-if(!PlayFab._internalSettings) {
- PlayFab._internalSettings = {
- entityToken: null,
- sdkVersion: "1.65.200518",
- requestGetParams: {
- sdk: "JavaScriptSDK-1.65.200518"
- },
- sessionTicket: null,
- verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
- productionServerUrl: ".playfabapi.com",
- errorTitleId: "Must be have PlayFab.settings.titleId set to call this method",
- errorLoggedIn: "Must be logged in to call this method",
- errorEntityToken: "You must successfully call GetEntityToken before calling this",
- errorSecretKey: "Must have PlayFab.settings.developerSecretKey set to call this method",
-
- GetServerUrl: function () {
- if (!(PlayFab._internalSettings.productionServerUrl.substring(0, 4) === "http")) {
- if (PlayFab._internalSettings.verticalName) {
- return "https://" + PlayFab._internalSettings.verticalName + PlayFab._internalSettings.productionServerUrl;
- } else {
- return "https://" + PlayFab.settings.titleId + PlayFab._internalSettings.productionServerUrl;
- }
- } else {
- return PlayFab._internalSettings.productionServerUrl;
- }
- },
-
- InjectHeaders: function (xhr, headersObj) {
- if (!headersObj)
- return;
-
- for (var headerKey in headersObj)
- {
- try {
- xhr.setRequestHeader(gHeaderKey, headersObj[headerKey]);
- } catch (e) {
- console.log("Failed to append header: " + headerKey + " = " + headersObj[headerKey] + "Error: " + e);
- }
- }
- },
-
- ExecuteRequest: function (url, request, authkey, authValue, callback, customData, extraHeaders) {
- var resultPromise = new Promise(function (resolve, reject) {
- if (callback != null && typeof (callback) !== "function")
- throw "Callback must be null or a function";
-
- if (request == null)
- request = {};
-
- var startTime = new Date();
- var requestBody = JSON.stringify(request);
-
- var urlArr = [url];
- var getParams = PlayFab._internalSettings.requestGetParams;
- if (getParams != null) {
- var firstParam = true;
- for (var key in getParams) {
- if (firstParam) {
- urlArr.push("?");
- firstParam = false;
- } else {
- urlArr.push("&");
- }
- urlArr.push(key);
- urlArr.push("=");
- urlArr.push(getParams[key]);
- }
- }
-
- var completeUrl = urlArr.join("");
-
- var xhr = new XMLHttpRequest();
- // window.console.log("URL: " + completeUrl);
- xhr.open("POST", completeUrl, true);
-
- xhr.setRequestHeader("Content-Type", "application/json");
- xhr.setRequestHeader("X-PlayFabSDK", "JavaScriptSDK-" + PlayFab._internalSettings.sdkVersion);
- if (authkey != null)
- xhr.setRequestHeader(authkey, authValue);
- PlayFab._internalSettings.InjectHeaders(xhr, PlayFab.settings.GlobalHeaderInjection);
- PlayFab._internalSettings.InjectHeaders(xhr, extraHeaders);
-
- xhr.onloadend = function () {
- if (callback == null)
- return;
-
- var result = PlayFab._internalSettings.GetPlayFabResponse(request, xhr, startTime, customData);
- if (result.code === 200) {
- callback(result, null);
- } else {
- callback(null, result);
- }
- }
-
- xhr.onerror = function () {
- if (callback == null)
- return;
-
- var result = PlayFab._internalSettings.GetPlayFabResponse(request, xhr, startTime, customData);
- callback(null, result);
- }
-
- xhr.send(requestBody);
- xhr.onreadystatechange = function () {
- if (this.readyState === 4) {
- var xhrResult = PlayFab._internalSettings.GetPlayFabResponse(request, this, startTime, customData);
- if (this.status === 200) {
- resolve(xhrResult);
- } else {
- reject(xhrResult);
- }
- }
- };
- });
- // Return a Promise so that calls to various API methods can be handled asynchronously
- return resultPromise;
- },
-
- GetPlayFabResponse: function(request, xhr, startTime, customData) {
- var result = null;
- try {
- // window.console.log("parsing json result: " + xhr.responseText);
- result = JSON.parse(xhr.responseText);
- } catch (e) {
- result = {
- code: 503, // Service Unavailable
- status: "Service Unavailable",
- error: "Connection error",
- errorCode: 2, // PlayFabErrorCode.ConnectionError
- errorMessage: xhr.responseText
- };
- }
-
- result.CallBackTimeMS = new Date() - startTime;
- result.Request = request;
- result.CustomData = customData;
- return result;
- },
-
- authenticationContext: {
- PlayFabId: null,
- EntityId: null,
- EntityType: null,
- SessionTicket: null,
- EntityToken: null
- },
-
- UpdateAuthenticationContext: function (authenticationContext, result) {
- var authenticationContextUpdates = {};
- if(result.data.PlayFabId !== null) {
- PlayFab._internalSettings.authenticationContext.PlayFabId = result.data.PlayFabId;
- authenticationContextUpdates.PlayFabId = result.data.PlayFabId;
- }
- if(result.data.SessionTicket !== null) {
- PlayFab._internalSettings.authenticationContext.SessionTicket = result.data.SessionTicket;
- authenticationContextUpdates.SessionTicket = result.data.SessionTicket;
- }
- if (result.data.EntityToken !== null) {
- PlayFab._internalSettings.authenticationContext.EntityId = result.data.EntityToken.Entity.Id;
- authenticationContextUpdates.EntityId = result.data.EntityToken.Entity.Id;
- PlayFab._internalSettings.authenticationContext.EntityType = result.data.EntityToken.Entity.Type;
- authenticationContextUpdates.EntityType = result.data.EntityToken.Entity.Type;
- PlayFab._internalSettings.authenticationContext.EntityToken = result.data.EntityToken.EntityToken;
- authenticationContextUpdates.EntityToken = result.data.EntityToken.EntityToken;
- }
- // Update the authenticationContext with values from the result
- authenticationContext = Object.assign(authenticationContext, authenticationContextUpdates);
- return authenticationContext;
- },
-
- AuthInfoMap: {
- "X-EntityToken": {
- authAttr: "entityToken",
- authError: "errorEntityToken"
- },
- "X-Authorization": {
- authAttr: "sessionTicket",
- authError: "errorLoggedIn"
- },
- "X-SecretKey": {
- authAttr: "developerSecretKey",
- authError: "errorSecretKey"
- }
- },
-
- GetAuthInfo: function (request, authKey) {
- // Use the most-recently saved authKey, unless one was provided in the request via the AuthenticationContext
- var authError = PlayFab._internalSettings.AuthInfoMap[authKey].authError;
- var authAttr = PlayFab._internalSettings.AuthInfoMap[authKey].authAttr;
- var defaultAuthValue = null;
- if (authAttr === "entityToken")
- defaultAuthValue = PlayFab._internalSettings.entityToken;
- else if (authAttr === "sessionTicket")
- defaultAuthValue = PlayFab._internalSettings.sessionTicket;
- else if (authAttr === "developerSecretKey")
- defaultAuthValue = PlayFab.settings.developerSecretKey;
- var authValue = request.AuthenticationContext ? request.AuthenticationContext[authAttr] : defaultAuthValue;
- return {"authKey": authKey, "authValue": authValue, "authError": authError};
- },
-
- ExecuteRequestWrapper: function (apiURL, request, authKey, callback, customData, extraHeaders) {
- var authValue = null;
- if (authKey !== null){
- var authInfo = PlayFab._internalSettings.GetAuthInfo(request, authKey=authKey);
- var authKey = authInfo.authKey, authValue = authInfo.authValue, authError = authInfo.authError;
-
- if (!authValue) throw authError;
- }
- return PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + apiURL, request, authKey, authValue, callback, customData, extraHeaders);
- }
- }
-}
-
-PlayFab.buildIdentifier = "jbuild_javascriptsdk__sdk-genericslave-1_2";
-PlayFab.sdkVersion = "1.65.200518";
-PlayFab.GenerateErrorReport = function (error) {
- if (error == null)
- return "";
- var fullErrors = error.errorMessage;
- for (var paramName in error.errorDetails)
- for (var msgIdx in error.errorDetails[paramName])
- fullErrors += "\n" + paramName + ": " + error.errorDetails[paramName][msgIdx];
- return fullErrors;
-};
-
-PlayFab.ServerApi = {
- ForgetAllCredentials: function () {
- PlayFab._internalSettings.sessionTicket = null;
- PlayFab._internalSettings.entityToken = null;
- },
-
- AddCharacterVirtualCurrency: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/AddCharacterVirtualCurrency", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- AddFriend: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/AddFriend", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- AddGenericID: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/AddGenericID", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- AddPlayerTag: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/AddPlayerTag", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- AddSharedGroupMembers: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/AddSharedGroupMembers", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- AddUserVirtualCurrency: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/AddUserVirtualCurrency", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- AuthenticateSessionTicket: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/AuthenticateSessionTicket", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- AwardSteamAchievement: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/AwardSteamAchievement", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- BanUsers: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/BanUsers", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- ConsumeItem: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/ConsumeItem", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- CreateSharedGroup: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/CreateSharedGroup", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- DeleteCharacterFromUser: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/DeleteCharacterFromUser", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- DeletePlayer: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/DeletePlayer", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- DeletePushNotificationTemplate: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/DeletePushNotificationTemplate", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- DeleteSharedGroup: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/DeleteSharedGroup", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- DeregisterGame: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/DeregisterGame", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- EvaluateRandomResultTable: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/EvaluateRandomResultTable", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- ExecuteCloudScript: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/ExecuteCloudScript", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetAllSegments: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetAllSegments", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetAllUsersCharacters: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetAllUsersCharacters", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetCatalogItems: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetCatalogItems", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetCharacterData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetCharacterData", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetCharacterInternalData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetCharacterInternalData", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetCharacterInventory: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetCharacterInventory", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetCharacterLeaderboard: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetCharacterLeaderboard", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetCharacterReadOnlyData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetCharacterReadOnlyData", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetCharacterStatistics: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetCharacterStatistics", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetContentDownloadUrl: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetContentDownloadUrl", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetFriendLeaderboard: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetFriendLeaderboard", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetFriendsList: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetFriendsList", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetLeaderboard: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetLeaderboard", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetLeaderboardAroundCharacter: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetLeaderboardAroundCharacter", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetLeaderboardAroundUser: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetLeaderboardAroundUser", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetLeaderboardForUserCharacters: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetLeaderboardForUserCharacters", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetPlayerCombinedInfo: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetPlayerCombinedInfo", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetPlayerProfile: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetPlayerProfile", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetPlayerSegments: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetPlayerSegments", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetPlayersInSegment: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetPlayersInSegment", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetPlayerStatistics: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetPlayerStatistics", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetPlayerStatisticVersions: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetPlayerStatisticVersions", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetPlayerTags: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetPlayerTags", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetPlayFabIDsFromFacebookIDs: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetPlayFabIDsFromFacebookIDs", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetPlayFabIDsFromFacebookInstantGamesIds: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetPlayFabIDsFromFacebookInstantGamesIds", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetPlayFabIDsFromGenericIDs: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetPlayFabIDsFromGenericIDs", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetPlayFabIDsFromNintendoSwitchDeviceIds: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetPlayFabIDsFromNintendoSwitchDeviceIds", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetPlayFabIDsFromPSNAccountIDs: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetPlayFabIDsFromPSNAccountIDs", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetPlayFabIDsFromSteamIDs: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetPlayFabIDsFromSteamIDs", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetPlayFabIDsFromXboxLiveIDs: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetPlayFabIDsFromXboxLiveIDs", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetPublisherData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetPublisherData", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetRandomResultTables: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetRandomResultTables", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetServerCustomIDsFromPlayFabIDs: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetServerCustomIDsFromPlayFabIDs", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetSharedGroupData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetSharedGroupData", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetStoreItems: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetStoreItems", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetTime: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetTime", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetTitleData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetTitleData", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetTitleInternalData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetTitleInternalData", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetTitleNews: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetTitleNews", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetUserAccountInfo: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetUserAccountInfo", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetUserBans: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetUserBans", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetUserData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetUserData", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetUserInternalData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetUserInternalData", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetUserInventory: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetUserInventory", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetUserPublisherData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetUserPublisherData", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetUserPublisherInternalData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetUserPublisherInternalData", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetUserPublisherReadOnlyData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetUserPublisherReadOnlyData", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GetUserReadOnlyData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GetUserReadOnlyData", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GrantCharacterToUser: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GrantCharacterToUser", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GrantItemsToCharacter: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GrantItemsToCharacter", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GrantItemsToUser: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GrantItemsToUser", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- GrantItemsToUsers: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/GrantItemsToUsers", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- LinkPSNAccount: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/LinkPSNAccount", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- LinkServerCustomId: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/LinkServerCustomId", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- LinkXboxAccount: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/LinkXboxAccount", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- LoginWithServerCustomId: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/LoginWithServerCustomId", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- LoginWithXbox: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/LoginWithXbox", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- LoginWithXboxId: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/LoginWithXboxId", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- ModifyItemUses: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/ModifyItemUses", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- MoveItemToCharacterFromCharacter: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/MoveItemToCharacterFromCharacter", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- MoveItemToCharacterFromUser: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/MoveItemToCharacterFromUser", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- MoveItemToUserFromCharacter: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/MoveItemToUserFromCharacter", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- NotifyMatchmakerPlayerLeft: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/NotifyMatchmakerPlayerLeft", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- RedeemCoupon: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/RedeemCoupon", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- RedeemMatchmakerTicket: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/RedeemMatchmakerTicket", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- RefreshGameServerInstanceHeartbeat: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/RefreshGameServerInstanceHeartbeat", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- RegisterGame: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/RegisterGame", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- RemoveFriend: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/RemoveFriend", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- RemoveGenericID: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/RemoveGenericID", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- RemovePlayerTag: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/RemovePlayerTag", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- RemoveSharedGroupMembers: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/RemoveSharedGroupMembers", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- ReportPlayer: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/ReportPlayer", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- RevokeAllBansForUser: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/RevokeAllBansForUser", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- RevokeBans: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/RevokeBans", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- RevokeInventoryItem: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/RevokeInventoryItem", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- RevokeInventoryItems: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/RevokeInventoryItems", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- SavePushNotificationTemplate: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/SavePushNotificationTemplate", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- SendCustomAccountRecoveryEmail: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/SendCustomAccountRecoveryEmail", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- SendEmailFromTemplate: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/SendEmailFromTemplate", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- SendPushNotification: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/SendPushNotification", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- SendPushNotificationFromTemplate: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/SendPushNotificationFromTemplate", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- SetFriendTags: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/SetFriendTags", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- SetGameServerInstanceData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/SetGameServerInstanceData", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- SetGameServerInstanceState: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/SetGameServerInstanceState", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- SetGameServerInstanceTags: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/SetGameServerInstanceTags", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- SetPlayerSecret: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/SetPlayerSecret", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- SetPublisherData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/SetPublisherData", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- SetTitleData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/SetTitleData", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- SetTitleInternalData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/SetTitleInternalData", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- SubtractCharacterVirtualCurrency: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/SubtractCharacterVirtualCurrency", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- SubtractUserVirtualCurrency: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/SubtractUserVirtualCurrency", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- UnlinkPSNAccount: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/UnlinkPSNAccount", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- UnlinkServerCustomId: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/UnlinkServerCustomId", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- UnlinkXboxAccount: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/UnlinkXboxAccount", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- UnlockContainerInstance: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/UnlockContainerInstance", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- UnlockContainerItem: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/UnlockContainerItem", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- UpdateAvatarUrl: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/UpdateAvatarUrl", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- UpdateBans: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/UpdateBans", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- UpdateCharacterData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/UpdateCharacterData", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- UpdateCharacterInternalData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/UpdateCharacterInternalData", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- UpdateCharacterReadOnlyData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/UpdateCharacterReadOnlyData", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- UpdateCharacterStatistics: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/UpdateCharacterStatistics", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- UpdatePlayerStatistics: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/UpdatePlayerStatistics", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- UpdateSharedGroupData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/UpdateSharedGroupData", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- UpdateUserData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/UpdateUserData", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- UpdateUserInternalData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/UpdateUserInternalData", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- UpdateUserInventoryItemCustomData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/UpdateUserInventoryItemCustomData", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- UpdateUserPublisherData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/UpdateUserPublisherData", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- UpdateUserPublisherInternalData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/UpdateUserPublisherInternalData", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- UpdateUserPublisherReadOnlyData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/UpdateUserPublisherReadOnlyData", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- UpdateUserReadOnlyData: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/UpdateUserReadOnlyData", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- WriteCharacterEvent: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/WriteCharacterEvent", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- WritePlayerEvent: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/WritePlayerEvent", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-
- WriteTitleEvent: function (request, callback, customData, extraHeaders) {
- return PlayFab._internalSettings.ExecuteRequestWrapper("/Server/WriteTitleEvent", request, "X-SecretKey", callback, customData, extraHeaders);
- },
-};
-
-var PlayFabServerSDK = PlayFab.ServerApi;
-
diff --git a/PlayFabSdk/src/Typings/PlayFab/PlayFabClientApi.d.ts b/PlayFabSdk/src/Typings/PlayFab/PlayFabClientApi.d.ts
index 800307ba..bb6cc9d5 100644
--- a/PlayFabSdk/src/Typings/PlayFab/PlayFabClientApi.d.ts
+++ b/PlayFabSdk/src/Typings/PlayFab/PlayFabClientApi.d.ts
@@ -1,5394 +1,5389 @@
///
+import * as PlayFabModule from './Playfab'
+
+export interface IPlayFabClient {
+ IsClientLoggedIn(): boolean;
+
+ ForgetAllCredentials(): void;
+
+ /**
+ * Accepts an open trade (one that has not yet been accepted or cancelled), if the locally signed-in player is in the
+ * allowed player list for the trade, or it is open to all players. If the call is successful, the offered and accepted
+ * items will be swapped between the two players' inventories.
+ * https://docs.microsoft.com/rest/api/playfab/client/trading/accepttrade
+ */
+ AcceptTrade(request: AcceptTradeRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Adds the PlayFab user, based upon a match against a supplied unique identifier, to the friend list of the local user. At
+ * least one of FriendPlayFabId,FriendUsername,FriendEmail, or FriendTitleDisplayName should be initialized.
+ * https://docs.microsoft.com/rest/api/playfab/client/friend-list-management/addfriend
+ */
+ AddFriend(request: AddFriendRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Adds the specified generic service identifier to the player's PlayFab account. This is designed to allow for a PlayFab
+ * ID lookup of any arbitrary service identifier a title wants to add. This identifier should never be used as
+ * authentication credentials, as the intent is that it is easily accessible by other players.
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/addgenericid
+ */
+ AddGenericID(request: AddGenericIDRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Adds or updates a contact email to the player's profile.
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/addorupdatecontactemail
+ */
+ AddOrUpdateContactEmail(request: AddOrUpdateContactEmailRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Adds users to the set of those able to update both the shared data, as well as the set of users in the group. Only users
+ * in the group can add new members. Shared Groups are designed for sharing data between a very small number of players,
+ * please see our guide: https://docs.microsoft.com/gaming/playfab/features/social/groups/using-shared-group-data
+ * https://docs.microsoft.com/rest/api/playfab/client/shared-group-data/addsharedgroupmembers
+ */
+ AddSharedGroupMembers(request: AddSharedGroupMembersRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Adds playfab username/password auth to an existing account created via an anonymous auth method, e.g. automatic device
+ * ID login.
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/addusernamepassword
+ */
+ AddUsernamePassword(request: AddUsernamePasswordRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Increments the user's balance of the specified virtual currency by the stated amount
+ * https://docs.microsoft.com/rest/api/playfab/client/player-item-management/adduservirtualcurrency
+ */
+ AddUserVirtualCurrency(request: AddUserVirtualCurrencyRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Registers the Android device to receive push notifications
+ * https://docs.microsoft.com/rest/api/playfab/client/platform-specific-methods/androiddevicepushnotificationregistration
+ */
+ AndroidDevicePushNotificationRegistration(request: AndroidDevicePushNotificationRegistrationRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Attributes an install for advertisment.
+ * https://docs.microsoft.com/rest/api/playfab/client/advertising/attributeinstall
+ */
+ AttributeInstall(request: AttributeInstallRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Cancels an open trade (one that has not yet been accepted or cancelled). Note that only the player who created the trade
+ * can cancel it via this API call, to prevent griefing of the trade system (cancelling trades in order to prevent other
+ * players from accepting them, for trades that can be claimed by more than one player).
+ * https://docs.microsoft.com/rest/api/playfab/client/trading/canceltrade
+ */
+ CancelTrade(request: CancelTradeRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Confirms with the payment provider that the purchase was approved (if applicable) and adjusts inventory and virtual
+ * currency balances as appropriate
+ * https://docs.microsoft.com/rest/api/playfab/client/player-item-management/confirmpurchase
+ */
+ ConfirmPurchase(request: ConfirmPurchaseRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Consume uses of a consumable item. When all uses are consumed, it will be removed from the player's inventory.
+ * https://docs.microsoft.com/rest/api/playfab/client/player-item-management/consumeitem
+ */
+ ConsumeItem(request: ConsumeItemRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Checks for any new consumable entitlements. If any are found, they are consumed and added as PlayFab items
+ * https://docs.microsoft.com/rest/api/playfab/client/platform-specific-methods/consumepsnentitlements
+ */
+ ConsumePSNEntitlements(request: ConsumePSNEntitlementsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Grants the player's current entitlements from Xbox Live, consuming all availble items in Xbox and granting them to the
+ * player's PlayFab inventory. This call is idempotent and will not grant previously granted items to the player.
+ * https://docs.microsoft.com/rest/api/playfab/client/platform-specific-methods/consumexboxentitlements
+ */
+ ConsumeXboxEntitlements(request: ConsumeXboxEntitlementsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Requests the creation of a shared group object, containing key/value pairs which may be updated by all members of the
+ * group. Upon creation, the current user will be the only member of the group. Shared Groups are designed for sharing data
+ * between a very small number of players, please see our guide:
+ * https://docs.microsoft.com/gaming/playfab/features/social/groups/using-shared-group-data
+ * https://docs.microsoft.com/rest/api/playfab/client/shared-group-data/createsharedgroup
+ */
+ CreateSharedGroup(request: CreateSharedGroupRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Executes a CloudScript function, with the 'currentPlayerId' set to the PlayFab ID of the authenticated player.
+ * https://docs.microsoft.com/rest/api/playfab/client/server-side-cloud-script/executecloudscript
+ */
+ ExecuteCloudScript(request: ExecuteCloudScriptRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Retrieves the user's PlayFab account details
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/getaccountinfo
+ */
+ GetAccountInfo(request: GetAccountInfoRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Returns a list of ad placements and a reward for each
+ * https://docs.microsoft.com/rest/api/playfab/client/advertising/getadplacements
+ */
+ GetAdPlacements(request: GetAdPlacementsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Lists all of the characters that belong to a specific user. CharacterIds are not globally unique; characterId must be
+ * evaluated with the parent PlayFabId to guarantee uniqueness.
+ * https://docs.microsoft.com/rest/api/playfab/client/characters/getalluserscharacters
+ */
+ GetAllUsersCharacters(request: ListUsersCharactersRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Retrieves the specified version of the title's catalog of virtual goods, including all defined properties
+ * https://docs.microsoft.com/rest/api/playfab/client/title-wide-data-management/getcatalogitems
+ */
+ GetCatalogItems(request: GetCatalogItemsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Retrieves the title-specific custom data for the character which is readable and writable by the client
+ * https://docs.microsoft.com/rest/api/playfab/client/character-data/getcharacterdata
+ */
+ GetCharacterData(request: GetCharacterDataRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Retrieves the specified character's current inventory of virtual goods
+ * https://docs.microsoft.com/rest/api/playfab/client/player-item-management/getcharacterinventory
+ */
+ GetCharacterInventory(request: GetCharacterInventoryRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Retrieves a list of ranked characters for the given statistic, starting from the indicated point in the leaderboard
+ * https://docs.microsoft.com/rest/api/playfab/client/characters/getcharacterleaderboard
+ */
+ GetCharacterLeaderboard(request: GetCharacterLeaderboardRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Retrieves the title-specific custom data for the character which can only be read by the client
+ * https://docs.microsoft.com/rest/api/playfab/client/character-data/getcharacterreadonlydata
+ */
+ GetCharacterReadOnlyData(request: GetCharacterDataRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Retrieves the details of all title-specific statistics for the user
+ * https://docs.microsoft.com/rest/api/playfab/client/characters/getcharacterstatistics
+ */
+ GetCharacterStatistics(request: GetCharacterStatisticsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * This API retrieves a pre-signed URL for accessing a content file for the title. A subsequent HTTP GET to the returned
+ * URL will attempt to download the content. A HEAD query to the returned URL will attempt to retrieve the metadata of the
+ * content. Note that a successful result does not guarantee the existence of this content - if it has not been uploaded,
+ * the query to retrieve the data will fail. See this post for more information:
+ * https://community.playfab.com/hc/community/posts/205469488-How-to-upload-files-to-PlayFab-s-Content-Service. Also,
+ * please be aware that the Content service is specifically PlayFab's CDN offering, for which standard CDN rates apply.
+ * https://docs.microsoft.com/rest/api/playfab/client/content/getcontentdownloadurl
+ */
+ GetContentDownloadUrl(request: GetContentDownloadUrlRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Get details about all current running game servers matching the given parameters.
+ * https://docs.microsoft.com/rest/api/playfab/client/matchmaking/getcurrentgames
+ */
+ GetCurrentGames(request: CurrentGamesRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Retrieves a list of ranked friends of the current player for the given statistic, starting from the indicated point in
+ * the leaderboard
+ * https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getfriendleaderboard
+ */
+ GetFriendLeaderboard(request: GetFriendLeaderboardRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Retrieves a list of ranked friends of the current player for the given statistic, centered on the requested PlayFab
+ * user. If PlayFabId is empty or null will return currently logged in user.
+ * https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getfriendleaderboardaroundplayer
+ */
+ GetFriendLeaderboardAroundPlayer(request: GetFriendLeaderboardAroundPlayerRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Retrieves the current friend list for the local user, constrained to users who have PlayFab accounts. Friends from
+ * linked accounts (Facebook, Steam) are also included. You may optionally exclude some linked services' friends.
+ * https://docs.microsoft.com/rest/api/playfab/client/friend-list-management/getfriendslist
+ */
+ GetFriendsList(request: GetFriendsListRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Get details about the regions hosting game servers matching the given parameters.
+ * https://docs.microsoft.com/rest/api/playfab/client/matchmaking/getgameserverregions
+ */
+ GetGameServerRegions(request: GameServerRegionsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Retrieves a list of ranked users for the given statistic, starting from the indicated point in the leaderboard
+ * https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getleaderboard
+ */
+ GetLeaderboard(request: GetLeaderboardRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Retrieves a list of ranked characters for the given statistic, centered on the requested Character ID
+ * https://docs.microsoft.com/rest/api/playfab/client/characters/getleaderboardaroundcharacter
+ */
+ GetLeaderboardAroundCharacter(request: GetLeaderboardAroundCharacterRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Retrieves a list of ranked users for the given statistic, centered on the requested player. If PlayFabId is empty or
+ * null will return currently logged in user.
+ * https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getleaderboardaroundplayer
+ */
+ GetLeaderboardAroundPlayer(request: GetLeaderboardAroundPlayerRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Retrieves a list of all of the user's characters for the given statistic.
+ * https://docs.microsoft.com/rest/api/playfab/client/characters/getleaderboardforusercharacters
+ */
+ GetLeaderboardForUserCharacters(request: GetLeaderboardForUsersCharactersRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * For payments flows where the provider requires playfab (the fulfiller) to initiate the transaction, but the client
+ * completes the rest of the flow. In the Xsolla case, the token returned here will be passed to Xsolla by the client to
+ * create a cart. Poll GetPurchase using the returned OrderId once you've completed the payment.
+ * https://docs.microsoft.com/rest/api/playfab/client/player-item-management/getpaymenttoken
+ */
+ GetPaymentToken(request: GetPaymentTokenRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Gets a Photon custom authentication token that can be used to securely join the player into a Photon room. See
+ * https://docs.microsoft.com/gaming/playfab/features/multiplayer/photon/quickstart for more details.
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/getphotonauthenticationtoken
+ */
+ GetPhotonAuthenticationToken(request: GetPhotonAuthenticationTokenRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Retrieves all of the user's different kinds of info.
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayercombinedinfo
+ */
+ GetPlayerCombinedInfo(request: GetPlayerCombinedInfoRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Retrieves the player's profile
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayerprofile
+ */
+ GetPlayerProfile(request: GetPlayerProfileRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * List all segments that a player currently belongs to at this moment in time.
+ * https://docs.microsoft.com/rest/api/playfab/client/playstream/getplayersegments
+ */
+ GetPlayerSegments(request: GetPlayerSegmentsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Retrieves the indicated statistics (current version and values for all statistics, if none are specified), for the local
+ * player.
+ * https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getplayerstatistics
+ */
+ GetPlayerStatistics(request: GetPlayerStatisticsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Retrieves the information on the available versions of the specified statistic.
+ * https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getplayerstatisticversions
+ */
+ GetPlayerStatisticVersions(request: GetPlayerStatisticVersionsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Get all tags with a given Namespace (optional) from a player profile.
+ * https://docs.microsoft.com/rest/api/playfab/client/playstream/getplayertags
+ */
+ GetPlayerTags(request: GetPlayerTagsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Gets all trades the player has either opened or accepted, optionally filtered by trade status.
+ * https://docs.microsoft.com/rest/api/playfab/client/trading/getplayertrades
+ */
+ GetPlayerTrades(request: GetPlayerTradesRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Retrieves the unique PlayFab identifiers for the given set of Facebook identifiers.
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromfacebookids
+ */
+ GetPlayFabIDsFromFacebookIDs(request: GetPlayFabIDsFromFacebookIDsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Retrieves the unique PlayFab identifiers for the given set of Facebook Instant Game identifiers.
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromfacebookinstantgamesids
+ */
+ GetPlayFabIDsFromFacebookInstantGamesIds(request: GetPlayFabIDsFromFacebookInstantGamesIdsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Retrieves the unique PlayFab identifiers for the given set of Game Center identifiers (referenced in the Game Center
+ * Programming Guide as the Player Identifier).
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromgamecenterids
+ */
+ GetPlayFabIDsFromGameCenterIDs(request: GetPlayFabIDsFromGameCenterIDsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Retrieves the unique PlayFab identifiers for the given set of generic service identifiers. A generic identifier is the
+ * service name plus the service-specific ID for the player, as specified by the title when the generic identifier was
+ * added to the player account.
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromgenericids
+ */
+ GetPlayFabIDsFromGenericIDs(request: GetPlayFabIDsFromGenericIDsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Retrieves the unique PlayFab identifiers for the given set of Google identifiers. The Google identifiers are the IDs for
+ * the user accounts, available as "id" in the Google+ People API calls.
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromgoogleids
+ */
+ GetPlayFabIDsFromGoogleIDs(request: GetPlayFabIDsFromGoogleIDsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Retrieves the unique PlayFab identifiers for the given set of Kongregate identifiers. The Kongregate identifiers are the
+ * IDs for the user accounts, available as "user_id" from the Kongregate API methods(ex:
+ * http://developers.kongregate.com/docs/client/getUserId).
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromkongregateids
+ */
+ GetPlayFabIDsFromKongregateIDs(request: GetPlayFabIDsFromKongregateIDsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Retrieves the unique PlayFab identifiers for the given set of Nintendo Switch identifiers.
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromnintendoswitchdeviceids
+ */
+ GetPlayFabIDsFromNintendoSwitchDeviceIds(request: GetPlayFabIDsFromNintendoSwitchDeviceIdsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Retrieves the unique PlayFab identifiers for the given set of PlayStation Network identifiers.
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfrompsnaccountids
+ */
+ GetPlayFabIDsFromPSNAccountIDs(request: GetPlayFabIDsFromPSNAccountIDsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Retrieves the unique PlayFab identifiers for the given set of Steam identifiers. The Steam identifiers are the profile
+ * IDs for the user accounts, available as SteamId in the Steamworks Community API calls.
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromsteamids
+ */
+ GetPlayFabIDsFromSteamIDs(request: GetPlayFabIDsFromSteamIDsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Retrieves the unique PlayFab identifiers for the given set of Twitch identifiers. The Twitch identifiers are the IDs for
+ * the user accounts, available as "_id" from the Twitch API methods (ex:
+ * https://github.com/justintv/Twitch-API/blob/master/v3_resources/users.md#get-usersuser).
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromtwitchids
+ */
+ GetPlayFabIDsFromTwitchIDs(request: GetPlayFabIDsFromTwitchIDsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Retrieves the unique PlayFab identifiers for the given set of XboxLive identifiers.
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromxboxliveids
+ */
+ GetPlayFabIDsFromXboxLiveIDs(request: GetPlayFabIDsFromXboxLiveIDsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Retrieves the key-value store of custom publisher settings
+ * https://docs.microsoft.com/rest/api/playfab/client/title-wide-data-management/getpublisherdata
+ */
+ GetPublisherData(request: GetPublisherDataRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Retrieves a purchase along with its current PlayFab status. Returns inventory items from the purchase that are still
+ * active.
+ * https://docs.microsoft.com/rest/api/playfab/client/player-item-management/getpurchase
+ */
+ GetPurchase(request: GetPurchaseRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Retrieves data stored in a shared group object, as well as the list of members in the group. Non-members of the group
+ * may use this to retrieve group data, including membership, but they will not receive data for keys marked as private.
+ * Shared Groups are designed for sharing data between a very small number of players, please see our guide:
+ * https://docs.microsoft.com/gaming/playfab/features/social/groups/using-shared-group-data
+ * https://docs.microsoft.com/rest/api/playfab/client/shared-group-data/getsharedgroupdata
+ */
+ GetSharedGroupData(request: GetSharedGroupDataRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Retrieves the set of items defined for the specified store, including all prices defined
+ * https://docs.microsoft.com/rest/api/playfab/client/title-wide-data-management/getstoreitems
+ */
+ GetStoreItems(request: GetStoreItemsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Retrieves the current server time
+ * https://docs.microsoft.com/rest/api/playfab/client/title-wide-data-management/gettime
+ */
+ GetTime(request: GetTimeRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Retrieves the key-value store of custom title settings
+ * https://docs.microsoft.com/rest/api/playfab/client/title-wide-data-management/gettitledata
+ */
+ GetTitleData(request: GetTitleDataRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Retrieves the title news feed, as configured in the developer portal
+ * https://docs.microsoft.com/rest/api/playfab/client/title-wide-data-management/gettitlenews
+ */
+ GetTitleNews(request: GetTitleNewsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Returns the title's base 64 encoded RSA CSP blob.
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/gettitlepublickey
+ */
+ GetTitlePublicKey(request: GetTitlePublicKeyRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Gets the current status of an existing trade.
+ * https://docs.microsoft.com/rest/api/playfab/client/trading/gettradestatus
+ */
+ GetTradeStatus(request: GetTradeStatusRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Retrieves the title-specific custom data for the user which is readable and writable by the client
+ * https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getuserdata
+ */
+ GetUserData(request: GetUserDataRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Retrieves the user's current inventory of virtual goods
+ * https://docs.microsoft.com/rest/api/playfab/client/player-item-management/getuserinventory
+ */
+ GetUserInventory(request: GetUserInventoryRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Retrieves the publisher-specific custom data for the user which is readable and writable by the client
+ * https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getuserpublisherdata
+ */
+ GetUserPublisherData(request: GetUserDataRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Retrieves the publisher-specific custom data for the user which can only be read by the client
+ * https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getuserpublisherreadonlydata
+ */
+ GetUserPublisherReadOnlyData(request: GetUserDataRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Retrieves the title-specific custom data for the user which can only be read by the client
+ * https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getuserreadonlydata
+ */
+ GetUserReadOnlyData(request: GetUserDataRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Requests a challenge from the server to be signed by Windows Hello Passport service to authenticate.
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/getwindowshellochallenge
+ */
+ GetWindowsHelloChallenge(request: GetWindowsHelloChallengeRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Grants the specified character type to the user. CharacterIds are not globally unique; characterId must be evaluated
+ * with the parent PlayFabId to guarantee uniqueness.
+ * https://docs.microsoft.com/rest/api/playfab/client/characters/grantcharactertouser
+ */
+ GrantCharacterToUser(request: GrantCharacterToUserRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Links the Android device identifier to the user's PlayFab account
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/linkandroiddeviceid
+ */
+ LinkAndroidDeviceID(request: LinkAndroidDeviceIDRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Links the Apple account associated with the token to the user's PlayFab account.
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/linkapple
+ */
+ LinkApple(request: LinkAppleRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Links the custom identifier, generated by the title, to the user's PlayFab account
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/linkcustomid
+ */
+ LinkCustomID(request: LinkCustomIDRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Links the Facebook account associated with the provided Facebook access token to the user's PlayFab account
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/linkfacebookaccount
+ */
+ LinkFacebookAccount(request: LinkFacebookAccountRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Links the Facebook Instant Games Id to the user's PlayFab account
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/linkfacebookinstantgamesid
+ */
+ LinkFacebookInstantGamesId(request: LinkFacebookInstantGamesIdRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Links the Game Center account associated with the provided Game Center ID to the user's PlayFab account
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/linkgamecenteraccount
+ */
+ LinkGameCenterAccount(request: LinkGameCenterAccountRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Links the currently signed-in user account to their Google account, using their Google account credentials
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/linkgoogleaccount
+ */
+ LinkGoogleAccount(request: LinkGoogleAccountRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Links the vendor-specific iOS device identifier to the user's PlayFab account
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/linkiosdeviceid
+ */
+ LinkIOSDeviceID(request: LinkIOSDeviceIDRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Links the Kongregate identifier to the user's PlayFab account
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/linkkongregate
+ */
+ LinkKongregate(request: LinkKongregateAccountRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Links the Nintendo Switch account associated with the token to the user's PlayFab account.
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/linknintendoswitchaccount
+ */
+ LinkNintendoSwitchAccount(request: LinkNintendoSwitchAccountRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Links the NintendoSwitchDeviceId to the user's PlayFab account
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/linknintendoswitchdeviceid
+ */
+ LinkNintendoSwitchDeviceId(request: LinkNintendoSwitchDeviceIdRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Links an OpenID Connect account to a user's PlayFab account, based on an existing relationship between a title and an
+ * Open ID Connect provider and the OpenId Connect JWT from that provider.
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/linkopenidconnect
+ */
+ LinkOpenIdConnect(request: LinkOpenIdConnectRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Links the PlayStation Network account associated with the provided access code to the user's PlayFab account
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/linkpsnaccount
+ */
+ LinkPSNAccount(request: LinkPSNAccountRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Links the Steam account associated with the provided Steam authentication ticket to the user's PlayFab account
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/linksteamaccount
+ */
+ LinkSteamAccount(request: LinkSteamAccountRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Links the Twitch account associated with the token to the user's PlayFab account.
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/linktwitch
+ */
+ LinkTwitch(request: LinkTwitchAccountRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Link Windows Hello authentication to the current PlayFab Account
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/linkwindowshello
+ */
+ LinkWindowsHello(request: LinkWindowsHelloAccountRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Links the Xbox Live account associated with the provided access code to the user's PlayFab account
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/linkxboxaccount
+ */
+ LinkXboxAccount(request: LinkXboxAccountRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Signs the user in using the Android device identifier, returning a session identifier that can subsequently be used for
+ * API calls which require an authenticated user
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithandroiddeviceid
+ */
+ LoginWithAndroidDeviceID(request: LoginWithAndroidDeviceIDRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Signs in the user with a Sign in with Apple identity token.
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithapple
+ */
+ LoginWithApple(request: LoginWithAppleRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Signs the user in using a custom unique identifier generated by the title, returning a session identifier that can
+ * subsequently be used for API calls which require an authenticated user
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithcustomid
+ */
+ LoginWithCustomID(request: LoginWithCustomIDRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Signs the user into the PlayFab account, returning a session identifier that can subsequently be used for API calls
+ * which require an authenticated user. Unlike most other login API calls, LoginWithEmailAddress does not permit the
+ * creation of new accounts via the CreateAccountFlag. Email addresses may be used to create accounts via
+ * RegisterPlayFabUser.
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithemailaddress
+ */
+ LoginWithEmailAddress(request: LoginWithEmailAddressRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Signs the user in using a Facebook access token, returning a session identifier that can subsequently be used for API
+ * calls which require an authenticated user
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithfacebook
+ */
+ LoginWithFacebook(request: LoginWithFacebookRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Signs the user in using a Facebook Instant Games ID, returning a session identifier that can subsequently be used for
+ * API calls which require an authenticated user. Requires Facebook Instant Games to be configured.
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithfacebookinstantgamesid
+ */
+ LoginWithFacebookInstantGamesId(request: LoginWithFacebookInstantGamesIdRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Signs the user in using an iOS Game Center player identifier, returning a session identifier that can subsequently be
+ * used for API calls which require an authenticated user
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithgamecenter
+ */
+ LoginWithGameCenter(request: LoginWithGameCenterRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Signs the user in using their Google account credentials
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithgoogleaccount
+ */
+ LoginWithGoogleAccount(request: LoginWithGoogleAccountRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Signs the user in using the vendor-specific iOS device identifier, returning a session identifier that can subsequently
+ * be used for API calls which require an authenticated user
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithiosdeviceid
+ */
+ LoginWithIOSDeviceID(request: LoginWithIOSDeviceIDRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Signs the user in using a Kongregate player account.
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithkongregate
+ */
+ LoginWithKongregate(request: LoginWithKongregateRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Signs in the user with a Nintendo Switch Account identity token.
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithnintendoswitchaccount
+ */
+ LoginWithNintendoSwitchAccount(request: LoginWithNintendoSwitchAccountRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Signs the user in using a Nintendo Switch Device ID, returning a session identifier that can subsequently be used for
+ * API calls which require an authenticated user
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithnintendoswitchdeviceid
+ */
+ LoginWithNintendoSwitchDeviceId(request: LoginWithNintendoSwitchDeviceIdRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Logs in a user with an Open ID Connect JWT created by an existing relationship between a title and an Open ID Connect
+ * provider.
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithopenidconnect
+ */
+ LoginWithOpenIdConnect(request: LoginWithOpenIdConnectRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Signs the user into the PlayFab account, returning a session identifier that can subsequently be used for API calls
+ * which require an authenticated user. Unlike most other login API calls, LoginWithPlayFab does not permit the creation of
+ * new accounts via the CreateAccountFlag. Username/Password credentials may be used to create accounts via
+ * RegisterPlayFabUser, or added to existing accounts using AddUsernamePassword.
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithplayfab
+ */
+ LoginWithPlayFab(request: LoginWithPlayFabRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Signs the user in using a PlayStation Network authentication code, returning a session identifier that can subsequently
+ * be used for API calls which require an authenticated user
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithpsn
+ */
+ LoginWithPSN(request: LoginWithPSNRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Signs the user in using a Steam authentication ticket, returning a session identifier that can subsequently be used for
+ * API calls which require an authenticated user
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithsteam
+ */
+ LoginWithSteam(request: LoginWithSteamRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Signs the user in using a Twitch access token.
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithtwitch
+ */
+ LoginWithTwitch(request: LoginWithTwitchRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Completes the Windows Hello login flow by returning the signed value of the challange from GetWindowsHelloChallenge.
+ * Windows Hello has a 2 step client to server authentication scheme. Step one is to request from the server a challenge
+ * string. Step two is to request the user sign the string via Windows Hello and then send the signed value back to the
+ * server.
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithwindowshello
+ */
+ LoginWithWindowsHello(request: LoginWithWindowsHelloRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Signs the user in using a Xbox Live Token, returning a session identifier that can subsequently be used for API calls
+ * which require an authenticated user
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithxbox
+ */
+ LoginWithXbox(request: LoginWithXboxRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Attempts to locate a game session matching the given parameters. If the goal is to match the player into a specific
+ * active session, only the LobbyId is required. Otherwise, the BuildVersion, GameMode, and Region are all required
+ * parameters. Note that parameters specified in the search are required (they are not weighting factors). If a slot is
+ * found in a server instance matching the parameters, the slot will be assigned to that player, removing it from the
+ * availabe set. In that case, the information on the game session will be returned, otherwise the Status returned will be
+ * GameNotFound.
+ * https://docs.microsoft.com/rest/api/playfab/client/matchmaking/matchmake
+ */
+ Matchmake(request: MatchmakeRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Opens a new outstanding trade. Note that a given item instance may only be in one open trade at a time.
+ * https://docs.microsoft.com/rest/api/playfab/client/trading/opentrade
+ */
+ OpenTrade(request: OpenTradeRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Selects a payment option for purchase order created via StartPurchase
+ * https://docs.microsoft.com/rest/api/playfab/client/player-item-management/payforpurchase
+ */
+ PayForPurchase(request: PayForPurchaseRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Buys a single item with virtual currency. You must specify both the virtual currency to use to purchase, as well as what
+ * the client believes the price to be. This lets the server fail the purchase if the price has changed.
+ * https://docs.microsoft.com/rest/api/playfab/client/player-item-management/purchaseitem
+ */
+ PurchaseItem(request: PurchaseItemRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Adds the virtual goods associated with the coupon to the user's inventory. Coupons can be generated via the
+ * Economy->Catalogs tab in the PlayFab Game Manager.
+ * https://docs.microsoft.com/rest/api/playfab/client/player-item-management/redeemcoupon
+ */
+ RedeemCoupon(request: RedeemCouponRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Uses the supplied OAuth code to refresh the internally cached player PSN auth token
+ * https://docs.microsoft.com/rest/api/playfab/client/platform-specific-methods/refreshpsnauthtoken
+ */
+ RefreshPSNAuthToken(request: RefreshPSNAuthTokenRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Registers the iOS device to receive push notifications
+ * https://docs.microsoft.com/rest/api/playfab/client/platform-specific-methods/registerforiospushnotification
+ */
+ RegisterForIOSPushNotification(request: RegisterForIOSPushNotificationRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Registers a new Playfab user account, returning a session identifier that can subsequently be used for API calls which
+ * require an authenticated user. You must supply either a username or an email address.
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/registerplayfabuser
+ */
+ RegisterPlayFabUser(request: RegisterPlayFabUserRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Registers a new PlayFab user account using Windows Hello authentication, returning a session ticket that can
+ * subsequently be used for API calls which require an authenticated user
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/registerwithwindowshello
+ */
+ RegisterWithWindowsHello(request: RegisterWithWindowsHelloRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Removes a contact email from the player's profile.
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/removecontactemail
+ */
+ RemoveContactEmail(request: RemoveContactEmailRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Removes a specified user from the friend list of the local user
+ * https://docs.microsoft.com/rest/api/playfab/client/friend-list-management/removefriend
+ */
+ RemoveFriend(request: RemoveFriendRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Removes the specified generic service identifier from the player's PlayFab account.
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/removegenericid
+ */
+ RemoveGenericID(request: RemoveGenericIDRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Removes users from the set of those able to update the shared data and the set of users in the group. Only users in the
+ * group can remove members. If as a result of the call, zero users remain with access, the group and its associated data
+ * will be deleted. Shared Groups are designed for sharing data between a very small number of players, please see our
+ * guide: https://docs.microsoft.com/gaming/playfab/features/social/groups/using-shared-group-data
+ * https://docs.microsoft.com/rest/api/playfab/client/shared-group-data/removesharedgroupmembers
+ */
+ RemoveSharedGroupMembers(request: RemoveSharedGroupMembersRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Report player's ad activity
+ * https://docs.microsoft.com/rest/api/playfab/client/advertising/reportadactivity
+ */
+ ReportAdActivity(request: ReportAdActivityRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Write a PlayStream event to describe the provided player device information. This API method is not designed to be
+ * called directly by developers. Each PlayFab client SDK will eventually report this information automatically.
+ * https://docs.microsoft.com/rest/api/playfab/client/analytics/reportdeviceinfo
+ */
+ ReportDeviceInfo(request: DeviceInfoRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Submit a report for another player (due to bad bahavior, etc.), so that customer service representatives for the title
+ * can take action concerning potentially toxic players.
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/reportplayer
+ */
+ ReportPlayer(request: ReportPlayerClientRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Restores all in-app purchases based on the given restore receipt
+ * https://docs.microsoft.com/rest/api/playfab/client/platform-specific-methods/restoreiospurchases
+ */
+ RestoreIOSPurchases(request: RestoreIOSPurchasesRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Reward player's ad activity
+ * https://docs.microsoft.com/rest/api/playfab/client/advertising/rewardadactivity
+ */
+ RewardAdActivity(request: RewardAdActivityRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Forces an email to be sent to the registered email address for the user's account, with a link allowing the user to
+ * change the password.If an account recovery email template ID is provided, an email using the custom email template will
+ * be used.
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/sendaccountrecoveryemail
+ */
+ SendAccountRecoveryEmail(request: SendAccountRecoveryEmailRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Updates the tag list for a specified user in the friend list of the local user
+ * https://docs.microsoft.com/rest/api/playfab/client/friend-list-management/setfriendtags
+ */
+ SetFriendTags(request: SetFriendTagsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Sets the player's secret if it is not already set. Player secrets are used to sign API requests. To reset a player's
+ * secret use the Admin or Server API method SetPlayerSecret.
+ * https://docs.microsoft.com/rest/api/playfab/client/authentication/setplayersecret
+ */
+ SetPlayerSecret(request: SetPlayerSecretRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Start a new game server with a given configuration, add the current player and return the connection information.
+ * https://docs.microsoft.com/rest/api/playfab/client/matchmaking/startgame
+ */
+ StartGame(request: StartGameRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Creates an order for a list of items from the title catalog
+ * https://docs.microsoft.com/rest/api/playfab/client/player-item-management/startpurchase
+ */
+ StartPurchase(request: StartPurchaseRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Decrements the user's balance of the specified virtual currency by the stated amount. It is possible to make a VC
+ * balance negative with this API.
+ * https://docs.microsoft.com/rest/api/playfab/client/player-item-management/subtractuservirtualcurrency
+ */
+ SubtractUserVirtualCurrency(request: SubtractUserVirtualCurrencyRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Unlinks the related Android device identifier from the user's PlayFab account
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/unlinkandroiddeviceid
+ */
+ UnlinkAndroidDeviceID(request: UnlinkAndroidDeviceIDRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Unlinks the related Apple account from the user's PlayFab account.
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/unlinkapple
+ */
+ UnlinkApple(request: UnlinkAppleRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Unlinks the related custom identifier from the user's PlayFab account
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/unlinkcustomid
+ */
+ UnlinkCustomID(request: UnlinkCustomIDRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Unlinks the related Facebook account from the user's PlayFab account
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/unlinkfacebookaccount
+ */
+ UnlinkFacebookAccount(request: UnlinkFacebookAccountRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Unlinks the related Facebook Instant Game Ids from the user's PlayFab account
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/unlinkfacebookinstantgamesid
+ */
+ UnlinkFacebookInstantGamesId(request: UnlinkFacebookInstantGamesIdRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Unlinks the related Game Center account from the user's PlayFab account
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/unlinkgamecenteraccount
+ */
+ UnlinkGameCenterAccount(request: UnlinkGameCenterAccountRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Unlinks the related Google account from the user's PlayFab account
+ * (https://developers.google.com/android/reference/com/google/android/gms/auth/GoogleAuthUtil#public-methods).
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/unlinkgoogleaccount
+ */
+ UnlinkGoogleAccount(request: UnlinkGoogleAccountRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Unlinks the related iOS device identifier from the user's PlayFab account
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/unlinkiosdeviceid
+ */
+ UnlinkIOSDeviceID(request: UnlinkIOSDeviceIDRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Unlinks the related Kongregate identifier from the user's PlayFab account
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/unlinkkongregate
+ */
+ UnlinkKongregate(request: UnlinkKongregateAccountRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Unlinks the related Nintendo Switch account from the user's PlayFab account.
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/unlinknintendoswitchaccount
+ */
+ UnlinkNintendoSwitchAccount(request: UnlinkNintendoSwitchAccountRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Unlinks the related NintendoSwitchDeviceId from the user's PlayFab account
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/unlinknintendoswitchdeviceid
+ */
+ UnlinkNintendoSwitchDeviceId(request: UnlinkNintendoSwitchDeviceIdRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Unlinks an OpenID Connect account from a user's PlayFab account, based on the connection ID of an existing relationship
+ * between a title and an Open ID Connect provider.
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/unlinkopenidconnect
+ */
+ UnlinkOpenIdConnect(request: UnlinkOpenIdConnectRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Unlinks the related PSN account from the user's PlayFab account
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/unlinkpsnaccount
+ */
+ UnlinkPSNAccount(request: UnlinkPSNAccountRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Unlinks the related Steam account from the user's PlayFab account
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/unlinksteamaccount
+ */
+ UnlinkSteamAccount(request: UnlinkSteamAccountRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Unlinks the related Twitch account from the user's PlayFab account.
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/unlinktwitch
+ */
+ UnlinkTwitch(request: UnlinkTwitchAccountRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Unlink Windows Hello authentication from the current PlayFab Account
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/unlinkwindowshello
+ */
+ UnlinkWindowsHello(request: UnlinkWindowsHelloAccountRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Unlinks the related Xbox Live account from the user's PlayFab account
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/unlinkxboxaccount
+ */
+ UnlinkXboxAccount(request: UnlinkXboxAccountRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Opens the specified container, with the specified key (when required), and returns the contents of the opened container.
+ * If the container (and key when relevant) are consumable (RemainingUses > 0), their RemainingUses will be decremented,
+ * consistent with the operation of ConsumeItem.
+ * https://docs.microsoft.com/rest/api/playfab/client/player-item-management/unlockcontainerinstance
+ */
+ UnlockContainerInstance(request: UnlockContainerInstanceRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Searches target inventory for an ItemInstance matching the given CatalogItemId, if necessary unlocks it using an
+ * appropriate key, and returns the contents of the opened container. If the container (and key when relevant) are
+ * consumable (RemainingUses > 0), their RemainingUses will be decremented, consistent with the operation of ConsumeItem.
+ * https://docs.microsoft.com/rest/api/playfab/client/player-item-management/unlockcontaineritem
+ */
+ UnlockContainerItem(request: UnlockContainerItemRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Update the avatar URL of the player
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/updateavatarurl
+ */
+ UpdateAvatarUrl(request: UpdateAvatarUrlRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Creates and updates the title-specific custom data for the user's character which is readable and writable by the client
+ * https://docs.microsoft.com/rest/api/playfab/client/character-data/updatecharacterdata
+ */
+ UpdateCharacterData(request: UpdateCharacterDataRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Updates the values of the specified title-specific statistics for the specific character. By default, clients are not
+ * permitted to update statistics. Developers may override this setting in the Game Manager > Settings > API Features.
+ * https://docs.microsoft.com/rest/api/playfab/client/characters/updatecharacterstatistics
+ */
+ UpdateCharacterStatistics(request: UpdateCharacterStatisticsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Updates the values of the specified title-specific statistics for the user. By default, clients are not permitted to
+ * update statistics. Developers may override this setting in the Game Manager > Settings > API Features.
+ * https://docs.microsoft.com/rest/api/playfab/client/player-data-management/updateplayerstatistics
+ */
+ UpdatePlayerStatistics(request: UpdatePlayerStatisticsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Adds, updates, and removes data keys for a shared group object. If the permission is set to Public, all fields updated
+ * or added in this call will be readable by users not in the group. By default, data permissions are set to Private.
+ * Regardless of the permission setting, only members of the group can update the data. Shared Groups are designed for
+ * sharing data between a very small number of players, please see our guide:
+ * https://docs.microsoft.com/gaming/playfab/features/social/groups/using-shared-group-data
+ * https://docs.microsoft.com/rest/api/playfab/client/shared-group-data/updatesharedgroupdata
+ */
+ UpdateSharedGroupData(request: UpdateSharedGroupDataRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Creates and updates the title-specific custom data for the user which is readable and writable by the client
+ * https://docs.microsoft.com/rest/api/playfab/client/player-data-management/updateuserdata
+ */
+ UpdateUserData(request: UpdateUserDataRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Creates and updates the publisher-specific custom data for the user which is readable and writable by the client
+ * https://docs.microsoft.com/rest/api/playfab/client/player-data-management/updateuserpublisherdata
+ */
+ UpdateUserPublisherData(request: UpdateUserDataRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Updates the title specific display name for the user
+ * https://docs.microsoft.com/rest/api/playfab/client/account-management/updateusertitledisplayname
+ */
+ UpdateUserTitleDisplayName(request: UpdateUserTitleDisplayNameRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Validates with Amazon that the receipt for an Amazon App Store in-app purchase is valid and that it matches the
+ * purchased catalog item
+ * https://docs.microsoft.com/rest/api/playfab/client/platform-specific-methods/validateamazoniapreceipt
+ */
+ ValidateAmazonIAPReceipt(request: ValidateAmazonReceiptRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Validates a Google Play purchase and gives the corresponding item to the player.
+ * https://docs.microsoft.com/rest/api/playfab/client/platform-specific-methods/validategoogleplaypurchase
+ */
+ ValidateGooglePlayPurchase(request: ValidateGooglePlayPurchaseRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Validates with the Apple store that the receipt for an iOS in-app purchase is valid and that it matches the purchased
+ * catalog item
+ * https://docs.microsoft.com/rest/api/playfab/client/platform-specific-methods/validateiosreceipt
+ */
+ ValidateIOSReceipt(request: ValidateIOSReceiptRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Validates with Windows that the receipt for an Windows App Store in-app purchase is valid and that it matches the
+ * purchased catalog item
+ * https://docs.microsoft.com/rest/api/playfab/client/platform-specific-methods/validatewindowsstorereceipt
+ */
+ ValidateWindowsStoreReceipt(request: ValidateWindowsReceiptRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Writes a character-based event into PlayStream.
+ * https://docs.microsoft.com/rest/api/playfab/client/analytics/writecharacterevent
+ */
+ WriteCharacterEvent(request: WriteClientCharacterEventRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Writes a player-based event into PlayStream.
+ * https://docs.microsoft.com/rest/api/playfab/client/analytics/writeplayerevent
+ */
+ WritePlayerEvent(request: WriteClientPlayerEventRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
+ /**
+ * Writes a title-based event into PlayStream.
+ * https://docs.microsoft.com/rest/api/playfab/client/analytics/writetitleevent
+ */
+ WriteTitleEvent(request: WriteTitleEventRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
-declare module PlayFabClientModule {
- export interface IPlayFabClient {
- IsClientLoggedIn(): boolean;
-
- ForgetAllCredentials(): void;
-
- /**
- * Accepts an open trade (one that has not yet been accepted or cancelled), if the locally signed-in player is in the
- * allowed player list for the trade, or it is open to all players. If the call is successful, the offered and accepted
- * items will be swapped between the two players' inventories.
- * https://docs.microsoft.com/rest/api/playfab/client/trading/accepttrade
- */
- AcceptTrade(request: PlayFabClientModels.AcceptTradeRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Adds the PlayFab user, based upon a match against a supplied unique identifier, to the friend list of the local user. At
- * least one of FriendPlayFabId,FriendUsername,FriendEmail, or FriendTitleDisplayName should be initialized.
- * https://docs.microsoft.com/rest/api/playfab/client/friend-list-management/addfriend
- */
- AddFriend(request: PlayFabClientModels.AddFriendRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Adds the specified generic service identifier to the player's PlayFab account. This is designed to allow for a PlayFab
- * ID lookup of any arbitrary service identifier a title wants to add. This identifier should never be used as
- * authentication credentials, as the intent is that it is easily accessible by other players.
- * https://docs.microsoft.com/rest/api/playfab/client/account-management/addgenericid
- */
- AddGenericID(request: PlayFabClientModels.AddGenericIDRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Adds or updates a contact email to the player's profile.
- * https://docs.microsoft.com/rest/api/playfab/client/account-management/addorupdatecontactemail
- */
- AddOrUpdateContactEmail(request: PlayFabClientModels.AddOrUpdateContactEmailRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Adds users to the set of those able to update both the shared data, as well as the set of users in the group. Only users
- * in the group can add new members. Shared Groups are designed for sharing data between a very small number of players,
- * please see our guide: https://docs.microsoft.com/gaming/playfab/features/social/groups/using-shared-group-data
- * https://docs.microsoft.com/rest/api/playfab/client/shared-group-data/addsharedgroupmembers
- */
- AddSharedGroupMembers(request: PlayFabClientModels.AddSharedGroupMembersRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Adds playfab username/password auth to an existing account created via an anonymous auth method, e.g. automatic device
- * ID login.
- * https://docs.microsoft.com/rest/api/playfab/client/account-management/addusernamepassword
- */
- AddUsernamePassword(request: PlayFabClientModels.AddUsernamePasswordRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Increments the user's balance of the specified virtual currency by the stated amount
- * https://docs.microsoft.com/rest/api/playfab/client/player-item-management/adduservirtualcurrency
- */
- AddUserVirtualCurrency(request: PlayFabClientModels.AddUserVirtualCurrencyRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Registers the Android device to receive push notifications
- * https://docs.microsoft.com/rest/api/playfab/client/platform-specific-methods/androiddevicepushnotificationregistration
- */
- AndroidDevicePushNotificationRegistration(request: PlayFabClientModels.AndroidDevicePushNotificationRegistrationRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Attributes an install for advertisment.
- * https://docs.microsoft.com/rest/api/playfab/client/advertising/attributeinstall
- */
- AttributeInstall(request: PlayFabClientModels.AttributeInstallRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Cancels an open trade (one that has not yet been accepted or cancelled). Note that only the player who created the trade
- * can cancel it via this API call, to prevent griefing of the trade system (cancelling trades in order to prevent other
- * players from accepting them, for trades that can be claimed by more than one player).
- * https://docs.microsoft.com/rest/api/playfab/client/trading/canceltrade
- */
- CancelTrade(request: PlayFabClientModels.CancelTradeRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Confirms with the payment provider that the purchase was approved (if applicable) and adjusts inventory and virtual
- * currency balances as appropriate
- * https://docs.microsoft.com/rest/api/playfab/client/player-item-management/confirmpurchase
- */
- ConfirmPurchase(request: PlayFabClientModels.ConfirmPurchaseRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Consume uses of a consumable item. When all uses are consumed, it will be removed from the player's inventory.
- * https://docs.microsoft.com/rest/api/playfab/client/player-item-management/consumeitem
- */
- ConsumeItem(request: PlayFabClientModels.ConsumeItemRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Checks for any new consumable entitlements. If any are found, they are consumed and added as PlayFab items
- * https://docs.microsoft.com/rest/api/playfab/client/platform-specific-methods/consumepsnentitlements
- */
- ConsumePSNEntitlements(request: PlayFabClientModels.ConsumePSNEntitlementsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Grants the player's current entitlements from Xbox Live, consuming all availble items in Xbox and granting them to the
- * player's PlayFab inventory. This call is idempotent and will not grant previously granted items to the player.
- * https://docs.microsoft.com/rest/api/playfab/client/platform-specific-methods/consumexboxentitlements
- */
- ConsumeXboxEntitlements(request: PlayFabClientModels.ConsumeXboxEntitlementsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Requests the creation of a shared group object, containing key/value pairs which may be updated by all members of the
- * group. Upon creation, the current user will be the only member of the group. Shared Groups are designed for sharing data
- * between a very small number of players, please see our guide:
- * https://docs.microsoft.com/gaming/playfab/features/social/groups/using-shared-group-data
- * https://docs.microsoft.com/rest/api/playfab/client/shared-group-data/createsharedgroup
- */
- CreateSharedGroup(request: PlayFabClientModels.CreateSharedGroupRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Executes a CloudScript function, with the 'currentPlayerId' set to the PlayFab ID of the authenticated player.
- * https://docs.microsoft.com/rest/api/playfab/client/server-side-cloud-script/executecloudscript
- */
- ExecuteCloudScript(request: PlayFabClientModels.ExecuteCloudScriptRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Retrieves the user's PlayFab account details
- * https://docs.microsoft.com/rest/api/playfab/client/account-management/getaccountinfo
- */
- GetAccountInfo(request: PlayFabClientModels.GetAccountInfoRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Returns a list of ad placements and a reward for each
- * https://docs.microsoft.com/rest/api/playfab/client/advertising/getadplacements
- */
- GetAdPlacements(request: PlayFabClientModels.GetAdPlacementsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Lists all of the characters that belong to a specific user. CharacterIds are not globally unique; characterId must be
- * evaluated with the parent PlayFabId to guarantee uniqueness.
- * https://docs.microsoft.com/rest/api/playfab/client/characters/getalluserscharacters
- */
- GetAllUsersCharacters(request: PlayFabClientModels.ListUsersCharactersRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Retrieves the specified version of the title's catalog of virtual goods, including all defined properties
- * https://docs.microsoft.com/rest/api/playfab/client/title-wide-data-management/getcatalogitems
- */
- GetCatalogItems(request: PlayFabClientModels.GetCatalogItemsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Retrieves the title-specific custom data for the character which is readable and writable by the client
- * https://docs.microsoft.com/rest/api/playfab/client/character-data/getcharacterdata
- */
- GetCharacterData(request: PlayFabClientModels.GetCharacterDataRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Retrieves the specified character's current inventory of virtual goods
- * https://docs.microsoft.com/rest/api/playfab/client/player-item-management/getcharacterinventory
- */
- GetCharacterInventory(request: PlayFabClientModels.GetCharacterInventoryRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Retrieves a list of ranked characters for the given statistic, starting from the indicated point in the leaderboard
- * https://docs.microsoft.com/rest/api/playfab/client/characters/getcharacterleaderboard
- */
- GetCharacterLeaderboard(request: PlayFabClientModels.GetCharacterLeaderboardRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Retrieves the title-specific custom data for the character which can only be read by the client
- * https://docs.microsoft.com/rest/api/playfab/client/character-data/getcharacterreadonlydata
- */
- GetCharacterReadOnlyData(request: PlayFabClientModels.GetCharacterDataRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Retrieves the details of all title-specific statistics for the user
- * https://docs.microsoft.com/rest/api/playfab/client/characters/getcharacterstatistics
- */
- GetCharacterStatistics(request: PlayFabClientModels.GetCharacterStatisticsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * This API retrieves a pre-signed URL for accessing a content file for the title. A subsequent HTTP GET to the returned
- * URL will attempt to download the content. A HEAD query to the returned URL will attempt to retrieve the metadata of the
- * content. Note that a successful result does not guarantee the existence of this content - if it has not been uploaded,
- * the query to retrieve the data will fail. See this post for more information:
- * https://community.playfab.com/hc/community/posts/205469488-How-to-upload-files-to-PlayFab-s-Content-Service. Also,
- * please be aware that the Content service is specifically PlayFab's CDN offering, for which standard CDN rates apply.
- * https://docs.microsoft.com/rest/api/playfab/client/content/getcontentdownloadurl
- */
- GetContentDownloadUrl(request: PlayFabClientModels.GetContentDownloadUrlRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Get details about all current running game servers matching the given parameters.
- * https://docs.microsoft.com/rest/api/playfab/client/matchmaking/getcurrentgames
- */
- GetCurrentGames(request: PlayFabClientModels.CurrentGamesRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Retrieves a list of ranked friends of the current player for the given statistic, starting from the indicated point in
- * the leaderboard
- * https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getfriendleaderboard
- */
- GetFriendLeaderboard(request: PlayFabClientModels.GetFriendLeaderboardRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Retrieves a list of ranked friends of the current player for the given statistic, centered on the requested PlayFab
- * user. If PlayFabId is empty or null will return currently logged in user.
- * https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getfriendleaderboardaroundplayer
- */
- GetFriendLeaderboardAroundPlayer(request: PlayFabClientModels.GetFriendLeaderboardAroundPlayerRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Retrieves the current friend list for the local user, constrained to users who have PlayFab accounts. Friends from
- * linked accounts (Facebook, Steam) are also included. You may optionally exclude some linked services' friends.
- * https://docs.microsoft.com/rest/api/playfab/client/friend-list-management/getfriendslist
- */
- GetFriendsList(request: PlayFabClientModels.GetFriendsListRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Get details about the regions hosting game servers matching the given parameters.
- * https://docs.microsoft.com/rest/api/playfab/client/matchmaking/getgameserverregions
- */
- GetGameServerRegions(request: PlayFabClientModels.GameServerRegionsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Retrieves a list of ranked users for the given statistic, starting from the indicated point in the leaderboard
- * https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getleaderboard
- */
- GetLeaderboard(request: PlayFabClientModels.GetLeaderboardRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Retrieves a list of ranked characters for the given statistic, centered on the requested Character ID
- * https://docs.microsoft.com/rest/api/playfab/client/characters/getleaderboardaroundcharacter
- */
- GetLeaderboardAroundCharacter(request: PlayFabClientModels.GetLeaderboardAroundCharacterRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Retrieves a list of ranked users for the given statistic, centered on the requested player. If PlayFabId is empty or
- * null will return currently logged in user.
- * https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getleaderboardaroundplayer
- */
- GetLeaderboardAroundPlayer(request: PlayFabClientModels.GetLeaderboardAroundPlayerRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Retrieves a list of all of the user's characters for the given statistic.
- * https://docs.microsoft.com/rest/api/playfab/client/characters/getleaderboardforusercharacters
- */
- GetLeaderboardForUserCharacters(request: PlayFabClientModels.GetLeaderboardForUsersCharactersRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * For payments flows where the provider requires playfab (the fulfiller) to initiate the transaction, but the client
- * completes the rest of the flow. In the Xsolla case, the token returned here will be passed to Xsolla by the client to
- * create a cart. Poll GetPurchase using the returned OrderId once you've completed the payment.
- * https://docs.microsoft.com/rest/api/playfab/client/player-item-management/getpaymenttoken
- */
- GetPaymentToken(request: PlayFabClientModels.GetPaymentTokenRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Gets a Photon custom authentication token that can be used to securely join the player into a Photon room. See
- * https://docs.microsoft.com/gaming/playfab/features/multiplayer/photon/quickstart for more details.
- * https://docs.microsoft.com/rest/api/playfab/client/authentication/getphotonauthenticationtoken
- */
- GetPhotonAuthenticationToken(request: PlayFabClientModels.GetPhotonAuthenticationTokenRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Retrieves all of the user's different kinds of info.
- * https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayercombinedinfo
- */
- GetPlayerCombinedInfo(request: PlayFabClientModels.GetPlayerCombinedInfoRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Retrieves the player's profile
- * https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayerprofile
- */
- GetPlayerProfile(request: PlayFabClientModels.GetPlayerProfileRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * List all segments that a player currently belongs to at this moment in time.
- * https://docs.microsoft.com/rest/api/playfab/client/playstream/getplayersegments
- */
- GetPlayerSegments(request: PlayFabClientModels.GetPlayerSegmentsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Retrieves the indicated statistics (current version and values for all statistics, if none are specified), for the local
- * player.
- * https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getplayerstatistics
- */
- GetPlayerStatistics(request: PlayFabClientModels.GetPlayerStatisticsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Retrieves the information on the available versions of the specified statistic.
- * https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getplayerstatisticversions
- */
- GetPlayerStatisticVersions(request: PlayFabClientModels.GetPlayerStatisticVersionsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Get all tags with a given Namespace (optional) from a player profile.
- * https://docs.microsoft.com/rest/api/playfab/client/playstream/getplayertags
- */
- GetPlayerTags(request: PlayFabClientModels.GetPlayerTagsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Gets all trades the player has either opened or accepted, optionally filtered by trade status.
- * https://docs.microsoft.com/rest/api/playfab/client/trading/getplayertrades
- */
- GetPlayerTrades(request: PlayFabClientModels.GetPlayerTradesRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Retrieves the unique PlayFab identifiers for the given set of Facebook identifiers.
- * https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromfacebookids
- */
- GetPlayFabIDsFromFacebookIDs(request: PlayFabClientModels.GetPlayFabIDsFromFacebookIDsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Retrieves the unique PlayFab identifiers for the given set of Facebook Instant Game identifiers.
- * https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromfacebookinstantgamesids
- */
- GetPlayFabIDsFromFacebookInstantGamesIds(request: PlayFabClientModels.GetPlayFabIDsFromFacebookInstantGamesIdsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Retrieves the unique PlayFab identifiers for the given set of Game Center identifiers (referenced in the Game Center
- * Programming Guide as the Player Identifier).
- * https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromgamecenterids
- */
- GetPlayFabIDsFromGameCenterIDs(request: PlayFabClientModels.GetPlayFabIDsFromGameCenterIDsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Retrieves the unique PlayFab identifiers for the given set of generic service identifiers. A generic identifier is the
- * service name plus the service-specific ID for the player, as specified by the title when the generic identifier was
- * added to the player account.
- * https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromgenericids
- */
- GetPlayFabIDsFromGenericIDs(request: PlayFabClientModels.GetPlayFabIDsFromGenericIDsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Retrieves the unique PlayFab identifiers for the given set of Google identifiers. The Google identifiers are the IDs for
- * the user accounts, available as "id" in the Google+ People API calls.
- * https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromgoogleids
- */
- GetPlayFabIDsFromGoogleIDs(request: PlayFabClientModels.GetPlayFabIDsFromGoogleIDsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Retrieves the unique PlayFab identifiers for the given set of Kongregate identifiers. The Kongregate identifiers are the
- * IDs for the user accounts, available as "user_id" from the Kongregate API methods(ex:
- * http://developers.kongregate.com/docs/client/getUserId).
- * https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromkongregateids
- */
- GetPlayFabIDsFromKongregateIDs(request: PlayFabClientModels.GetPlayFabIDsFromKongregateIDsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Retrieves the unique PlayFab identifiers for the given set of Nintendo Switch identifiers.
- * https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromnintendoswitchdeviceids
- */
- GetPlayFabIDsFromNintendoSwitchDeviceIds(request: PlayFabClientModels.GetPlayFabIDsFromNintendoSwitchDeviceIdsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Retrieves the unique PlayFab identifiers for the given set of PlayStation Network identifiers.
- * https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfrompsnaccountids
- */
- GetPlayFabIDsFromPSNAccountIDs(request: PlayFabClientModels.GetPlayFabIDsFromPSNAccountIDsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Retrieves the unique PlayFab identifiers for the given set of Steam identifiers. The Steam identifiers are the profile
- * IDs for the user accounts, available as SteamId in the Steamworks Community API calls.
- * https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromsteamids
- */
- GetPlayFabIDsFromSteamIDs(request: PlayFabClientModels.GetPlayFabIDsFromSteamIDsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Retrieves the unique PlayFab identifiers for the given set of Twitch identifiers. The Twitch identifiers are the IDs for
- * the user accounts, available as "_id" from the Twitch API methods (ex:
- * https://github.com/justintv/Twitch-API/blob/master/v3_resources/users.md#get-usersuser).
- * https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromtwitchids
- */
- GetPlayFabIDsFromTwitchIDs(request: PlayFabClientModels.GetPlayFabIDsFromTwitchIDsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Retrieves the unique PlayFab identifiers for the given set of XboxLive identifiers.
- * https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromxboxliveids
- */
- GetPlayFabIDsFromXboxLiveIDs(request: PlayFabClientModels.GetPlayFabIDsFromXboxLiveIDsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Retrieves the key-value store of custom publisher settings
- * https://docs.microsoft.com/rest/api/playfab/client/title-wide-data-management/getpublisherdata
- */
- GetPublisherData(request: PlayFabClientModels.GetPublisherDataRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Retrieves a purchase along with its current PlayFab status. Returns inventory items from the purchase that are still
- * active.
- * https://docs.microsoft.com/rest/api/playfab/client/player-item-management/getpurchase
- */
- GetPurchase(request: PlayFabClientModels.GetPurchaseRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Retrieves data stored in a shared group object, as well as the list of members in the group. Non-members of the group
- * may use this to retrieve group data, including membership, but they will not receive data for keys marked as private.
- * Shared Groups are designed for sharing data between a very small number of players, please see our guide:
- * https://docs.microsoft.com/gaming/playfab/features/social/groups/using-shared-group-data
- * https://docs.microsoft.com/rest/api/playfab/client/shared-group-data/getsharedgroupdata
- */
- GetSharedGroupData(request: PlayFabClientModels.GetSharedGroupDataRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Retrieves the set of items defined for the specified store, including all prices defined
- * https://docs.microsoft.com/rest/api/playfab/client/title-wide-data-management/getstoreitems
- */
- GetStoreItems(request: PlayFabClientModels.GetStoreItemsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Retrieves the current server time
- * https://docs.microsoft.com/rest/api/playfab/client/title-wide-data-management/gettime
- */
- GetTime(request: PlayFabClientModels.GetTimeRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Retrieves the key-value store of custom title settings
- * https://docs.microsoft.com/rest/api/playfab/client/title-wide-data-management/gettitledata
- */
- GetTitleData(request: PlayFabClientModels.GetTitleDataRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Retrieves the title news feed, as configured in the developer portal
- * https://docs.microsoft.com/rest/api/playfab/client/title-wide-data-management/gettitlenews
- */
- GetTitleNews(request: PlayFabClientModels.GetTitleNewsRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Returns the title's base 64 encoded RSA CSP blob.
- * https://docs.microsoft.com/rest/api/playfab/client/authentication/gettitlepublickey
- */
- GetTitlePublicKey(request: PlayFabClientModels.GetTitlePublicKeyRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Gets the current status of an existing trade.
- * https://docs.microsoft.com/rest/api/playfab/client/trading/gettradestatus
- */
- GetTradeStatus(request: PlayFabClientModels.GetTradeStatusRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Retrieves the title-specific custom data for the user which is readable and writable by the client
- * https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getuserdata
- */
- GetUserData(request: PlayFabClientModels.GetUserDataRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Retrieves the user's current inventory of virtual goods
- * https://docs.microsoft.com/rest/api/playfab/client/player-item-management/getuserinventory
- */
- GetUserInventory(request: PlayFabClientModels.GetUserInventoryRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Retrieves the publisher-specific custom data for the user which is readable and writable by the client
- * https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getuserpublisherdata
- */
- GetUserPublisherData(request: PlayFabClientModels.GetUserDataRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Retrieves the publisher-specific custom data for the user which can only be read by the client
- * https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getuserpublisherreadonlydata
- */
- GetUserPublisherReadOnlyData(request: PlayFabClientModels.GetUserDataRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Retrieves the title-specific custom data for the user which can only be read by the client
- * https://docs.microsoft.com/rest/api/playfab/client/player-data-management/getuserreadonlydata
- */
- GetUserReadOnlyData(request: PlayFabClientModels.GetUserDataRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Requests a challenge from the server to be signed by Windows Hello Passport service to authenticate.
- * https://docs.microsoft.com/rest/api/playfab/client/authentication/getwindowshellochallenge
- */
- GetWindowsHelloChallenge(request: PlayFabClientModels.GetWindowsHelloChallengeRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Grants the specified character type to the user. CharacterIds are not globally unique; characterId must be evaluated
- * with the parent PlayFabId to guarantee uniqueness.
- * https://docs.microsoft.com/rest/api/playfab/client/characters/grantcharactertouser
- */
- GrantCharacterToUser(request: PlayFabClientModels.GrantCharacterToUserRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Links the Android device identifier to the user's PlayFab account
- * https://docs.microsoft.com/rest/api/playfab/client/account-management/linkandroiddeviceid
- */
- LinkAndroidDeviceID(request: PlayFabClientModels.LinkAndroidDeviceIDRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Links the Apple account associated with the token to the user's PlayFab account.
- * https://docs.microsoft.com/rest/api/playfab/client/account-management/linkapple
- */
- LinkApple(request: PlayFabClientModels.LinkAppleRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Links the custom identifier, generated by the title, to the user's PlayFab account
- * https://docs.microsoft.com/rest/api/playfab/client/account-management/linkcustomid
- */
- LinkCustomID(request: PlayFabClientModels.LinkCustomIDRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Links the Facebook account associated with the provided Facebook access token to the user's PlayFab account
- * https://docs.microsoft.com/rest/api/playfab/client/account-management/linkfacebookaccount
- */
- LinkFacebookAccount(request: PlayFabClientModels.LinkFacebookAccountRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Links the Facebook Instant Games Id to the user's PlayFab account
- * https://docs.microsoft.com/rest/api/playfab/client/account-management/linkfacebookinstantgamesid
- */
- LinkFacebookInstantGamesId(request: PlayFabClientModels.LinkFacebookInstantGamesIdRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Links the Game Center account associated with the provided Game Center ID to the user's PlayFab account
- * https://docs.microsoft.com/rest/api/playfab/client/account-management/linkgamecenteraccount
- */
- LinkGameCenterAccount(request: PlayFabClientModels.LinkGameCenterAccountRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Links the currently signed-in user account to their Google account, using their Google account credentials
- * https://docs.microsoft.com/rest/api/playfab/client/account-management/linkgoogleaccount
- */
- LinkGoogleAccount(request: PlayFabClientModels.LinkGoogleAccountRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Links the vendor-specific iOS device identifier to the user's PlayFab account
- * https://docs.microsoft.com/rest/api/playfab/client/account-management/linkiosdeviceid
- */
- LinkIOSDeviceID(request: PlayFabClientModels.LinkIOSDeviceIDRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Links the Kongregate identifier to the user's PlayFab account
- * https://docs.microsoft.com/rest/api/playfab/client/account-management/linkkongregate
- */
- LinkKongregate(request: PlayFabClientModels.LinkKongregateAccountRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Links the Nintendo Switch account associated with the token to the user's PlayFab account.
- * https://docs.microsoft.com/rest/api/playfab/client/account-management/linknintendoswitchaccount
- */
- LinkNintendoSwitchAccount(request: PlayFabClientModels.LinkNintendoSwitchAccountRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Links the NintendoSwitchDeviceId to the user's PlayFab account
- * https://docs.microsoft.com/rest/api/playfab/client/account-management/linknintendoswitchdeviceid
- */
- LinkNintendoSwitchDeviceId(request: PlayFabClientModels.LinkNintendoSwitchDeviceIdRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Links an OpenID Connect account to a user's PlayFab account, based on an existing relationship between a title and an
- * Open ID Connect provider and the OpenId Connect JWT from that provider.
- * https://docs.microsoft.com/rest/api/playfab/client/account-management/linkopenidconnect
- */
- LinkOpenIdConnect(request: PlayFabClientModels.LinkOpenIdConnectRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Links the PlayStation Network account associated with the provided access code to the user's PlayFab account
- * https://docs.microsoft.com/rest/api/playfab/client/account-management/linkpsnaccount
- */
- LinkPSNAccount(request: PlayFabClientModels.LinkPSNAccountRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Links the Steam account associated with the provided Steam authentication ticket to the user's PlayFab account
- * https://docs.microsoft.com/rest/api/playfab/client/account-management/linksteamaccount
- */
- LinkSteamAccount(request: PlayFabClientModels.LinkSteamAccountRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Links the Twitch account associated with the token to the user's PlayFab account.
- * https://docs.microsoft.com/rest/api/playfab/client/account-management/linktwitch
- */
- LinkTwitch(request: PlayFabClientModels.LinkTwitchAccountRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Link Windows Hello authentication to the current PlayFab Account
- * https://docs.microsoft.com/rest/api/playfab/client/account-management/linkwindowshello
- */
- LinkWindowsHello(request: PlayFabClientModels.LinkWindowsHelloAccountRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Links the Xbox Live account associated with the provided access code to the user's PlayFab account
- * https://docs.microsoft.com/rest/api/playfab/client/account-management/linkxboxaccount
- */
- LinkXboxAccount(request: PlayFabClientModels.LinkXboxAccountRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Signs the user in using the Android device identifier, returning a session identifier that can subsequently be used for
- * API calls which require an authenticated user
- * https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithandroiddeviceid
- */
- LoginWithAndroidDeviceID(request: PlayFabClientModels.LoginWithAndroidDeviceIDRequest, callback: PlayFabModule.ApiCallback, customData?: any, extraHeaders?: { [key: string]: string }): void;
- /**
- * Signs in the user with a Sign in with Apple identity token.
- * https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithapple
- */
- LoginWithApple(request: PlayFabClientModels.LoginWithAppleRequest, callback: PlayFabModule.ApiCallback