Example #1
0
        public void test_refresh_not_mfa()
        {
            var m = new YodleeMain();

            m.LoginUser("*****@*****.**", Encrypted.Decrypt("sykuYcJcd+ShmykTY/pi0qBpRJK0a9HBiiw9NN0Dgjg="));
            m.RefreshNotMFAItem(10334329, true);
        }
Example #2
0
        public void test_get_data_for_item()
        {
            var m    = new YodleeMain();
            var pass = Encrypted.Decrypt("SH24xKutqoIefQ9oz2gjD9rITakU29ZXQpGA9SY8UMw=");

            m.LoginUser("*****@*****.**", pass);
            GetBankData g = new GetBankData();
            string      s1;
            string      err;
            Dictionary <BankData, List <BankTransactionData> > data;
            //var itemId = test_get_itemId();
            long itemId = 10403741;

            g.GetBankDataForItem(m.UserContext, itemId, out s1, out err, out data);

            Console.WriteLine("info {0}, errors:{1}, count of data:{2}", s1, err, data.Keys.Count);
        }
Example #3
0
        private static bool VerifyAccount(YodleeAccounts res)
        {
            LoginUser lu = null;

            try
            {
                lu = yodleeMain.LoginUser(res.Username, Encrypted.Decrypt(res.Password));
            }
            catch (Exception e)
            {
                log.WarnFormat("Exception while trying to verify Yodlee account:{0}. The exception:{1}", res.Username, e);
            }

            if (lu == null)
            {
                log.ErrorFormat("Can't verify Yodlee account:{0}", res.Username);
                return(false);
            }

            log.InfoFormat("Verified Yodlee account:{0} successfully", res.Username);
            return(true);
        }