Skip to content

Instantly share code, notes, and snippets.

View lbatalha's full-sized avatar

L Batalha lbatalha

View GitHub Profile
@brunomlopes
brunomlopes / cgd.py
Last active September 22, 2019 17:43
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.