Skip to content

Instantly share code, notes, and snippets.

Avatar

Luis Batalha lbatalha

View GitHub Profile
@brunomlopes
brunomlopes / cgd.py
Last active Sep 22, 2019
Simple api to fetch accounts, balances and transactions from Caixa Geral de Depósitos's ( CGD ) API used by their Windows 8 application.
View cgd.py
# gist: https://gist.github.com/4397792
# Usage:
# session = cgd.CgdSession(uid, password)
# session.login()
# session.load_latest_transactions(account_key)
# 'session.known_accounts' is now populated with the initial accounts taken from the login response,
# and the data for the 'account_key' account.
# session.load_latest_transactions(account_key) loads the latest transactions and balances for a given account.