public static void GetTitleInternalData(Action <GetTitleDataResult> resultCb, Action <EditorModels.PlayFabError> errorCb) { var titleId = PlayFabEditorDataService.SharedSettings.TitleId; var apiEndpoint = "https://" + titleId + PlayFabEditorHelper.TITLE_ENDPOINT; PlayFabEditorHttp.MakeApiCall("/Admin/GetTitleInternalData", apiEndpoint, new GetTitleDataRequest(), resultCb, errorCb); }
public static void GetCloudScriptRevision(GetCloudScriptRevisionRequest request, Action <GetCloudScriptRevisionResult> resultCb, Action <EditorModels.PlayFabError> errorCb) { var titleId = PlayFabEditorDataService.SharedSettings.TitleId; var apiEndpoint = "https://" + titleId + PlayFabEditorHelper.TITLE_ENDPOINT; PlayFabEditorHttp.MakeApiCall("/Admin/GetCloudScriptRevision", apiEndpoint, request, resultCb, errorCb); }
public static void GetStudios(GetStudiosRequest request, Action <GetStudiosResult> resultCallback, Action <EditorModels.PlayFabError> errorCb) { var token = PlayFabEditorDataService.AccountDetails.devToken; request.DeveloperClientToken = token; PlayFabEditorHttp.MakeApiCall("/DeveloperTools/User/GetStudios", PlayFabEditorHelper.DEV_API_ENDPOINT, request, resultCallback, errorCb); }
public static void CreateTitle(CreateTitleRequest request, Action <RegisterAccountResult> resultCallback, Action <EditorModels.PlayFabError> errorCb) { var token = PlayFabEditorDataService.AccountDetails.devToken; request.DeveloperClientToken = token; PlayFabEditorHttp.MakeApiCall("/DeveloperTools/User/CreateTitle", PlayFabEditorHelper.DEV_API_ENDPOINT, request, resultCallback, errorCb); }
public static void UpdateCloudScript(UpdateCloudScriptRequest request, Action <UpdateCloudScriptResult> resultCb, Action <EditorModels.PlayFabError> errorCb) { var titleId = SharedSettings.TitleId; var apiEndpoint = "https://" + titleId + PlayFabEditorHelper.TITLE_ENDPOINT; PlayFabEditorHttp.MakeApiCall("/Admin/UpdateCloudScript", apiEndpoint, request, resultCb, errorCb); }
private static void ImportLatestEdEx() { PlayFabEditorHttp.MakeDownloadCall("https://api.playfab.com/sdks/download/unity-edex-upgrade", (fileName) => { AssetDatabase.ImportPackage(fileName, false); Debug.Log("PlayFab EdEx Upgrade: Complete"); }); }
private static void ImportLatestEdEx() { PlayFabEditorHttp.MakeDownloadCall("https://aka.ms/PlayFabUnityEdEx", (fileName) => { AssetDatabase.ImportPackage(fileName, false); Debug.Log("PlayFab EdEx Upgrade: Complete"); }); }
public static void ImportPubSubSDK() { var link = "https://api.playfab.com/downloads/unity-signalr"; PlayFabEditorHttp.MakeDownloadCall(link, (fileName) => { AssetDatabase.ImportPackage(fileName, false); }); }
public static void ImportLatestSDK() { PlayFabEditorHttp.MakeDownloadCall("https://api.playfab.com/sdks/download/unity-via-edex", (fileName) => { Debug.Log("PlayFab SDK Install: Complete"); AssetDatabase.ImportPackage(fileName, false); PlayFabEditorDataService.EnvDetails.sdkPath = PlayFabEditorHelper.DEFAULT_SDK_LOCATION; PlayFabEditorDataService.SaveEnvDetails(); }); }
public static void SetTitleInternalData(Dictionary <string, string> keys, Action <SetTitleDataResult> resultCb, Action <EditorModels.PlayFabError> errorCb) { foreach (var pair in keys) { var req = new SetTitleDataRequest { Key = pair.Key, Value = pair.Value }; var titleId = PlayFabEditorDataService.SharedSettings.TitleId; var apiEndpoint = "https://" + titleId + PlayFabEditorHelper.TITLE_ENDPOINT; PlayFabEditorHttp.MakeApiCall("/Admin/SetTitleInternalData", apiEndpoint, req, resultCb, errorCb); } }
public static void ImportLatestSDK() { PlayFabEditorHttp.MakeDownloadCall("https://aka.ms/PlayFabUnitySdk", (fileName) => { Debug.Log("PlayFab SDK Install: Complete"); AssetDatabase.ImportPackage(fileName, false); // attempts to re-import any changed assets (which ImportPackage doesn't implicitly do) AssetDatabase.Refresh(); PlayFabEditorPrefsSO.Instance.SdkPath = PlayFabEditorHelper.DEFAULT_SDK_LOCATION; PlayFabEditorDataService.SaveEnvDetails(); }); }
private static void GetLatestSdkVersion() { var threshold = PlayFabEditorDataService.EditorSettings.lastSdkVersionCheck != DateTime.MinValue ? PlayFabEditorDataService.EditorSettings.lastSdkVersionCheck.AddHours(1) : DateTime.MinValue; if (DateTime.Today > threshold) { PlayFabEditorHttp.MakeGitHubApiCall("https://api.github.com/repos/PlayFab/UnitySDK/git/refs/tags", (version) => { latestSdkVersion = version ?? "Unknown"; PlayFabEditorDataService.EditorSettings.latestSdkVersion = latestSdkVersion; }); } else { latestSdkVersion = PlayFabEditorDataService.EditorSettings.latestSdkVersion; } }
private static void GetLatestEdExVersion() { var threshold = PlayFabEditorPrefsSO.Instance.EdSet_lastEdExVersionCheck != DateTime.MinValue ? PlayFabEditorPrefsSO.Instance.EdSet_lastEdExVersionCheck.AddHours(1) : DateTime.MinValue; if (DateTime.Today > threshold) { PlayFabEditorHttp.MakeGitHubApiCall("https://api.github.com/repos/PlayFab/UnityEditorExtensions/git/refs/tags", (version) => { latestEdExVersion = version ?? "Unknown"; PlayFabEditorPrefsSO.Instance.EdSet_latestEdExVersion = latestEdExVersion; }); } else { latestEdExVersion = PlayFabEditorPrefsSO.Instance.EdSet_latestEdExVersion; } }
public static void InstallEdExPackage(string key) { //TODO update this to work with a standardized key nomenclature if (EditorUtility.DisplayDialog("Confirm Package Installation", "This will install the " + key + " package.", "Confirm", "Cancel")) { PlayFabEditorHttp.MakeDownloadCall("https://api.playfab.com/sdks/download/android-push50-via-edex", (fileName) => { AssetDatabase.ImportPackage(fileName, true); Debug.Log(string.Format("EdEx: {0} Installation Complete", key)); }); } else { //TODO this will need to be updated when we have several plugins. AndroidPushPlugin = false; _androidPushPluginPreviousState = false; } }
public static void RegisterAccouint(RegisterAccountRequest request, Action <RegisterAccountResult> resultCallback, Action <EditorModels.PlayFabError> errorCb) { PlayFabEditorHttp.MakeApiCall("/DeveloperTools/User/RegisterAccount", PlayFabEditorHelper.DEV_API_ENDPOINT, request, resultCallback, errorCb); }
public static void Logout(LogoutRequest request, Action <LogoutResult> resultCallback, Action <EditorModels.PlayFabError> errorCb) { PlayFabEditorHttp.MakeApiCall("/DeveloperTools/User/Logout", PlayFabEditorHelper.DEV_API_ENDPOINT, request, resultCallback, errorCb); }