Giter Site home page Giter Site logo

bank-scripts's Introduction

Bank Scripts

Getting Started - NordicAPIGateway

  1. Ruby and Bundler:

a. The script is written in Ruby and tested on version 2.3.7.

b. To install dependencies first install Bundler.

c. Run bundle install in the root folder.

  1. Nordic API Gateway:

a. Create an account and a new app.

b. Copy CLIENT ID and CLIENT SECRET into nordicapigateway.rb, replacing current values for NORDIC_API_GATEWAY_CLIENT_ID and NORDIC_API_GATEWAY_CLIENT_SECRET keys respectively.

  1. Database:

a. The script works with PostgreSQL database.

b. To configure connection to the database change keys prefixed with DATABASE_ in pull.rb.

For local database easiest to use Postgres.app with Postigo GUI client.

Existing keys connect to local database with name 'nordicapigateway'. Database must be created manually.

Usage

  1. Open Terminal app.

  2. Navigate to a folder with the script (e.g. cd NordicAPIGateway-scripts).

  3. Run the script ./pull.rb:

a. It will open an authentication url in the default browser.

b. Choose bank and login with your credentials.

For test account choose any bank and enter any digits for username and password.

c. It should open another page with json and the code.

Example of the json response:

"args": {
   "code": "the_code_to_copy"
},
...

d. Copy the code and paste in the terminal, then press Enter. At this point the script will be asking for the code.

e. Then it will authenticate and prepare for loading data.

f. Optionally enter company id to link transactions with. Accepts any string.

g. The script will print available accounts.

Example of available accounts:

Available accounts:
0 - Checking Account DKK
1 - Direct Debit DKK

Choose one by entering its number and pressing Enter.

h. The script will pull transactions for the account and store them in the database.

bank-scripts's People

Contributors

endore8 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.