Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 801 Bytes

README.md

File metadata and controls

13 lines (11 loc) · 801 Bytes

sbanken-bash

Bash scripts to do your banking with Sbanken (norwegian bank) through their official APIs.

  1. Go to sbanken and opt in for their beta bank in your settings
  2. Login to the api at https://secure.sbanken.no/Personal/ApiBeta/Info
  3. Get your API key and app password
  4. Make ~/sbanken_auth with the following variables:
  • clientId which is URL-encoded API-key
  • secret which is the (URL-encoded) password you create in the developer portal
  • userId which is your "personnummer"
  • You can URL-encode a string with the following command: printf %s 'STRING TO BE ENCODED' | jq -sRr @uri
  1. Make ~/sbanken.map with the list of your abbreviations translated to accountID (can be listed with accountlist.sh). Example of a line in the mapping-file: s:B6RYyDFJ57828KDUSEE0B3D39C1EDD5364