import logging from cxdo import CXDO COOKIE_FILE= "cookie.txt" CONTRACT= 1234567 PASSWORD= 123456 logging.basicConfig(level=logging.DEBUG) session = CXDO(CONTRACT, PASSWORD, COOKIE_FILE) print "Sucessfull authentication on CXDO!" session.save_session()
import logging import datetime from cxdo import CXDO COOKIE_FILE= "cookie.txt" CONTRACT= "1234567" PASSWORD= "******" logging.basicConfig(level=logging.DEBUG) cxdo = CXDO(CONTRACT, PASSWORD, COOKIE_FILE) print cxdo.list_accounts() ordem= cxdo.getAccount("ordem") t= ordem.getTransactions() print t[0] print t[-1]