Exemplo n.º 1
0
 private static bool VerifyConfig(ConnectorConfig config)
 {
     return(!string.IsNullOrWhiteSpace(config.plaid.client_id) &&
            !string.IsNullOrWhiteSpace(config.plaid.secret) &&
            config.plaid.access_tokens.Length > 0 &&
            !string.IsNullOrWhiteSpace(config.firefly.url) &&
            !string.IsNullOrWhiteSpace(config.firefly.token));
 }
Exemplo n.º 2
0
 public Connector(Program.Args args, ConnectorConfig config)
 {
     this.args    = args;
     this.config  = config;
     this.plaid   = new PlaidClient(Acklann.Plaid.Environment.Development);
     this.firefly = new TransactionsApi(new FireflyIII.Client.Configuration()
     {
         BasePath    = config.firefly.url,
         AccessToken = config.firefly.token,
     });
 }
Exemplo n.º 3
0
        public Connector(Program.Args args, ConnectorConfig config)
        {
            this.args   = args;
            this.config = config;
            PlaidOption plaidOption = new PlaidOption
            {
                ClientId        = config.plaid.client_id,
                EnvironmentName = Acklann.Plaid.Environment.Development,
                Secrets         = config.plaid.secret,
            };

            this.plaid   = new PlaidClient(plaidOption, null, null);
            this.firefly = new TransactionsApi(new FireflyIII.Client.Configuration()
            {
                BasePath    = config.firefly.url,
                AccessToken = config.firefly.token,
            });
        }