private XPathDocument GetApplicationSchema(string username, string password, string accountDomain)
        {
            var signin = new Authenticate(username, password, accountDomain, 1);
            var xml = signin.Post().CreateNavigator();
            var adminTicket = xml.SelectSingleNode("/qdbapi/ticket").Value;

            var appSchema = new GetSchema(adminTicket, Token, accountDomain, ApplicationId);
            var xmlSchema = appSchema.Post();

            var signout = new SignOut(accountDomain);
            signout.Post();

            return xmlSchema;
        }
Esempio n. 2
0
        private void Login()
        {
            var signin = new Authenticate(ClientUserName, ClientPassword, AccountDomain, Hours);
            var xml = signin.Post().CreateNavigator();

            Ticket = xml.SelectSingleNode("/qdbapi/ticket").Value;
        }