Ejemplo n.º 1
0
        public void WillUpdateMeetingHTMLLaunch()
        {
            var email      = "";
            var acApiUrl   = new Uri("https://esynctraining.adobeconnect.com");
            var con        = new ConnectionDetails(acApiUrl);
            var acProvider = new AdobeConnectProvider(con);
            var proxy      = new AdobeConnectProxy(acProvider, new FakeLogger(), acApiUrl, String.Empty);

            proxy.Login(new UserCredentials("", ""));//admin
            var update = proxy.UpdateAclField("1690082137", AclFieldId.meetingHTMLLaunch.ToString(), false.ToString().ToLower());
        }
Ejemplo n.º 2
0
        public void WillReportUserTrainingsTaken()
        {
            var principalId = "1004370065";
            var acApiUrl    = new Uri("http://rhi.adobeconnect.com");
            var con         = new ConnectionDetails(acApiUrl);
            var acProvider  = new AdobeConnectProvider(con);
            var proxy       = new AdobeConnectProxy(acProvider, new FakeLogger(), acApiUrl, String.Empty);

            //proxy.report
            proxy.Login(new UserCredentials("*****@*****.**", "e$ync123RHI"));//admin
            var result = proxy.ReportUserTrainingsTaken(principalId);
        }
Ejemplo n.º 3
0
        public void WillGetEventInfo()
        {
            var acApiUrl   = new Uri("http://connect.esynctraining.com");
            var con        = new ConnectionDetails(acApiUrl);
            var acProvider = new AdobeConnectProvider(con);
            var proxy      = new AdobeConnectProxy(acProvider, new FakeLogger(), acApiUrl, String.Empty);

            //proxy.report
            proxy.Login(new UserCredentials("*****@*****.**", "tratata"));//admin
            var eventInfo = proxy.GetScoInfo("2957329");

            Assert.Equals(eventInfo.ScoInfo.EventTemplateScoId, 56489);
        }
Ejemplo n.º 4
0
        public void WillGetMp4Value()
        {
            var container = new WindsorContainer();

            WindsorIoC.Initialize(container);
            DIConfig.RegisterComponents(container);
            XmlConfigurator.Configure();

            var logger        = IoC.Resolve <ILogger>();
            var serviceUrl    = new Uri("http://connectdev.esynctraining.com");
            var proxy         = new AdobeConnectProxy(new AdobeConnectProvider(new ConnectionDetails(serviceUrl)), logger, serviceUrl, string.Empty);
            var loginResult   = proxy.Login(new UserCredentials("*****@*****.**", "NEp2NV44Sj"));
            var getFieldValue = proxy.GetAclField("44636", "x-385564");

            var mp4 = JsonConvert.DeserializeObject <Mp4Dto>(getFieldValue);
        }
Ejemplo n.º 5
0
        public void WillChunkRecordingsForTransactions()
        {
            var scoId      = "1064081639";
            var acApiUrl   = new Uri("https://ncvps.adobeconnect.com");
            var con        = new ConnectionDetails(acApiUrl);
            var acProvider = new AdobeConnectProvider(con);
            var proxy      = new AdobeConnectProxy(acProvider, new FakeLogger(), acApiUrl, String.Empty);

            //proxy.report
            proxy.Login(new UserCredentials("*****@*****.**", "***get-from-ltidb***"));//admin
            var recordingsSco = proxy.GetRecordingsList(scoId).Values.Select(x => x.ScoId);

            Assert.IsTrue(recordingsSco.Any());

            var transactions = proxy.ReportRecordingTransactions(recordingsSco).Values.ToList();

            Assert.IsTrue(transactions.Any());
        }
Ejemplo n.º 6
0
        public void WillUpdatePassword()
        {
            var login            = "******";
            var email            = login;
            var password         = "******";
            var acApiUrl         = "https://connectstage.esynctraining.com/";
            var adobeConnectRoot = new Uri(acApiUrl);
            var con        = new ConnectionDetails(adobeConnectRoot);
            var acProvider = new AdobeConnectProvider(con);
            var proxy      = new AdobeConnectProxy(acProvider, new FakeLogger(), adobeConnectRoot, String.Empty);

            proxy.Login(new UserCredentials("*****@*****.**", "Welcome1"));//admin

            var _adobeConnectAccountService = new AdobeConnectAccountService(new FakeLogger());
            //proxy.PrincipalUpdatePassword()

            var existingPrincipalsResult = proxy.GetAllByEmail(email);

            if (!existingPrincipalsResult.Success)
            {
                return;
            }

            var existingPrincipal = existingPrincipalsResult.Values.FirstOrDefault();

            var principalSetup = new PrincipalSetup
            {
                PrincipalId = existingPrincipal?.PrincipalId,
                Email       = email,
                Login       = email,
                FirstName   = "aaa",
                LastName    = "bbb",
                SendEmail   = true,
                HasChildren = false,
                Type        = PrincipalType.user
            };
            var updatePrincipalResult = proxy.PrincipalUpdate(principalSetup, existingPrincipal != null);

            var updateResult = proxy.PrincipalUpdatePassword(existingPrincipal?.PrincipalId, password);

            var userProxy = _adobeConnectAccountService.GetProvider(new AdobeConnectAccess(new Uri(acApiUrl), email, password), true);
        }
