Example #1
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,
     });
 }
Example #2
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,
            });
        }