#!/usr/bin/env ruby # frozen_string_literal: true require 'bundler/setup' require 'capital_on_tap' require 'dotenv' Dotenv.load CapitalOnTap.configure do |config| config.client_id = ENV['CLIENT_ID'] config.client_secret = ENV['CLIENT_SECRET'] config.username = ENV['USERNAME'] config.password = ENV['PASSWORD'] config.debug = true end token_params = CapitalOnTap::Auth.get_token CapitalOnTap.setup_connection(token_params) require 'pry' Pry.start