Ejemplo n.º 7
0
        public void WillConvertGuestToUser()
        {
            var email      = "***guest-email***";
            var acApiUrl   = new Uri("http://connectdev.esynctraining.com");
            var con        = new ConnectionDetails(acApiUrl);
            var acProvider = new AdobeConnectProvider(con);
            var proxy      = new AdobeConnectProxy(acProvider, new FakeLogger(), acApiUrl, String.Empty);

            proxy.Login(new UserCredentials("", ""));//admin
            var guestResult = proxy.ReportGuestsByLogin(email);

            if (guestResult.Values.Any())
            {
                var guest        = guestResult.Values.First();
                var updateResult = proxy.PrincipalUpdateType(guest.PrincipalId, PrincipalType.user);
                Assert.IsTrue(updateResult.Success);
                var principalInfo = proxy.GetPrincipalInfo(guest.PrincipalId);
                Assert.AreEqual(principalInfo.PrincipalInfo.Principal.Type, PrincipalType.user.ToString());
            }
        }
Ejemplo n.º 8
0
        public async Task WillRetrieveMeetingEnrollments()
        {
            var acApiUrl   = new Uri("https://nevadalearning.adobeconnect.com");
            var con        = new ConnectionDetails(acApiUrl);
            var acProvider = new AdobeConnectProvider(con);
            var proxy      = new AdobeConnectProxy(acProvider, new FakeLogger(), acApiUrl, String.Empty);
            var login      = proxy.Login(new UserCredentials("", ""));//admin
            var commonInfo = proxy.GetCommonInfo();
            var res        = proxy.GetAllMeetingEnrollments("4622234399");

            using (var httpClinet = new HttpClient())
            {
                try
                {
                    var result = await httpClinet.GetStringAsync($"https://nevadalearning.adobeconnect.com/api/xml?action=permissions-info&acl-id=4622234399&filter-permission-id=host&filter-permission-id=mini-host&filter-permission-id=view&session={commonInfo.CommonInfo.Cookie}");
                }
                catch (Exception e)
                {
                }
            }
        }
Ejemplo n.º 9
0
        public void ScoMove()
        {
            var acApiUrl         = "https://stage1-melaleuca.acms.com/";
            var login            = "******";
            var password         = "******";
            var adobeConnectRoot = new Uri(acApiUrl);
            var con        = new ConnectionDetails(adobeConnectRoot);
            var acProvider = new AdobeConnectProvider(con);
            var proxy      = new AdobeConnectProxy(acProvider, new FakeLogger(), adobeConnectRoot, String.Empty);
            var result     = proxy.Login(new UserCredentials(login, password));
            var scheduledWebinarsFolderId = "110965";
            var startDate     = new DateTime(2017, 5, 20, 2, 0, 0);
            var nestedFolders = proxy.GetScoExpandedContent(scheduledWebinarsFolderId).Values.Where(x => x.Icon == "folder" && x.ScoId != scheduledWebinarsFolderId);
            var folderName    = $"{startDate.Year}-{startDate.ToString("MM")}-{startDate.ToString("dd")}";
            var dateFolder    =
                nestedFolders.FirstOrDefault(x => x.Name == folderName);
            string moveToFolderScoId;

            if (dateFolder == null)
            {
                var newFolder = proxy.CreateSco(new FolderUpdateItem()
                {
                    Type     = ScoType.folder,
                    Name     = folderName,
                    FolderId = scheduledWebinarsFolderId
                });
                moveToFolderScoId = newFolder.ScoInfo.ScoId;
            }
            else
            {
                moveToFolderScoId = dateFolder.ScoId;
            }
            var res = proxy.MoveSco(moveToFolderScoId, "109041");

            var t = 1;
            //proxy.MoveSco()
        }