示例#1
0
文件: test.py 项目: mjvm/pyCXDO
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()
示例#2
0
文件: test.py 项目: goncalopp/pyCXDO
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]